Build Hash: 2e6733e
Compile Date: 2017-01-11 20:07:58
I've got two dummy dimmer devices for controlling a Yeelight RGB bulb via a LUA event scripts provided here somewhere.
One is for controlling the white "Temperature" and the other device for controlling the Brightness.
I can control them pretty good with the sliders and I can turn them OFF with the "button" - but not turn them ON.
A little troubleshooting revealed that I don't get the Slider/Dimmer value in the variables for the device, when I click on the ON/OFF button,
it only gives me 0.
Part of the code for the Dimmer device. It takes the current temperatur value from the Temperature device, and the Brightness-level
from the Dimmer-device to set the correct color temp and brightness:
Code: Select all
TempValue = otherdevices_svalues[TempDevice];
CalcValue = ((TempValue-1) * 48)+1700;
DomValue = otherdevices_svalues[DomDevice];
The two print statements give me:
(Dimmer slider is actually at about 50%)
It's a little strange that I can get the temperature slider value correctly from the other dummy device, but not from the device I'm clicking on (the brightness device) !?!?!
Am I doing something wrong, is this by design (strange!) or a bug?!