Closed rasbilly closed 3 months ago
Thanks for your bug report!
There were a few bugs in the Lumitech handling (e.g. values were read-only) which I could already fix.
But it also seems like the Lumitech colors are coming in a wrong format. To figure out what is wrong, I would like you to do the following:
/opt/iobroker/node_modules/iobroker.loxone/build/controls/
ColorpickerBase.js
lumitechColorToBrightnessTemperature()
:
lumitechColorToBrightnessTemperature(value) {
lumitechColorToBrightnessTemperature: "${value}"
);
if (!value) {
return undefined;
}
lumitechColorToBrightnessTemperature
The colors and brightness are right! Red: "hsv (350,100,100)" Warm and cold white too.
This is probably due to the regex. 'match' is always 'null'.
const match = value.match(/lumitech\((\d+),(\d+)\)/i);
loxone.0 | 2021-06-30 18:17:43.971 | info | (5896) lumitechColorToBrightnessTemperature: "temp(76,5930)" loxone.0 | 2021-06-30 18:16:53.750 | info | (5896) lumitechColorToBrightnessTemperature: "hsv(61,91,76)"
"Lumitech" values are not displayed via the LightController (First red box). The output via the individual module is possible (2. red box). In addition, the individual module is read only.
For the future, a conversion between Lumitech <--> eg. Hex, rgb,.. values can also be carried out. An example implementation can be seen here: https://github.com/Aircoookie/WLED/blob/master/wled00/lx_parser.cpp
I can gladly provide further information if necessary :)
Screenshots
![iobroker LichtControler](https://user-images.githubusercontent.com/30529854/122982682-71f1dd80-d39b-11eb-87a7-274beda7ce05.png)
Lichtsteuerung: Lumitech Light
WLED: value
Versions:
Edit: improved formatting