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.

Query command for program use?

Featured Replies

Posted

Is there a command (or program) that can learn what the "Current State" is of a device? (The "current state" that is listed on the ISY summary page in the admin console, e.g. 22%, 30%, On, Off)

 

I would like to be able for a program to query a device, store it's current state in a variable, so a program can later come back and restore that state to the device. For example, turn off all lights in all rooms around a viewing room when the movie starts, then when finished restore those lights to what they were originally - 22% or On or Off, etc.

There is a Query command but the current state cannot be stored a variable. We are all hoping this will come sometime this year when Variables are enhanced.

 

Until then a Program can check for a range of values

 

If Status 'xxxxx' is => 20%

and Status 'xxxxx' is =< 30%

 

Then

 

do something.

 

Checking for every possible On Level has too many possibilities.

There is only one example I have seen posted by wwat that may work:

viewtopic.php?f=27&t=10348

His example is about 14 posts down on page1 with program examples and a screen shot of his 'Bathroom Scene changes' folder.

I have used this method to set an integer variable from 1 to 10 to store a device's status then later using it to restore the light level of that device. It is a work around but does the job.

~Mike

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.