X10 Community Forum
🖥️ActiveHome Pro => ActiveHome Pro General => Help & Troubleshooting => Topic started by: orlenok41 on March 20, 2010, 07:19:30 PM
-
Hi,
Is it possible to add a macro condition such as 'when a device has been off for 10 minutes'.
If not, would there be any other way to achieve what I want? I have a motion detector that switches on the lights on my ground floor in case they are all off. When I go to bed (on the 1st floor), I am switching the lights off, but the motion detector switches them back on. Is there a way to prevent this? For example, if the condition was 'all the lights are off and have been off in the last X minutes', it would work.
Thanks!
-
Should be able to do this with a flag.. When turning the lights off for the night have it set a flag. Then in your motion sensor macro have it check the flag status before it turns on all the lights. Then in the morning or with a timer clear the flag. ;)
-
You can do this by using a macro's with flags and a dummy unit
using the motion detector to start the macro's (set to B1) and a dummy unit set to B2
macro 1
Trigger B2
sets flag 1 to on
waits 10 mins
clears flag 1
Macro 2
Trigger B1
if flag 1 is off - turn the lights on
wait x time
turn lights off
You could even make the lights a monitored code so you could then use that status in the conditions.
ie
Lights A1 (monitored house code)
sensor B1
Macro 2
trigger B1
Conditions - if A1 off & flag 1 off
Turn A1 on
wait x time
turn lights off