This works but I have a problem. I have a virtual device called KITCHEN. When the device changes to on then event fires off and turns on the appropriate lights.
And likewise off triggers the off event.
The problem is say I turn on kitchen. The another event turns off the lights, like the event GOOD NIGHT HOUSE.
Then next time I trigger kitchen on, it doesnt work as the virtual device is already on.
The are multiple ways the kitchen lights get triggered for different events. But if I add a line to every event to turn off the virtual device, then all the lights go dark before the rest of the event fires.
I hope I made that clear?
Any ideas?
And likewise off triggers the off event.
The problem is say I turn on kitchen. The another event turns off the lights, like the event GOOD NIGHT HOUSE.
Then next time I trigger kitchen on, it doesnt work as the virtual device is already on.
The are multiple ways the kitchen lights get triggered for different events. But if I add a line to every event to turn off the virtual device, then all the lights go dark before the rest of the event fires.
I hope I made that clear?
Any ideas?
Comment