diff --git a/config/rzl/index.js b/config/rzl/index.js index 79e7523..19ee6c0 100644 --- a/config/rzl/index.js +++ b/config/rzl/index.js @@ -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: [