Hi all, I’m having an issue with an automation. It should be simple, but it’s not working for me through the GUI or raw yaml, so obviously I’m missing something. I’m trying to set a timer on some switches (hallways and closets) so that they’ll turn off 10 min after being turned on. They’re Zooz switches implemented through OZW.
Here’s the code I have (note, it’s set for 30 seconds for testing).
alias: Basement stairs light timer
description: Turns off basement stairway light after 10 min
trigger:
- platform: state
entity_id: light.basement_stairs
to: 'On'
for: '0:00:30'
action:
- service: light.turn_off
entity_id: light.basement_stairs
mode: single
What am I missing/doing wrong? Any help? I’ve tried various formats under the for: attribute, from 00:00:30 to 0:30 to “seconds: 30”, etc… None work. Everything else “should” be valid. I’ve confirmed that the light updates the state immediately and that light.turn_off is working with the light, so that pretty much leaves the timer or a formatting error, right?
Any help?