Tracking Open Windows

So, with permission from dman, I was able to get his contact group app updated to track how many sensors are open/closed.

The device will show how many sensors are open/closed. The sensor itself will show open when any monitored sensor is open and closed when all contact sensors are closed.

I've only did some quick testing, so let me know if you use it and it goes weird.

In action (I just opened a window and closed it to show the updates):
GifMaker_20220913001032344

I used the actuator capability, so you can use any of the states in RM:

Parent App
https://raw.githubusercontent.com/FriedCheese2006/hubitat-contactgroups/master/apps/Contact_Sensor_Groups.groovy

Child App
https://raw.githubusercontent.com/FriedCheese2006/hubitat-contactgroups/master/apps/Contact_Sensor_Group_Child.groovy

Child Device
https://raw.githubusercontent.com/FriedCheese2006/hubitat-contactgroups/master/VirtualContactGroup.groovy

5 Likes