#Reasonably complex lighting automation not working properly

1 messages · Page 1 of 1 (latest)

round schooner
#

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!

covert pecan
#
door closed
wait for door to open or timeout
if door open then turn on light
else, do your stuff to set it for adaptive
#

hopefully that makes sense...

round schooner
#

Thanks, will give it a try and let you know what happens

covert pecan
round schooner
#

Hmm, when I tried that the light turned off but then came back on again without touching the doors, even though the last event is 'turn off'

covert pecan
round schooner
#

Yeah will do, but I've changed it back to how it was before as I have to go out, will drop a message in when I get a chance to play around again tomorrow

#

Thanks 🙂

covert pecan
round schooner
#

That switch turns on and off adaptive lighting for two lights in the conservatory - basically just gradually adjusts the brightness and colour temperature throughout the day

covert pecan
round schooner
#

it's very good

round schooner
#

I fixed the issue I was having by just creating an new automation for the turn off lights function - seems to do the job. Thanks for your help 🙂