Guy Lavoie Posted Monday at 08:30 PM Posted Monday at 08:30 PM 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! Quote
Guy Lavoie Posted Monday at 09:08 PM Author Posted Monday at 09:08 PM 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. 😀 Quote
sjenkins Posted 23 hours ago Posted 23 hours ago (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 23 hours ago by sjenkins Quote
Guy Lavoie Posted 23 hours ago Author Posted 23 hours ago 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! Quote
sjenkins Posted 14 hours ago Posted 14 hours ago 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.