Hello together,
I’ve some general understanding problems with coding or connecting the controls in the plugin. Maybe someone can explain some procedure, because I’m not so good in programming.
I have one device with “Capabilities” ColorControl, ColorTemperature, Switch, (Lock) and SwitchLevel which I can use for my ColorWheel, temperature slider, button and brightness slider. Now I wanted to add three more sliders to manually set the three colors for R,G and B, but there aren’t more capabilities in that device which I can use for the sliders. Now I’m wondering if I have to use one or more other “Devices” (like Switch1, Switch2…) to use other “ColorControl” or “SwitchLevel” attributes for the sliders or if I can use the same device and differ them with different variables?
I mean I have three sliders and make a devicebinding with Switch1.Level but how I can differ them in the code? Maybe like this:
case “Level”:
device.Level = value;
if(sliderOne) tcp.send(value + “x”);
if(sliderTwo) tcp.send(value + “y”);
if(sliderThree) tcp.send(value + “z”);
break;
Maybe someone understands my problem and can help. Would be great!
Thanks and best regards,
Thorsten
test home remote TCP.hrp (2.6 MB)