Hello, I need help. I want A fan to switch on when I set the temp on the User Interface
I tried the below code but it is not working
alias: Turn on Fan unit
trigger:
platform: template
value_template: '{{ states(''sensor.living_room_temperature'') == (states.input_number.temp_condition.attributes.timestamp
| int | timestamp_custom(''%H:%M'', False)) }}'
#entity_id: input_number.temp_condition
action:
- service: switch.turn_on
entity_id: switch.sonoff1```