Hello, I have a couple of automations that control my bathroom lights, I’ll explain how it is configured to see if you can help me…
I have a first automation that with a presence sensor turns on 3 lights that are grouped in a group, turns them on through a scene (to adjust tone and intensity) then the same presence sensor, when it does not detect anything, waits 2 minutes and sends a service to turn off the lights, but lately I am detecting that some of the 3 lights stay on arbitrarily, so I want to make another automation or know how I can do to turn off that light that stays on, the idea was to launch a new automation after For example, 1 minute after executing the first one and with the condition that if the group remains on, it sends a lights-off service again… someone help me make that template for this second automation, thanks!!!
Add a wait for time to pass action after your turn off action for 1 minute. Then add another action to turn the group off again. You can also an an if statement to check if they are on in that action.
In your first automation add an action to fire an event with your own event name. Then create a new automation that triggers on that event, add the same wait and turn off actions.
I never used the events topic, there is documentation to know how to create one. As you say, I understand that it is a service that is executed from the first automation and then that same event what I create with a specific name I use as a trigger for the second automation…