Switch - HUE Lightstrip

Begonnen von gloob, 15 November 2018, 11:12:44

Vorheriges Thema - Nächstes Thema

gloob

Hallo,

Ich habe einen Hue Lightstrip der wie folgt definiert ist:

defmod HUEDevice2 HUEDevice 2  IODev=deCONZ
attr HUEDevice2 IODev deCONZ
attr HUEDevice2 alias Light 2
attr HUEDevice2 color-icons 2
attr HUEDevice2 devStateIcon {(HUEDevice_devStateIcon($name),"toggle")}
attr HUEDevice2 model LST002
attr HUEDevice2 room Homekit,Zigbee
attr HUEDevice2 subType extcolordimmer
attr HUEDevice2 webCmd rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:rgb DEFF26:rgb 0000ff:ct 490:ct 380:ct 270:ct 160:toggle:on:off


Jetzt würde ich gerne den Strip über einen "Switch" in FTUI ein und aus schalten und den Status anzeigen.
Leider ist der STATE vom Strip sowas wie "dim87%" oder "off". Wie kann ich das in meinen FTUI Switch unter bringen?

<div data-type="switch" class="big" data-device="HUEDevice1" data-get-on="on" data-get-off="off"></div>
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

gloob

Hat sich erledigt :)

<div data-type="switch" class="big" data-device="HUEDevice1" data-get-on="!off" data-get-off="off"></div>
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway