This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/IsThisFuncoLand on 2023-07-04 19:42:52+00:00.


I’ve been trying to get this code to work for a couple of hours with no luck. I copied this code and changed the entities to mine and created the booleans but always get the this error when trying to save “message malformed: extra keys not allowed @ data[‘O’].

I would appreciate any help with finding what is wrong. The code is

  • alias: Kitchen Fridge Temp trigger:

    • platform: numeric_state entity_id: sensor.acurite_tower_1810_t above: 40 for: minutes: 30
    • platform: numeric_state entity_id: sensor.acurite_tower_1810_t above: 50 for: minutes: 5 action:
    • service: input_boolean.turn_on entity_id: input_boolean.kitchen_fridge_temp
  • alias: Kitchen Fridge Temp Return trigger:

    • platform: numeric_state entity_id: sensor.acurite_tower_1810_t below: 40 action:
    • service: input_boolean.turn_off entity_id: input_boolean.kitchen_fridge_temp
  • alias: Kitchen Fridge Temp Return Notification trigger:

    • platform: state entity_id: input_boolean.kitchen_fridge_temp to: ‘off’ action: service: notify.mobile_app_my_iphone data_template: message: “Kitchen Fridge temperature alert cleared ({{ states(‘sensor.acurite_tower_1810_t’) }}F) - {{now().strftime(‘%H:%M:%S on %m/%d/%y’)}}”
  • alias: Kitchen Freezer Temp trigger:

    • platform: numeric_state entity_id: sensor.acurite_tower_8281_t above: 10 for: minutes: 20
    • platform: numeric_state entity_id: sensor.acurite_tower_8281_t above: 20 for: minutes: 5 action:
    • service: input_boolean.turn_on entity_id: input_boolean.kitchen_freezer_temp
  • alias: Kitchen Freezer Temp Return trigger:

    • platform: numeric_state entity_id: sensor.acurite_tower_8281_t below: 0 action:
    • service: input_boolean.turn_off entity_id: input_boolean.kitchen_freezer_temp
  • alias: Kitchen Freezer Temp Return Notification trigger:

    • platform: state entity_id: input_boolean.kitchen_freezer_temp to: ‘off’ action: service: notify.mobile_app_my_iphone data_template: message: “Kitchen Freezer temperature alert cleared ({{ states(‘sensor.acurite_tower_8281_t’) }}F) - {{now().strftime(‘%H:%M:%S on %m/%d/%y’)}}”