max90034 Posted August 9, 2013 Posted August 9, 2013 I am sure this question has been asked many times but I cannot find the solution... I have "Vacancy" program that is set "true" by switch when I leave vacation house. Basically it is just: ------ If Status Switch ... is On Then No actions else No actions -------- Based on "True" status of this program I then run various programs to control lights, cameras, etc The issue is that after reboot on power outage the status of this program changes to false so nothing work properly. How can I make sure that this program keeps its status after reboot? Thanks. I should add that I use "RemoteLinc 2 Switch" to activate vacation program. I am not sure it it keeps reporting its status.
LeeG Posted August 9, 2013 Posted August 9, 2013 A RemoteLinc2 (Mini Remote) has no actual Status. As a battery RF device it sleeps so nothing can be queried. The ISY simply uses the last command sent as Status which is lost over a reboot. The solution is to use a Variable to keep track of True/False status. By setting the Variable Init value along with the Variable value itself the Variable is insured of remaining at a given value even across a reboot. If Control Switch ... is switched On Or Control Switch ... is not switched Off Then $IAway Init To 1 $IAway = 1 else $IAway Init To 0 $IAway = 0
max90034 Posted August 9, 2013 Author Posted August 9, 2013 Thanks so much. I created IAway integer variable and changed my Vacancy program to set it 1 (or 0) as you described. It works. However, I have a problem now of using this variable (I never used them before). So, I created a program "Cameras-On": If $IAway is 1 Then Set Scene 'Cameras' On Else No Actions I can make the variable IAway to change value from 0 to 1 but the program "Cameras-On" remains false and the scene 'Cameras" remains Off. What did I miss? Thanks again.
max90034 Posted August 9, 2013 Author Posted August 9, 2013 I figure out that my problem is that the program "Cameras-On" does not run automatically after IAway changes it value. So, If I run "If" statement of the program manually, it does activate the scene. But how can I make the program "Cameras-On" to run automatically when value of IAway changes? Thanks.
LeeG Posted August 9, 2013 Posted August 9, 2013 The Variable should be a State variable if it needs to trigger a Program when the value changes
Recommended Posts