Change device configuration in Lua
Moderator: leecollings
-
- Posts: 16
- Joined: Wednesday 02 December 2015 19:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Change device configuration in Lua
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?
-
- Posts: 84
- Joined: Saturday 05 March 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Change device configuration in Lua
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
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
-
- Posts: 16
- Joined: Wednesday 02 December 2015 19:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Change device configuration in Lua
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).
-
- Posts: 84
- Joined: Saturday 05 March 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Change device configuration in Lua
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
viewtopic.php?f=4&t=11514&p=82815&hilit=dimmer#p82815
Bye, GD
-
- Posts: 16
- Joined: Wednesday 02 December 2015 19:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Change device configuration in Lua
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.

Who is online
Users browsing this forum: No registered users and 1 guest