Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to keep program status over reboot

Featured Replies

Posted

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.

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

  • Author

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.

  • Author

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.

The Variable should be a State variable if it needs to trigger a Program when the value changes

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.