ARCHIVE
LinuxMCE Forums
May 19, 2013, 06:44:18 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: X10 Timed Events  (Read 1609 times)
archived
Hello, I'm new here

Posts: 0


View Profile
« on: May 01, 2005, 08:26:59 pm »

How do I set pluto events up to achieve the following: Motion Detector Triggered (x10), X10 Light switch On if DayLight Sensor Off (x10). Run Timer for 4 mins when TImer expires turn Light off (x10). If motion within the 4 mins reset timer.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #1 on: May 02, 2005, 08:13:41 am »

Go to Wizard/Events/Respond To Events.  Choose from the list 'sensor is triggered'.  For the device, choose the motion detector.  In the 'time of day', put 'NIGHT'.  then in the 'commands to send' section below it, chose the light plus 'on'.  Next add a command going to DCERouter, "Delay", put 240000 in for the delay (it's in millseconds), and then choose the light and choose 'off'.

There are 2 pieces that are still missing.  1) Day/night.  With .18 it assumes if it's before 8am or after 8pm it's night.  However, we are adding a module that will use your ip address to get the longitude/latitude and calculate sunrise/sunset appropriately.  And there will be a device data in Event_Plugin that allows you to specify a sensor to be used for this calculation instead (ie your daylight sensor).  That hasn't been done yet, though.  They're both quite trivial to do--they'll just be functions in Event_Plugin.  We just haven't gotten to it yet.

2) The other piece that's missing is resetting the timer if motion resets within 4 minutes.  We need to add another command for DCERouter called 'reset processing event hander', or something.  Again, not a biggie.  Just haven't gotten to it yet.
Logged
archived
Hello, I'm new here

Posts: 0


View Profile
« Reply #2 on: May 02, 2005, 08:53:03 am »

Thanks for that. If I follow the steps you have suggested what happens to delay if the event is fired again during the delay period?

How will I know when you have made the changes?

Thanks, Darren.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Pluto provided a snapshot of their forums with approximately 5,000 posts in February, 2007 when LinuxMCE branched off. Browse those forum posts in the Archive section. Those posts have been included in the search engine and can be found with keyword searches.