Heed help with RGB
Posted: Sunday 13 May 2018 13:29
Hi, I'm new here, I'm trying to connect the RGB strip to the system. Dimmer was able to connect. But how to change the color, the color itself was sent to the ESP. As well as the dimmer value. I need HEX as in the log.
2018-05-13 11:18:43.084 setcolbrightnessvalue: ID: d, bri: 61, color: '{m: 3, RGB: caffd3, CWWW: 0000, CT: 0}'
Something similar to http://" .. IP .. "/?RGB=HEXvalue
or rgb like R=RR G=GG B=BB
Dimmer I use:
Is this possible in Domoticz?
2018-05-13 11:18:43.084 setcolbrightnessvalue: ID: d, bri: 61, color: '{m: 3, RGB: caffd3, CWWW: 0000, CT: 0}'
Something similar to http://" .. IP .. "/?RGB=HEXvalue
or rgb like R=RR G=GG B=BB
Dimmer I use:
Code: Select all
commandArray = {}
DomDevice = 'Bed_rgb_light';
IP = '192.168.1.40';
if devicechanged[DomDevice] then
DomValue = otherdevices_svalues[DomDevice];
CalcValue = DomValue;
commandArray['Variable:Bed_rgb_light_var'] = tostring(CalcValue);
-- print ("dimm Level = "..uservariables['Bed_rgb_light_var']);
runcommand = "curl http://" .. IP .. "/?A=" .. CalcValue .. " ";
os.execute(runcommand);
print("PWM calculated value= "..CalcValue);
end
return commandArray