add fountain

This commit is contained in:
Ranlvor 2022-08-17 14:15:58 +02:00
parent fa8d403076
commit d73ee95178
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -347,6 +347,9 @@ const config: Config = {
"temperature-warning/office/setpoint", 15.0),
...topicHomeNumber("temperatureWarningBedroom",
"temperature-warning/bedroom/setpoint", 15.0),
...topicZigbeeState("powerFountain", "power_fountain"),
temperatureKitchen: {
state: {
name: "tele/sonoff-kittchen/SENSOR",
@ -1465,6 +1468,21 @@ const config: Config = {
]).concat(sliderSVXY("ledstrip_livingroom", "x"))
.concat(sliderSVXY("ledstrip_livingroom", "y"))
},
livingroomFountain: {
name: "Brunnen Wohnzimmer",
position: [550, 240],
icon: svg(icons.mdiFountain).color(
({powerFountainState}) =>
(powerFountainState === "on" ? hex("#00FF00") : hex("#000000"))),
ui: ([
{
type: "toggle",
topic: "powerFountainState",
text: "Ein/Ausschalten",
icon: svg(icons.mdiPower)
},
]),
},
livingroomSoundbar: {
name: "Soundbar Wohnzimmer",
position: [550, 200],