how can a rule make a motion detector first check if the light is already on?
I just received my zipabox. and started playing with 1 wall switch and a motion sensor.
the light that i'm switching is in my living room and can be on whle watching tv or something else.
next to the house i have a motion sensor, that needs to trigger the ligtht in the living room for 60 seconds and turn it off. but It only when the light is switched off. that means i'm not watching tv.
I can make it switch at the moment. but even if the light is on or off. it will switch it off after 60 seconds.
how can I build a check like:
motion sensor detects something.
is the light already on in the living room?
no? turn it on, and turn it off after 60 seconds.
yes? do nothing and leave light on.