I'm setting up Imperihome and I have a house 'dashboard'. What I would like to do is have a single indicator showing if any light is on in the house.
I setup a virtual device and turn it 'on' with the event logic.
If light1 changes and becomes 1 to 255
ORIF light2 changes and becomes 1 to 255
ORIF light3 changes and becomes 1 to 255
ORIF light"x" changes and becomes 1 to 255
Then set device lightstatus to ON
This tells me if any light is ON in the house
How the heck to turn it off?
If light1 changes and becomes off
ANDIF light2 is off
ANDIF light3 is off
Then set device to lightstatus to OFF
I would have to create an event for each combination such as
If light2 changes and becomes off
ANDIF light1 is off
ANDIF light3 is off
Then set device to lightstatus to OFF
Guru's, is there a better way to do this? This seems awfully cumbersome if there are 100 lights.
I setup a virtual device and turn it 'on' with the event logic.
If light1 changes and becomes 1 to 255
ORIF light2 changes and becomes 1 to 255
ORIF light3 changes and becomes 1 to 255
ORIF light"x" changes and becomes 1 to 255
Then set device lightstatus to ON
This tells me if any light is ON in the house
How the heck to turn it off?
If light1 changes and becomes off
ANDIF light2 is off
ANDIF light3 is off
Then set device to lightstatus to OFF
I would have to create an event for each combination such as
If light2 changes and becomes off
ANDIF light1 is off
ANDIF light3 is off
Then set device to lightstatus to OFF
Guru's, is there a better way to do this? This seems awfully cumbersome if there are 100 lights.
Comment