Add door status
This commit is contained in:
parent
6f788b6478
commit
81d8840c32
1 changed files with 13 additions and 0 deletions
|
|
@ -45,6 +45,12 @@ const config : Config = {
|
|||
command: "/service/openhab/in/pca301_rundumleuchte/command",
|
||||
value: "OFF",
|
||||
values: { on: "ON", off: "OFF" }
|
||||
},
|
||||
door_status: {
|
||||
state: "/service/status",
|
||||
command: "",
|
||||
value: "\"closed\"",
|
||||
values: { on: "\"open\"", off: "\"closed\"" }
|
||||
}
|
||||
},
|
||||
controls: {
|
||||
|
|
@ -162,6 +168,13 @@ const config : Config = {
|
|||
topic: "rundumleuchte"
|
||||
}
|
||||
]
|
||||
},
|
||||
door: {
|
||||
name: "Tür",
|
||||
position: [480,20],
|
||||
icon: "swap_vert",
|
||||
iconColor: state => state.door_status == "on" ? "#00FF00" : "#FF0000",
|
||||
ui: []
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue