@Naobana wrote:
Hi all,
I have a problem with a pretty straightforward automation script. The problem is that the script not always triggers (while the conditions are true);
Sometimes it works for 3 days, and sometimes it only works one day. To get the script / trigger working again i need to restart HomeAssistant or i need to reload the automations.
The script:
alias: Turn on fan if humidity is > 75 and temperature > 30 and fan is off description: '' trigger: - platform: template value_template: '{{ states.sensor.room_sensor_mijia_humidity.state | float > 75 }}' condition: - condition: template value_template: '{{ states.sensor.sonoffth_fan_ds18b20_temperature.state | float > 30 }}' - condition: state entity_id: switch.sonofftouch_t2afan state: 'off' action: - device_id: sdf3fd3ssd4fsdf domain: switch entity_id: switch.sonofftouch_t2afan type: turn_on
When the script doesn’t work i always check the conditions. The conditions are truebut the script will not always trigger.
I can fix this with a time_pattern trigger but is not a real nice solution. Right?
Thanks!
Posts: 11
Participants: 5