Hi there, I'm trying to create an automation which does the following:
Triggers when any of three doors are opened or closed
When any one of the doors are opened, a group of lights turns on to 100% brightness, or if already on, the brightness increases to 100%.
When all three of the doors are closed, adaptive lighting turns off and on again for the group of lights, to reset the brightness to be under Adaptive control.
Everything up to this point works, the bit I am having issues with I feel like should be the most simple bit.
I want, after a specified time (currently 30s), for the group of lights to then turn off completely. This is where I'm getting stuck - I have tried a few different approaches but no matter what I try, the lights stay on. I don't want to use a Delay, as this seems to prevent the lights from increasing in brightness again if the doors are reopened during the delay period.
Here's my YAML (I don't edit in YAML, I use visual)
https://paste.ofcode.org/KmgURFuHMkHwFdgCa7XyRe
I've also attached the Trace JSON in case this answers any questions.
Thanks for your help in advance!