Jump to content

REST and a Slider


deg01004

Recommended Posts

Posted

So, I made a slider to control my insteon lights through ISY-99i's rest interface. I have the scale going from 0-255 and it works perfectly from 1-255.

 

My code is

192.168.50.100/rest/nodes/99999/cmd/DON/[value]

 

or using my http request:

 

Get /rest/nodes/99999/cmd/DON/[value] HTTP/1.1\x0D\x0AHost: 192.168.50.100\x0AAuthorization:Basic YWRtaW46YWRtaW4=\x0D\x0A\x0D\x0A

 

When the [value] is 0 the lights go to full on. It's easy to work around by setting my scale from 1-255 and having a off button but it would be nice if using 0 made the lights go to off.

 

You can see my slider here

 

http://deg01004.blogspot.com/

 

IMG_0010%5B1%5D

 

IMG_0011%5B1%5D

 

Is there anything i can do to fix this?

 

Thanks Shad

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...