Hello all,
I want to have a virtual device show if the lights are on/off on *any* light upstairs. Upstairs I have 10+ light switches. If ANY of them are ON, then the virtual device will be ON. If ALL are OFF, then the device is set to OFF.
I created an event that sets the virtual device to ON *if* any of the switches are turned on. This is the easy part.
How do I create an event that turns the virtual device OFF if *ALL* of the switches are off? What becomes the trigger?
The only way I can think to do this is by having it be manually triggered, and having multiple AND IF statements where each device is checked for OFF, and if all match, then it sets the virtual device to OFF. Then I have to create another event (one per device upstairs) where if the device is turned OFF, then it runs this other event that checks for all OFF conditions before setting the virtual device to OFF. This seems like WAY TOO COMPLICATED.
Any other ideas?
Marco
I want to have a virtual device show if the lights are on/off on *any* light upstairs. Upstairs I have 10+ light switches. If ANY of them are ON, then the virtual device will be ON. If ALL are OFF, then the device is set to OFF.
I created an event that sets the virtual device to ON *if* any of the switches are turned on. This is the easy part.
How do I create an event that turns the virtual device OFF if *ALL* of the switches are off? What becomes the trigger?
The only way I can think to do this is by having it be manually triggered, and having multiple AND IF statements where each device is checked for OFF, and if all match, then it sets the virtual device to OFF. Then I have to create another event (one per device upstairs) where if the device is turned OFF, then it runs this other event that checks for all OFF conditions before setting the virtual device to OFF. This seems like WAY TOO COMPLICATED.
Any other ideas?
Marco
Comment