www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer General Discussion Area

HomeSeer General Discussion Area General discussion about HomeSeer that does not fall into any other category or are not specific to 1.x or 2.x versions of HomeSeer.

Reply
 
Thread Tools Display Modes
  #1  
Old March 19th, 2007, 08:45 PM
jdls
Guest
 
Posts: n/a
Motion detector overwrite

I have a motion detector on the patio that turns on lights when motion detected and turns off after 10 minutes. Problem I am having is let say I go back after 8 minutes. Motion detector picks up the motion yet the lights turn off after only 2 minutes due to the original comand. Is there anyway to have it overwrite the previous command so the lights remain on for the full 10 minutes everytime the motion dector picks up motion?
Reply With Quote
  #2  
Old March 19th, 2007, 09:15 PM
Stuart Stuart is offline
Seer Master
 
Join Date: Mar 2002
Location: Massachusetts
Posts: 846
Hi,
you could add a script line after you set the light on such as
&hs.setdevicetime "A10", 0
or whatever you use for the patio lights code, so it resets the time and it gets to go the full 10 minutes.
Stuart
Reply With Quote
  #3  
Old March 20th, 2007, 12:51 AM
drozwood90 drozwood90 is offline
OverSeer
 
Join Date: Sep 2005
Location: Western NY
Posts: 3,822
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecellscript noWrap align=right width=160>
Code:
 
 
            Run script: 
</TD><TD class=tablecellscript align=left>&hs.DeleteEvent "Closet (delayed action)"</TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecelldevice noWrap align=right width=160>        Device Command: </TD><TD class=tablecelldevice align=left>Library Closet On</TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=tablecelldevice noWrap align=right width=160>        Device Command: </TD><TD class=tablecelldevice align=left>Library Closet Off Delay: 00:00:30</TD></TR></TBODY></TABLE>
when I open the closet, a motion sensor trips this event. The event Closet (delayed action) is created. As I move, the light it re-turned on and a new delayed event is made. Just do that, simple.

Or you can get really complex using mcs Movement or Doo Motion PLugins.

--Dan
__________________
Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.
Reply With Quote
  #4  
Old March 20th, 2007, 01:01 AM
jasv's Avatar
jasv jasv is offline
Super Seer
 
Join Date: Feb 2001
Location: Southern Cal, USA
Posts: 2,308
You don't need a script...

There is an action that can delete a previously created delayed action or event and thus you don't need a script. You can create an event that has the following actions

1. Delete delayed action for the device (if it exists)
2. Turn on light
3. Turn off light in 10 minutes

At 8 minutes when motion is detected again, the event will fire; delete the existing delayed action and create new one to turn off the light 10 minutes later.

See the example below
Attached Images
 
__________________
James

Running HS 3 on Win10 .
Reply With Quote
  #5  
Old March 20th, 2007, 01:55 AM
drozwood90 drozwood90 is offline
OverSeer
 
Join Date: Sep 2005
Location: Western NY
Posts: 3,822
James,

does that work now? I used that in the past, it never did work for me...as it couldn't find items with (delayed event) tagged on...my guess...but it couldn't delete delayed events, so I started using the script method...

--Dan
Reply With Quote
  #6  
Old March 20th, 2007, 07:53 AM
jdls
Guest
 
Posts: n/a
Gentlemen----Thank you for the quick response. I am going to try both however where exactly would I put the script line? I have no experience with scripts.
Reply With Quote
  #7  
Old March 20th, 2007, 09:46 AM
jasv's Avatar
jasv jasv is offline
Super Seer
 
Join Date: Feb 2001
Location: Southern Cal, USA
Posts: 2,308
Quote:
Originally Posted by drozwood90 View Post
James,

does that work now? I used that in the past, it never did work for me...as it couldn't find items with (delayed event) tagged on...my guess...but it couldn't delete delayed events, so I started using the script method...

--Dan
There was problems in the past but it does work now. After the event triggers you can go to the events page and see "Delayed Actions" and you can the delayed events with the expected run time. And you will see that the expected run time will change after it has been deleted and re-added.
Reply With Quote
  #8  
Old March 20th, 2007, 09:48 AM
jasv's Avatar
jasv jasv is offline
Super Seer
 
Join Date: Feb 2001
Location: Southern Cal, USA
Posts: 2,308
Quote:
Originally Posted by jdls View Post
Gentlemen----Thank you for the quick response. I am going to try both however where exactly would I put the script line? I have no experience with scripts.
In the event action, you will need to select "Run Script|Advanced View" and since this is a one line script you should put it in the box labeled
"OR Script Statement:
ie: &hs.speak "hello"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:07 PM.


Copyright HomeSeer Technologies, LLC