Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: How to cancel a motion sensors off cmd. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
funbobbybaby69
Groupie
Groupie


Joined: April 01 2008
Online Status: Offline
Posts: 88
Posted: June 19 2008 at 11:01 | IP Logged Quote funbobbybaby69

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 View funbobbybaby69's Profile Search for other posts by funbobbybaby69
 
onhiatus
Senior Member
Senior Member
Avatar

Joined: May 12 2004
Location: United States
Online Status: Offline
Posts: 279
Posted: June 19 2008 at 12:47 | IP Logged Quote onhiatus

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 View onhiatus's Profile Search for other posts by onhiatus Visit onhiatus's Homepage
 
funbobbybaby69
Groupie
Groupie


Joined: April 01 2008
Online Status: Offline
Posts: 88
Posted: June 19 2008 at 12:57 | IP Logged Quote funbobbybaby69

You’re a genius!

Thank you!
Back to Top View funbobbybaby69's Profile Search for other posts by funbobbybaby69
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: June 19 2008 at 16:53 | IP Logged Quote BeachBum

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 View BeachBum's Profile Search for other posts by BeachBum
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum