- 0
Sign in to follow this
Followers
0

How to encode cvaction file for ISY (works in Open Elec)
Asked by
mguebert
Asked by
mguebert
By using this site, you agree to our Guidelines and Terms of Use.
I struggled for a time trying to get this working, with a lot of help from DexDeadly, Ragnarok, and Winchy I got it working with authorization
First using the postman plugin format a test url command such as http://1.1.1.1/rest/nodes/22222/cmd/DON
Select get in the url header and below that under authorization select basic auth. Input your username and password. Select send to test if the command works. If it does press the </> button and it will generate the authorization hash. copy it into a HEADERS command such as this
http://1.1.1.1/rest/nodes/22222/cmd/DFOF
HEADERS: {"Authorization": "Basic= xxxxxxxxxxxx"}
Note the spaces in the headers portion and the capitalization. These do matter.
The 22222 would be a scene in the isy your controlling
http://1.1.1.1/rest/nodes/22222/cmd/DFOF would turn scene 22222 off
http://1.1.1.1/rest/nodes/22222/cmd/DFON would turn scene 22222 on
http://1.1.1.1/rest/nodes/22222/cmd/DOF/128 would turn scene 22222 to 50% brightness
If you want to control modules directly the command needs %20 for any spaces in the url
http://1.1.1.1/rest/nodes/2 2 2 1/cmd/DFON would be the url in a browser where 2 2 2 1 is module 2 2 2
to get it to work in the cvaction file the spaces must have %20 in them
http://1.1.1.1/rest/nodes/33%2033%2033%201/cmd/DFON would turn on module 33 33 33
I hope this helps
Share this post
Link to post
Share on other sites