RZL: Add Fablab Notaus

This commit is contained in:
uwap 2018-08-26 15:51:23 +02:00
parent ec637b8645
commit 5c1f3458ec

View file

@ -208,6 +208,13 @@ const config: Config = {
type: types.string
},
defaultValue: "0"
},
nebenraum_power_status: {
state: {
name: "/service/nebenraum-power",
type: types.option({ ON: "on", OFF: "off" })
},
defaultValue: "off"
}
},
//Tasmota-Dosen
@ -756,6 +763,22 @@ const config: Config = {
topic: tradfri_remote.level("65546")
}
]
},
nebenraum_power_status: {
name: "Notaus Fablab",
position: [613, 537],
icon: ({nebenraum_power_status}) =>
nebenraum_power_status == "on" ? rawMdi("flash") : rawMdi("flash-off"),
iconColor: ({nebenraum_power_status}) =>
nebenraum_power_status == "on" ? hex("#00ff00") : hex("#000000"),
ui: [
{
type: "text",
icon: mdi("power"),
text: "Status Notaus",
topic: "nebenraum_power_status"
}
]
}
},
layers: [