Jump to content

Cannot set virtual dimmer level with REST command


Guy Lavoie

Recommended Posts

Posted

I love this plugin, very handy for several things. Now I'm trying to use it to set a touch lamp to one of 3 levels by program statements that look at a virtual dimmer level setting. Works great if I manually set the virtual dimmer level in admin console. But if I set the level through a REST command (eg: http://admin:<passwd>@192.168.0.xx:8080/rest/nodes/n006_90/cmd/DON/128) nothing happens. Turns on and off through REST ok, but setting level doesn't. Any ideas?

Thanks!

Posted
35 minutes ago, Guy Lavoie said:

I love this plugin, very handy for several things. Now I'm trying to use it to set a touch lamp to one of 3 levels by program statements that look at a virtual dimmer level setting. Works great if I manually set the virtual dimmer level in admin console. But if I set the level through a REST command (eg: http://admin:<passwd>@192.168.0.xx:8080/rest/nodes/n006_90/cmd/DON/128) nothing happens. Turns on and off through REST ok, but setting level doesn't. Any ideas?

Thanks!

I did find a workaround, since setting the dim level does work under program control. So I have my REST command set a state variable, and a program track the variable to set the dim level.

Would be nice it if worked directly. 😀

 

Posted (edited)

DON and DOF are for full on and off

setDim will set the level so to use your example:

http://admin:<passwd>@192.168.0.xx:8080/rest/nodes/n006_90/cmd/setDim/128

 

Edited by sjenkins
Posted

Interesting. setDim isn't mentioned anywhere in the wiki on the REST commands. Funny thing is that the "cmd/DON/128" format works fine with Insteon switches.

I'll try that tomorrow, thanks!

Posted

This is the first time I’ve gotten a REST question on this plugin. You are correct it’s not in the docs, my memory was fuzzy enough I had to pull up the program to remember the command. You won’t find these kind of things in the WIKI for a plugin only in the config help or here on the forums. 
I can add it to the TODO to make it more match the norm, but would not remove this command as it would be a breaking change for someone. 
let me know how it goes!

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