Dear all,
I’ve a binary sensor that checks the temperature inside a room and an input boolean to start/stop the relative automation to switch on the fan. The binary sensor works very well and change its state to ON (if temperature is > 25). Unfortunately if i try to start the automation when the binary sensor is already in “on” state it fails to start… i tried to manually change the binary sensor state to off and then to on again and the automation works… how to solve???
The same situation/error occurs if f.e. I reboot HA and the binary sensor is already “ON” without the change of state…
someone could point me to the right direction to solve this problem???
Thanks a lot.
- alias: 005_fan_ON
trigger:
- platform: state
entity_id: binary_sensor.alarm_temperature
to: 'on'
action:
- service: switch.turn_on
target:
entity_id: switch.fan
mode: single