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.

store variable values?

Featured Replies

Posted

is there a way to store variable's values if there is a power outage or you have to restart the ISY?

When you store variable value also set it's initialization value to the same.

Edited by JAbraham

  • Author
8 hours ago, JAbraham said:

When you store variable value also set it's initialization value to the same.

Thank you,

I looked for something like that when I was writing a program but did not see it. Can you tell me how i would do that?

Leak.Kitchen.OK - [ID 0133][Parent 00CD]

If
        'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched On
     Or 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched Off
 
Then
        $sLeak.Kitchen Init To $cLEAK.DRY        <---------- *****************
        $sLeak.Kitchen  = $cLEAK.DRY
        Wait  25 hours
        Run Program 'Leak.Kitchen.OK' (Else Path)
 
Else
        $sLeak.LowBatt.room Init To $cROOM.KITCHEN  <-------------- ***************
        $sLeak.LowBatt.room  = $cROOM.KITCHEN
        $sLeak.Kitchen Init To $cLEAK.LOWBATT       <--------------------- *************
        $sLeak.Kitchen  = $cLEAK.LOWBATT
        Wait  23 hours
        Run Program 'Leak.Kitchen.OK' (Then Path)
 

'Init to' is at the bottom of the arithmetic operator pulldown list

New Program - [ID 0009][Parent 0001]

If
        Time is  9:00:00AM
 
Then
        $s.Test += 1
        $s.Test Init To $s.Test
 
Else
   - No Actions - (To add one, press 'Action')

 

Where you program the += change that to Init To.

image.thumb.png.c506baaad62ffdfe032b476a1b9edfc7.png

Jeff

Edited by JAbraham

  • Author
11 hours ago, larryllix said:

Leak.Kitchen.OK - [ID 0133][Parent 00CD]

If
        'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched On
     Or 'Kitchen / Kitch.LD.dry / Kitch.LD.heartbeat' is switched Off
 
Then
        $sLeak.Kitchen Init To $cLEAK.DRY        <---------- *****************
        $sLeak.Kitchen  = $cLEAK.DRY
        Wait  25 hours
        Run Program 'Leak.Kitchen.OK' (Else Path)
 
Else
        $sLeak.LowBatt.room Init To $cROOM.KITCHEN  <-------------- ***************
        $sLeak.LowBatt.room  = $cROOM.KITCHEN
        $sLeak.Kitchen Init To $cLEAK.LOWBATT       <--------------------- *************
        $sLeak.Kitchen  = $cLEAK.LOWBATT
        Wait  23 hours
        Run Program 'Leak.Kitchen.OK' (Then Path)
 

'Init to' is at the bottom of the arithmetic operator pulldown list

 

10 hours ago, JAbraham said:

New Program - [ID 0009][Parent 0001]

If
        Time is  9:00:00AM
 
Then
        $s.Test += 1
        $s.Test Init To $s.Test
 
Else
   - No Actions - (To add one, press 'Action')

 

Where you program the += change that to Init To.

image.thumb.png.c506baaad62ffdfe032b476a1b9edfc7.png

Jeff

Thank you!!

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.