help with manual overide of automation rules

Tips and Techniques for using MLServer's Automation Rules
ccharmatz
Intermediate
Intermediate
Posts: 344
Joined: Wed Oct 15, 2003 12:51 pm
Location: Clearwater Florida
Contact:

help with manual overide of automation rules

Postby ccharmatz » Wed Nov 14, 2007 11:55 am

Hello,

I am kind of stuck on an automation rule, was wondering if anyone has a suggestion.

Goal: To prevent a timed or automated action from turning off a device or light if it was manually activated.

As an example, say I have an automation rule to turn on light 113 at 3pm. There is then another automation rule to turn this back off at 4pm. This works perfectly. The problem or annoyance is when on occasion you do not want 113 to turn off.

For this I added the variable mllighting_113_auto. When a rule or schedule turns on 113 it sets this to true. Within mainlobby if the light is turned on again from a scene during the automation period it will set this to false and fail the automation rule for turning off.

I currently have two problems with this method. The first and most pressing. I need a local insteon switch press to be able to set the flag to false. The second is that if the device is activated prior to the automation schedule this also does not work.


example rules.

Whenever currentdayofweek equals Monday
And currenthmmil equals 12:00
Then MLServecmd.macro|setvariable|mllighting_113_auto~true!MLLighting|on~113


Whenever currentdayofweek equals Monday
And currenthmmil equals 15:00
And mllighting_113_auto equals true
Then MLServcmd.MLLighting|off~113

I am also open to a completely different way of doing this.

Thank you for any help

Charles

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Wed Nov 14, 2007 1:17 pm

What if you put a conditional that if a flag is true, then run the rest of the automation event. If it is false, then do something else (or nothing).

ccharmatz
Intermediate
Intermediate
Posts: 344
Joined: Wed Oct 15, 2003 12:51 pm
Location: Clearwater Florida
Contact:

Postby ccharmatz » Wed Nov 14, 2007 4:41 pm

Think I am missing something in your reply smooth. This is kind of what it does now. Nothing if the condition is false.

But I could not think of a way to make a switch press set the condition.

cc-

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Wed Nov 14, 2007 4:59 pm

SetVariable|mllighting_113_auto~False

Sorry, not reading into the detail of what you are trying to do...hope this helps.

ccharmatz
Intermediate
Intermediate
Posts: 344
Joined: Wed Oct 15, 2003 12:51 pm
Location: Clearwater Florida
Contact:

Postby ccharmatz » Wed Nov 14, 2007 5:08 pm

I am setting the false with a button press if the device is controlled via a main lobby scene, however how would you set the false on a physical insteon switch press?


Return to “Automation Rules”

Who is online

Users browsing this forum: No registered users and 1 guest