Jump to content

Help with rest


deg01004

Recommended Posts

I am having some trouble using rest. I just received my ISY-99i yesterday and i updated the firmware to v.2.7.6. I'm Trying to use rest via a http command request.

 

Get /rest/nodes/12.4B.5A/cmd/DFON HTTP/1.1\r\nHost: 192.168.50.100

Authorization:Basic ZGVnMDEwMDQ6U2hhZGRlZzA=\r\n\r\n

 

With the program i am using the request has to all be on one line.

 

I believe i have narrowed the problem down to of course myself and the command not being being accepted by the ISY.

 

Do i need to do something besides update the firmware to use the rest interface?

 

Is my request even functional?

 

I have attempted to use the rest interface from my IE web browser directly

using http://192.168.50.100/rest/nodes/12.4B.5A/cmd/DFON with no response so i know that i am doing something essential wrong. Any help would be appreciated.

 

Thanks

Link to comment
I am having some trouble using rest. I just received my ISY-99i yesterday and i updated the firmware to v.2.7.6. I'm Trying to use rest via a http command request.

 

Get /rest/nodes/12.4B.5A/cmd/DFON HTTP/1.1\r\nHost: 192.168.50.100

Authorization:Basic ZGVnMDEwMDQ6U2hhZGRlZzA=\r\n\r\n

 

With the program i am using the request has to all be on one line.

 

I believe i have narrowed the problem down to of course myself and the command not being being accepted by the ISY.

 

Do i need to do something besides update the firmware to use the rest interface?

 

Is my request even functional?

 

I have attempted to use the rest interface from my IE web browser directly

using http://192.168.50.100/rest/nodes/12.4B.5A/cmd/DFON with no response so i know that i am doing something essential wrong. Any help would be appreciated.

 

Thanks

 

It looks like you have the basic format of the request correct, but the device address format is wrong. You need to use the ISY's address format. Best way to get that is to use the REST /rest/nodes first and look at how the device addresses are returned. I think you probably want it to look like:

http://192.168.50.100/rest/nodes/12 4B 5A 1/cmd/DFON

 

For the browser URL, you might have to change the spaces to '%20'.

Link to comment

Thanks. I got it working with that last bit of help. I found out i also needed that carriage return that Command fusion uses. My final HTTP request was:

 

Get /rest/nodes/12%204B%205A%201/cmd/DOF HTTP/1.1\x0D\x0AHost: 192.168.50.100\x0AAuthorization:Basic YWRtaW46YWRtaW4=\x0D\x0A\x0D\x0A

 

Thanks for the help

 

Shad

Link to comment
  • 1 year later...

Hi there,

 

I too am working with Command Fusion right now and came up with the same REST commands as in this thread. Only issue I am having is the consistent response of the ISY, when the ISY is "busy" which seems at my home to be a bit (I am sure it's something to do with motion sensors - had a lot of issues with them at a recent job) it doesn't seem to respond to REST commands. Is there a way to improve this or somehow give REST a higher priority in ISY ? Getting CF to perform response checks and resend commands is a SOB. Thanks.

 

Bjorn

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...