Author |
|
funbobbybaby69 Groupie
Joined: April 01 2008
Online Status: Offline Posts: 88
|
Posted: June 19 2008 at 11:01 | IP Logged
|
|
|
Here is one that has puzzled me for quite some time.
I have an X10 Motion sensor in basement that sends an "ON" command to my lights when i come down the stairs. It then sends an "OFF" command 10 minutes later. I would like to be able to cancel the "off" command if i choose to stay downstairs. Any ideas? Can PH cancel a signal that is sent out? Or what if i send another "ON" command (with another X10 remote control)to the same address can PH recognize this as a "do not turn the lights off upon next "off" command (from the motion sensor)or somehow send an “on” command right after the “off” command (the lights would go off, but very briefly and then the lights will turn back on) Any tips/advice would be greatly appreciated.
Thanks
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: June 19 2008 at 12:47 | IP Logged
|
|
|
You'd do this using triggers. Instead of having your motion detector send an ON directly to your light (say A1) you'd have it send it to a non existent light (say A2). Then you set up a trigger in PH on A1 ON. The trigger would run a macro that would immediately turn on your original (A1) light. From the macro you can handle OFF however you want to - turn off X minutes later unless you receive another trigger; or turn off X minutes after the last on; or... any logic you want.
Dispite what it sounds like above this is very easy to set up. The only drawback is that it may slow down how fast the light gets turned on - I'd guess 1 to 3 seconds slower. ymmv
|
Back to Top |
|
|
funbobbybaby69 Groupie
Joined: April 01 2008
Online Status: Offline Posts: 88
|
Posted: June 19 2008 at 12:57 | IP Logged
|
|
|
You’re a genius!
Thank you!
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: June 19 2008 at 16:53 | IP Logged
|
|
|
If the delay becomes a problem you could turn on A1 and fire the trigger at the same time. The macro could then apply the logic to the turn off. If multiple firings of the macro become a problem then you could gate the macro with a global. In the Boolean field you would add something like IF ({GATE_MOTION} = 1, 0, ph_setglobal_s("GATE_MOTION", "1") +1) Then in your macro you would then set global GATE_MOTION to 0 when you leave or turn A1 off.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|