After groovy: how to do loop automations?

You can do “loop” with @TAustin virtual momentarily button, and automation. There was thread couple days ago about door being left open.

I have similar automations that are created for the same reason. When A/C is running and someone opens any window or door, I get notifications after 10 minutes. That give us plenty of time to get in and out on our deck or to vent kitchen. Also after 10 minutes it shuts a/c off. If all sensors are closed, A/c continues with previous program.
This automation is to shut down a/c after 10 minutes


This one is for cooling, and for heating is the same concept

You will notice I have one virtual switch only as contact sensor. I am updating this virtual switch from all other contact sensors. All my automations use this virtual switch as I don’t have to change anything to any other automations that use it. If i add another contact sensor, I add it to only one automation for this virtual switch.

1 Like