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.

KPL and REST Question

Featured Replies

Posted

Hello,

 

Using the rest interface, if I go to:

 

(legit IP is in place of IP OF MY ISY)

 

http://IP OF MY ISY/rest/nodes

 

It shows the addresses of KeyPadLincs as

 

(legit data/address is in place of X.X.X)

 

X.X.X.1

X.X.X.3

X.X.X.4

X.X.X.5

X.X.X.6

 

I get it that .1 is the ON/OFF on the 6 button (i.e. the load). I can't seem to do anything with the other addresses. I would expect the LED to light up if I try to use the REST interface to turn the switch on. I know not to expect any devices to turn on. When I hit the link:

 

(legit IP is in place of IP OF MY ISY)

(legit data/address is in place of XX XX XX)

 

http://IP OF MY ISY/rest/nodes/XX XX XX 1/cmd/DON

 

I get an expected response. If I replace the 1 with 3, 4, 5, or 6 I get the following message back:

 

404

 

Is this expected behavior? Please enlighten me. Everything else in the app I have written that uses REST works fine except the 4 small buttons on the KeyPadLincs.

 

Thanks in advance!

David

Unfortunately, KPL secondary buttons cannot be controlled directly. Try adding the button to a scene, and controlling the scene instead.

  • Author

Thank you for the quick reply. I'm parsing the XML document returned by /rest/nodes to build a list of devices and scenes that my app can control. Do you know of a reliable way I could detect secondary buttons and filter them out of my list? is searching for .3 and higher a good way to do it or is there something better?

 

Thanks!

David

Hi David,

 

Please send an email to support@universal-devices.com to get the latest device configuration file. What you need to do is to first figure out which device is a KPL. Then, by looking at the address of the device, all those ending with numbers above 1 are sub buttons.

 

With kind regards,

Michel

 

Thank you for the quick reply. I'm parsing the XML document returned by /rest/nodes to build a list of devices and scenes that my app can control. Do you know of a reliable way I could detect secondary buttons and filter them out of my list?

 

Thanks!

David

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.