Auto off with override?

Posted on
Mon Dec 12, 2005 9:54 am
kyleputzier offline
Posts: 58
Joined: Dec 17, 2003
Location: So. California

Auto off with override?

I would like to be able to turn on a light via a switch and then have Indigo turn it back off 30 minutes later. If I press the ON part of the switch within that time, Indigo would then cancel the auto off action and the light would stay on indefinitely. Basically tap once for auto off and tap twice for stay on.
I've played around a little and haven't come up with a way to do this.
Any ideas?

Kyle

Posted on
Mon Dec 12, 2005 5:24 pm
dtich offline
Posts: 798
Joined: Sep 24, 2005

(No subject)

if you are working with an insteon switch that supports double-taps, simply make two separate trigger actions, one that turns on w/ an auto-off for a single tap, and another that turns on w/ no auto-off with a double tap.

if you are working in x10, you'll need to do something like program a variable to be true if the light is on, false if off, etc, then you can have a trigger w/ a condition that says if 'the variable' is true (i.e. the light is already on) and the switch sends an on signal, turn off in 30 mins (or vice versa). i had done a few things like that to make additional logic controls out of a single command.

hope that made sense, i scribbled it quick. : )

Posted on
Mon Dec 12, 2005 5:35 pm
dtich offline
Posts: 798
Joined: Sep 24, 2005

(No subject)

you may also have to run a script to 'remove delayed actions for [device or trigger]'... depends on how you are doing things : )

Posted on
Mon Dec 19, 2005 9:38 am
kyleputzier offline
Posts: 58
Joined: Dec 17, 2003
Location: So. California

(No subject)

I still haven't figured this out. What I need is an "and" in the Trigger Action's Condition section. An "Else would also work.

Kyle

Posted on
Mon Dec 19, 2005 8:41 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

(No subject)

How about something like this:

Trigger Action "First On" -- Execute AppleScript:
   turn off "office lamp" in 30 * 60
   enable trigger action "Second On"
   disable trigger action "First On" for 30 * 60

Trigger Action "Second On" -- Execute AppleScript:
   remove delayed actions for device "office lamp"
   remove delayed trigger for first "First On"

Trigger Action "Off Received" -- Execute AppleScript:
   remove delayed actions for device "office lamp"
   remove delayed trigger for first "First On"
   disable trigger action "Second On"

Start by manually disabling Trigger Action "Second On" and having the device off. Not sure the above will work exactly, but it should give you a direction in which to go.

Matt

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests