Ich habe die Bridge direkt in der Homematic eingebunden. Nun versuche ich die Farbe per Script zu ändern.
Soweit ich weiß, erkennt man den Datenpunkt doch an dem XMLAPI-Auszug:
Code: Alles auswählen
<device name="VIR-LG-RGBW-DIM HU-Hue color l" ise_id="4759">
<channel name="VIR-LG-RGBW-DIM HU-Hue color l:0" ise_id="4760" visible="true" operate="true"/>
<channel name="VIR-LG-RGBW-DIM HU-Hue color l:1" ise_id="4761" visible="true" operate="true">
<datapoint name="VirtualDevices.HU-Hue color l:1.LEVEL" type="LEVEL" ise_id="4762" value="0.000000" valuetype="4" valueunit="100%" timestamp="1533234883" operations="3"/>
<datapoint name="VirtualDevices.HU-Hue color l:1.RGBW" type="RGBW" ise_id="4763" value="rgb(255,255,255,255)" valuetype="20" valueunit="" timestamp="1533234883" operations="3"/>
<datapoint name="VirtualDevices.HU-Hue color l:1.WHITE" type="WHITE" ise_id="4764" value="2000.000000" valuetype="4" valueunit="100%" timestamp="1533234883" operations="3"/>
</channel>
</device>
Code: Alles auswählen
dom.GetObject("VirtualDevices.HU-Hue color l:1.RGBW").RGBW("rgb(255,0,0,255)");
Code: Alles auswählen
Error 1 at row 1 col 100 near ^("rgb(255,0,0,255)");
Parse following code failed:
dom.GetObject("VirtualDevices.HU-Hue color l:1.RGBW").RGBW("rgb(255,0,0,255)");
Kann jemand helfen ?
Gruß Kevin