Please login or register.

Login with username, password and session length

Author Topic: macro condition 'when a device is off for 10 minutes'  (Read 3198 times)

orlenok41

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
macro condition 'when a device is off for 10 minutes'
« on: March 20, 2010, 07:19:30 PM »

Hi,

Is it possible to add a macro condition such as 'when a device has been off for 10 minutes'.

If not, would there be any other way to achieve what I want? I have a motion detector that switches on the lights on my ground floor in case they are all off. When I go to bed (on the 1st floor), I am switching the lights off, but the motion detector switches them back on. Is there a way to prevent this? For example, if the condition was 'all the lights are off and have been off in the last X minutes', it would work.

Thanks!
Logged

hawk1

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 625
Re: macro condition 'when a device is off for 10 minutes'
« Reply #1 on: March 20, 2010, 07:39:16 PM »

Should be able to do this with a flag..  When turning the lights off for the night have it set a flag.  Then in your motion sensor macro have it check the flag status before it turns on all the lights.  Then in the morning or with a timer clear the flag.   ;)
Logged
koopr@sstelco.com, I don't know what I'm doin but I'm havin fun doin it!

aussie mate

  • Sr. Member
  • ****
  • Helpful Post Rating: 5
  • Posts: 83
Re: macro condition 'when a device is off for 10 minutes'
« Reply #2 on: March 20, 2010, 07:45:07 PM »

You can do this by using a macro's with flags and a dummy unit
using the motion detector to start the macro's (set to B1) and a dummy unit set to B2

macro 1
Trigger B2
sets flag 1 to on
waits 10 mins
clears flag 1

Macro 2
Trigger B1
if flag 1 is off  - turn the lights on
wait x time
turn lights off

You could even make the lights a monitored code so you could then use that status in the conditions.

ie
Lights A1 (monitored house code)
sensor B1

Macro 2
trigger B1
Conditions - if A1 off & flag 1 off
Turn A1 on
wait x time
turn lights off


Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.