Elk M1 Gold - Rules Question

solidst8

New Member
I'm fairly new to the Elk M1G, but I'm trying to set a rule that says: At 10:30pm, set the temperature to 70 degrees - unless the system is armed away mode. Everything works great, but I cannot find out how to write the exception - unless system is armed away. Is there a way to create a 'not'? 'And' statements seem easy, but not 'not'. Perhaps I can toggle a counter when the system is armed away and read the counter when setting the temperature?
 
No, you need to "and" the other conditions.
 
Whenever the time is 10:30pm
and system is disarmed
Then
set temp
 
Whenever the time is 10:30pm
and system is armed stay
Then
set temp
 
Whenever the time is 10:30pm
and system is armed night
Then set temp
 
etc.
 
Another option that is probably only useful if you have multiple times you want to change the system based on the alarm NOT being in a specific armed state would be to set a counter for each state.
 
Whenever system is armed away
Then
Set counter x to 1
 
Whenever system is armed stay
Then
Set counter x to 2
 
Whenver system is disarmed 
Then
Set counter x to 0
 
etc.
 
Whenever time is 10:30pm
and counter x is not 1
Then
set temp
 
Thanks Lou. I guess that really is the simplest solution. I was hoping I had missed something in the rule options for unless/not.
 
Notably, Elk has no "or" statement.  Which is why you have to just have a whole program for each "or".
 
"is not" is also only available for counters (variables).
 
FWIW there's not a huge difference in rule space... for instance, each AND takes up a whole new rule just as if it were its own.
 
Back
Top