MeDoISY Posted January 23, 2019 Posted January 23, 2019 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?
rccoleman Posted January 23, 2019 Posted January 23, 2019 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>".
MeDoISY Posted January 23, 2019 Author Posted January 23, 2019 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.