Is there a http command to dim or brighten a light incrementally, say 10%? I just see setloadlevel and you must specify an exact amount.
I think you could do this fairly easily with a scene.
You would fetch the current level of a light, increment/decrement it, and then set the level. Just a few lines of luup.
The scene could be triggered with a http call.
Thanks Radar. I thought of that but I looking to make an interface for vera and to do this it would require 2 scenes per device (1 dim, 1 brighten). I was hoping for a direct command to bypass the 50+ scenes that would need to be created.
Hi @Shorty
Have you looked at the http options under lu_invoke ?
http://veraIP:3480/data_request?id=lu_invoke
Then look for a dimmer light you have installed and then see the types of calls you can make. E.g
Not sure if it is of any use, but it might give you some ideas
Maybe we could try another approach that would provide some generality.
Are you calling these http commands from another computer (maybe from perl, python, java, or lua)? It is pretty easy to put together a function in another language that would provide an increment / decrement.
Sorry but no. Just standard http, there isn’t a language involved. I don’t think it is an option but should be.