so im trying to get certain fans to turn on (to circulate the air) when my temp sensor detects the temperature raised and the fans arent currently on. this is the code im using
– alias: “Turn On Blower Fans on Temperature Rise”
trigger:
platform: state
entity_id: sensor.furnace_sensor_temperature
condition:
condition: and
conditions:
- condition: template
value_template: “{{ trigger.to_state.state | float > trigger.from_state.state | float }}”
- condition: state
entity_id: switch.heater_fans
state: “off”
action:
- service: switch.turn_on
target:
entity_id: switch.heater_fans
- service: persistent_notification.create
data:
message: “Temperature rise detected. Current: {{ trigger.to_state.state | float }}, Previous: {{ trigger.from_state.state | float if trigger.from_state else ‘unknown’ }}”>
but im only getting this error “Message malformed: extra keys not allowed @ data[‘0’]”
i have no errors in my log and ive hit a wall lol. any help would be appreciated!