duncan has a question

Started by duncan, January 07, 2006, 03:28:47 PM

Previous topic - Next topic

duncan

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

JERRY VARN

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.

roger1818

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.

emil

roger,
Do you know how many "copies" it can run until it runs out of resources?
Thanks
ActiveHomePro 3.310
SmartMacros 3.310

roger1818

Quote from: emil on April 24, 2006, 01:28:48 PM
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

steven r

Quote from: emil on April 24, 2006, 01:28:48 PM
roger,
Do you know how many "copies" it can run until it runs out of resources?
Thanks

Quote from: roger1818 on April 24, 2006, 01:50:39 PM
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.



BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

SMF spam blocked by CleanTalk