At the moment i have 4 automations in use for my graden lights.
it works perfectly but if its possible i want to use 1 automation for this.
The lights turn on when the lux level is low enough at 60%, when the backdoor is openend the lights go up to 100% and when the door is closed back to 60% after 1 minute. The lights turn off at 1 am at night.
Post your existing automations (in preformatted text blocks) and go ahead and try to take a stab ant it. It’s easier and generally better form to ask for help fixing something than asking for someone to do it.
@denman1628 This may not work depending on how complex your trigger conditions are, but if they’re pretty basic, you could put all the triggers from your existing Automations into the “When” section of a new Automation, then use building blocks in the “Then Do” section to refine the conditions to zero in on the conditions to turn the lights on or off. If / Then / Else / then another building block to check the next condition.
The logic might look like this. Note this is just pseudo-code to describe the logic, it is not the actual YAML.
When
-backdoor is opened
-backdoor is closed
-1 am
-Lux level < x lum
Then Do
if time > 1am and time < 1:01am
turn light off
else
if backdoor is open and lux level < x lum
turn light on at 100%
else
if backdoor is closed and lux level < x lum
turn light on at 60%