X10 Community Forum
🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: duncan on January 07, 2006, 03:28:47 PM
-
sorry peeps real newbie here.
how do i create a macro wher if i walk into
a room the light will turn on and stay on
for 10 min unless movement is detected.
i have a x 10 light switch and occupancy
detectoe.
thanks in advance
-
SET MOTION SENSOR TO THE ADDRESS YOU WANT ( IE ) A10
MAKE A MACRO WITH THE ADDRESS SET TO A10
1ST INSTRUCTION = A5 ON
2ND INSTRUCTION = WAIT 10 MINUTES
3RD INSTRUCTION = A5 OFF
END OF MACRO
IF YOU MOVE WITHIN THE 10 MINUTES IT WILL START THE TIME ALL OVER AGAIN, BUT NO MOVEMENT AND IT GOES OFF AFTER 10 MINUTES.
-
Jerry: Unfortunately that macro won't work. If you move again withing the 10 minutes it will run a second copy of the macro without stopping the first macro. It will turn the lights off 10 minutes after each time movement is detected.
duncan: You actually don't need a macro to do this. You can program the motion sensor to turn the light off after 10 minutes and the motion sensor will send the off command 10 minutes after the last time it sees motion. Let me know if you have any other questions.
-
roger,
Do you know how many "copies" it can run until it runs out of resources?
Thanks
-
Do you know how many "copies" it can run until it runs out of resources?
No, I don't know. You would have to ask soweone who has developed the CM15A software. Maybe X10 Pro can answer that question. It is probably dependant on how much of the memory you are using though.
Roger
-
roger,
Do you know how many "copies" it can run until it runs out of resources?
Thanks
Maybe X10 Pro can answer that question.
I think a powerful programing condition would be one that would allow the user the option to restart a macro if it was already running.
That said... Could you do it using flags, elses and prehaps chaining a conditional macro with a timing one? I got lost in the logic thinking about it but it might be possible.