Page 1 of 1
Change device configuration in Lua
Posted: Monday 11 April 2016 13:34
by RoyT
I've seen a bunch of topics dealing with changing device configuration (parameters), but those threads either died without a response, or resorted to PHP scripts, Bash or similar. Of course I could do a HTTP Post in Lua to mimic the behaviour of the Domoticz forms for this, but is there an easier way Domoticz exposes for this purpose from within a Lua script?
Re: Change device configuration in Lua
Posted: Monday 11 April 2016 20:50
by georgesattali
Hello,
what kind of configuration would you like to do ? Can you give an example?
Maybe, this page
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
could be of some help.
Bye, GD
Re: Change device configuration in Lua
Posted: Wednesday 13 April 2016 14:10
by RoyT
I'd like to change device parameters that are sent to a hardware device, such as a dimmer. I don't think that can be done through the json endpoint, but even if so, I still consider that hacky from within Lua code that's evaluated by Domoticz itself (just like you use commandArray instead of making a bunch of http requests).
Re: Change device configuration in Lua
Posted: Wednesday 13 April 2016 20:11
by georgesattali
I don't have a dimmer, but people in this thread do, maybe you can ask them directly ?
viewtopic.php?f=4&t=11514&p=82815&hilit=dimmer#p82815
Bye, GD
Re: Change device configuration in Lua
Posted: Saturday 23 April 2016 22:24
by RoyT
It has nothing to do with a dimmer

Device parameters are a universal aspect of the Z-Wave system, and the question stands whether Domoticz enables modifying them from within the script context instead of hacking it with http requests.