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.

Variable +1 Using Rest Command

Featured Replies

Posted

Is there a way to +1 to a variable using the rest command?  I use the following to set the variable to 2 and everything works fine.

/rest/vars/set/1/18/2

I'd like to be able to increment the variable using the rest command.  My current workaround is to have a program in the ISY that increments the variable ($VariableName += 1) in the "Then" part of a program and to use the rest command to run the program (/rest/programs/<programID>/runThen).  I'd like to skip the program part.

 

I've tried /rest/vars/set/1/18/+1 but that doesn't work.

Edited by zerop

  • 5 weeks later...
  • Author

Just wanted to bump this up to the top.

 

Anyone?

The program you have is the solution.  This is a specific use case, which has a working solution. So, I'm not sure it is a good fit for inclusion in firmware.

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.