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.

Program Variables

Featured Replies

Posted

It would be very useful to have the ability to create and use variables in programs. For example, query a dimmer and save the value for future 'standard' dimmer level.

 

A second request would be for a standard 'C' type 'case statement' using a variable to switch processing options.

 

Regards,

 

Carl

Hi Carl,

 

Variables are a heavily requested feature and we are working on implementing them. Can't give you an ETA though. Please do be kind enough to watch (subscribe) to http://forum.universal-devices.com/viewtopic.php?t=930 to be notified.

 

The case statement might be a little difficult using our UI. We'll look into it.

 

With kind regards,

Michel

  • 2 months later...

+ 1 for variables. It would be nice to persist state somewhere other than on a physical device. Even if it was as primitive as a fake device with an on/off state. I like to have a current state for my house, e.g. Morning, Day, Evening, Sleep, Vacation, Emergency. I can use the state in programs to determine how the response to certain actions should proceed.

 

As far as a case statement, any ability to have nested IFs or Else Ifs would work. Else Ifs would also work in your GUI.

Michel,

 

Thanks for that. I did see that in another post and that will work in the near term. Instead of one state variable, I can have 6 programs for each state, and in the "Then" action section of each program, they can run the 'Else" action section of each of the other states, making the states exclusive. So running Sleep State Then will set Sleep State program to true, as well as set all the other states to false.

Create an account or sign in to comment

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.