Item als Text-File(kannst du natürlich auch in der Main-UI so anlegen):
Code: Alles auswählen
Switch Dummy_3 "Testschalter Dummy3 [%s]" (gPower,gPower1) ["WallSwitch", "Point_Control_Switch"] { stateDescription="pattern" [options="ON=online,OFF=offline",readOnly=true], synonyms="Schalter" }
Code: Alles auswählen
component: oh-toggle-item
config:
icon: oh:light
iconUseState: true
item: Dummy_3
title: Dummy 3
Code: Alles auswählen
component: oh-label-item
config:
item: Dummy_3
title: Dummy_3 ohne Action
icon: oh:light
iconUseState: true
Code: Alles auswählen
component: oh-label-item
config:
item: Dummy_3
title: Dummy_3 als Label mit Action
icon: oh:light
iconUseState: true
action: toggle
actionItem: Dummy_3
actionCommand: ON
actionCommandAlt: OFF