[SOLVED]time date action BEFORE sunset?

Posted on
Sun Nov 30, 2003 3:14 pm
dherren offline
Posts: 12
Joined: Nov 26, 2003
Location: Shoreham, VT USA

[SOLVED]time date action BEFORE sunset?

It's not clear to me if Indigo supports a time/date action a set number of minutes BEFORE sunset. In the dialog box the '+' isn't a button that will toggle to a '-' sign.

The online help seems to suggest that this is possible but doesn't say how. Do I just enter a minus sign before the number of minutes? If so, I'd recommend a UI change to make this more intuitive.

Posted on
Sun Nov 30, 2003 3:57 pm
matt (support) offline
Site Admin
User avatar
Posts: 13805
Joined: Jan 27, 2003
Location: Texas

Re: time date action BEFORE sunset?

Yes, just put a minus in front of the number. This issue has come up several times, so it is clear the UI isn't too intuitive on this.

Regards,
Matt

Posted on
Thu May 20, 2004 3:33 am
pwd offline
Posts: 6
Joined: May 15, 2004
Location: SF Bay Area

Re: time date action BEFORE sunset?

Is there some way to specify +/- hh:mm (or just +/- mm) in trigger action conditions? I'd like to have my motion detector turn on some lights but only between, say, an hour before sunset to an hour after sunrise.

I suppose I could define timed actions to "gate" the behavior of the script using explicit variables (i.e. define "ItsLightOutThere" and have it be turned on and off on a scheduled basis)? Is there a better way?

Thanks,
-Patrick.

Posted on
Thu May 20, 2004 7:09 am
matt (support) offline
Site Admin
User avatar
Posts: 13805
Joined: Jan 27, 2003
Location: Texas

Re: time date action BEFORE sunset?

pwd wrote:
I suppose I could define timed actions to "gate" the behavior of the script using explicit variables (i.e. define "ItsLightOutThere" and have it be turned on and off on a scheduled basis)? Is there a better way?

You are on the right track, but there is a better way that doesn't require variables at all. Use the "Enable Trigger Action" and "Disable Trigger Action" Action Types. Create a new Time/Date Action (or two if you want sunset and sunrise to be the trigger times), set the Action Type to either "Enable Trigger Action" or "Disable Trigger Action" and select your original Trigger Action as the target.

The variable approach might be best if you have a bunch of trigger actions that need the extra conditional. You could create a "myIsDaylight" variable that gets set before sunset and after sunrise, then use this variable in all of the Trigger Actions.

Regards,
Matt

Posted on
Thu May 20, 2004 12:06 pm
pwd offline
Posts: 6
Joined: May 15, 2004
Location: SF Bay Area

Re: time date action BEFORE sunset?

Ah! Interesting idea. The semantics are slightly different, though, and I'm beginning to suspect a trigger variable is better after all because I already want the action enabled/disabled when I manually change the light setting. I'm trying to work it so that the lights in the room come on at least minimally when I walk. Obviously I can't just blindly send that setting whenever I detect motion because I may have turned up the lights myself and wouldn't want it altered just because I'm moving around in the room.

Right now I've got it set to disable the motion detector when the light settings are changed, and re-enabling the motion detection when the ligths are turned off. If I now refine the motion trigger itself to only fire when it's dark inside, I think that'll do nicely.

Thanks for the tip!
-Patrick.

Posted on
Mon Aug 10, 2009 9:19 am
eme jota ce offline
Posts: 326
Joined: Jul 09, 2009
Location: SW Florida

Clock Variable

Thanks. This thread was helpful for me to solve a question in which I'd like certain keypad triggered scenes to only function at certain times of day.

Is there any hidden Indigo variable that just updates the current time of day? So that we could access the time as a condition for a trigger?

It would be easier to have a Condition within the Trigger that just says, e.g. "If time of day > 9:00pm" than to (1) create a trigger, (2) create a Time/Date action to enable it, and (3) create a Time/Date action to disable it.

Granted, the conditional above would only work between 9:00pm and 11:59pm, which would usually work for me, but I've seen some hints that multiple conditions will be supported in future Indigo releases, which would easily allow for a Trigger condition of "If time of day > 9:00" and "If time of day <6:00am"

Posted on
Mon Aug 10, 2009 12:44 pm
jay (support) offline
Site Admin
User avatar
Posts: 8764
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Clock Variable

eme jota ce wrote:
Thanks. This thread was helpful for me to solve a question in which I'd like certain keypad triggered scenes to only function at certain times of day.

Is there any hidden Indigo variable that just updates the current time of day? So that we could access the time as a condition for a trigger?

It would be easier to have a Condition within the Trigger that just says, e.g. "If time of day > 9:00pm" than to (1) create a trigger, (2) create a Time/Date action to enable it, and (3) create a Time/Date action to disable it.

Granted, the conditional above would only work between 9:00pm and 11:59pm, which would usually work for me, but I've seen some hints that multiple conditions will be supported in future Indigo releases, which would easily allow for a Trigger condition of "If time of day > 9:00" and "If time of day <6:00am"


Yes, multiple conditions and date/time conditions are on the list... ;)

Jay (Indigo Support)
Twitter | Facebook

Posted on
Mon Aug 10, 2009 1:59 pm
anode offline
Posts: 695
Joined: May 27, 2007
Location: NC

Re: time date action BEFORE sunset?

support wrote:
Yes, just put a minus in front of the number. This issue has come up several times, so it is clear the UI isn't too intuitive on this.

Regards,
Matt


Oh cool! Ultra cool even!

(maybe add a static text on the GUI page stating this could save these Qs?)

Posted on
Tue Aug 11, 2009 8:42 am
eme jota ce offline
Posts: 326
Joined: Jul 09, 2009
Location: SW Florida

Re: Clock Variable

Yes, multiple conditions and date/time conditions are on the list... ;)


Thanks Jay,

From reading the forum / learning how to uncover the power & flexibility of Indigo / Insteon, I can see that you have a long and growing list due to the nature of smarthome technology and the types of people who are attracted to it. Thanks for the updates and helpful forum.

Looking forward to multiple conditions and date/time conditions.

mjc

Posted on
Thu Jan 21, 2010 6:52 pm
ckeyes888 offline
Posts: 1440
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: time date action BEFORE sunset?

So just to clarify, it's not currently possible to setup an event to only happen
over a 5 min span etc.?

I was hoping to have my outside light just stay on for a minute or two
when I turn it on when I leave for work in the am which is typically about the same time.

Carl

P.S. Just playing around with some possibilities and discovered I could make a variable,
( a better name might be "State Holder") and have it's state change from true to false
depending on what time it is. If I turn on the light I want controlled while that state
is true I just have it turn on and auto-off after a few minutes.
Seems to work fine.

Posted on
Thu Jan 21, 2010 8:25 pm
jay (support) offline
Site Admin
User avatar
Posts: 8764
Joined: Mar 19, 2008
Location: Austin, Texas

Re: time date action BEFORE sunset?

ckeyes888 wrote:
So just to clarify, it's not currently possible to setup an event to only happen
over a 5 min span etc.?

I was hoping to have my outside light just stay on for a minute or two
when I turn it on when I leave for work in the am which is typically about the same time.

Carl

P.S. Just playing around with some possibilities and discovered I could make a variable,
( a better name might be "State Holder") and have it's state change from true to false
depending on what time it is. If I turn on the light I want controlled while that state
is true I just have it turn on and auto-off after a few minutes.
Seems to work fine.


Yep, that's the easiest non-AppleScript way of doing it.

Jay (Indigo Support)
Twitter | Facebook

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests