Page 1 of 1

"DIMMER" level inaccessible

Posted: Wednesday 20 December 2023 10:39
by progresive
DIMMER type switch in domoticz.

Version: 2023 .2
Build Hash: 19efd039c

So far, I have get the slider level in LUA with the command:

Code: Select all

volume = devicechanged[glosnosc]:gsub('%D', '')
because the command devicechanged[volume] returned:

Code: Select all

LUA: Set Level: 63 %
probably after the last Domoticz update, when changing the level using the slider, it returns only On. There is no information about the level/position:

Code: Select all

 Status: LUA: On
How to get the state of DIMMER in LUA ?

Re: "DIMMER" level inaccessible

Posted: Monday 25 December 2023 23:12
by waltervl
I don't know the answer as I don't use the basic Lua integration. In Dzvents it works without issues.

So if nobody will answer this you could consider to switch/convert your Lua script to dzvents (based on Lua and much better documented)