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.

ISY rest interface works only for setting variables!

Featured Replies

Posted

I can set ISY variables using the rest commands, but I can't turn devices on/off.

Commands are sent from my linux machine.

The following works OK (200 OK):

[root@myplace]# wget -O /dev/null --user=me --password=mypassword http://192.168.1.103/rest/vars/set/2/7/0
--2019-01-23 16:56:52--  http://192.168.1.103/rest/vars/set/2/7/0
Connecting to 192.168.1.103:80... connected.
HTTP request sent, awaiting response... 401 OK
Authentication selected: Basic realm="/"
Reusing existing connection to 192.168.1.103:80.
HTTP request sent, awaiting response... 200 OK
Length: 104 [text/xml]
Saving to: ‘/dev/null’

The following fails (ERROR 404):

The real device node was used, not the 00.11.22 shown.

[root@myplace]# wget --user=me --password=mypassword http://192.168.1.103/rest/nodes/00.11.22/cmd/DOF
--2019-01-23 16:58:51--  http://192.168.1.103/rest/nodes/1B.3F.20.1/cmd/DOF
Connecting to 192.168.1.103:80... connected.
HTTP request sent, awaiting response... 401 OK
Authentication selected: Basic realm="/"
Reusing existing connection to 192.168.1.103:80.
HTTP request sent, awaiting response... 404 OK
2019-01-23 16:58:51 ERROR 404: OK.

What am I doing wrong?

Use spaces (%20) rather than dots in the address.  If you dump the nodes via http://ISY/rest/nodes and find the one you're looking for, you need to reference exactly what it reports in "<address>xxx</address>".

Edited by rccoleman

  • Author

rccoleman -   By Golly It Worked!

The dump shows   <address>00 11 22 1</address>

I used  the following.  I had to add the 1 at the end to make it work.

/rest/nodes/00%2011%2022%201/cmd/DOF

Thanks a lot, I haven't been able to find that explanation any place else.

Archived

This topic is now archived and is 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.