Having an issue with one of my automations. This worked fine before I moved it into the automations.yaml and before I went to Hassio. Now the fan never turns off unless I comment out the ‘for’ section. Any advice? TIA
- id: Turn_Fan_Off
alias: Turn off fan when heat turns off
initial_state: True
hide_entity: False
trigger:
platform: state
entity_id: sensor.downstairs_thermostat_hvac_state
from: 'heating'
to: 'off'
#for:
# hours: 0
# minutes: 10
# seconds: 0
action:
service: fan.turn_off
entity_id: fan.ge_12730_fan_control_switch_level
Is this specific to Hass.io? I have a similar issue with an automation when a door opens for more than a minute. Worked fine under an AIO install but never worked after transitioning to Hass.io. I’ll try this!
This was unsuccessful for me. I even changed to add a from: before the to: and it still won’t fire. Really wish we knew why this would work before and not now
It’s under automation triggers in the docs. Here’s a link.
With hassbian I noticed that some events were not properly triggering an automation, so as a fallback, I triggered the automation every 30 seconds with an additional condition. The code above is copied directly from my previously-working automations.
I think this is a hassio issue. This was working just fine in hassbian for 9 months or so.
ah ok. I have never tired to use a trigger like that so can’t say about it working or not under HassIO unfortunately. Have you tried putting quotes around the 30? ie: