My setup is that I have an office with four lights (three bulbs and a light strip), and I have a single Aqara button that I want to either turn on all the lights, or turn off all the lights.
I’ve created an automation with OR conditions that if any of the lights are currently on, then activate a scene that turns off all the lights. I have a second automation with OR conditions that if any of the lights are currently off, then turn on all the lights.
So I press the button, and it turns off all the lights… and then half a second later, it turns them back on again.
The button press activates both automations, and the first automation sets the lights such that it satisfies the conditions on the second automation.
What is a clever way to do what I’m trying to do? I’ve tried adding a bit to the first automation to turn off the second automation for a few seconds, and then turn it back on again, but that doesn’t seem to work reliably either.
Can I combine this logic into a single automation? I’m not sure how to do ‘ELSE’ logic based on my conditions