FHEM Forum

FHEM => Frontends => TabletUI => Thema gestartet von: gloob am 15 November 2018, 11:12:44

Titel: Switch - HUE Lightstrip
Beitrag von: gloob am 15 November 2018, 11:12:44
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>
Titel: Antw:Switch - HUE Lightstrip
Beitrag von: gloob am 15 November 2018, 11:19:22
Hat sich erledigt :)

<div data-type="switch" class="big" data-device="HUEDevice1" data-get-on="!off" data-get-off="off"></div>