Add basic controls of the Vorstandswhirlpool (#104)

This commit is contained in:
Ranlvor 2020-10-04 18:54:29 +02:00 committed by GitHub
parent 66ff91da2d
commit 42e7697bf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,6 +225,35 @@ const config: Config = {
type: types.option({ on: "ON", off: "OFF" })
},
defaultValue: "off"
},
whirlpoolTemperatureSetpoint: {
state: {
name: "/service/whirlpool/state",
type: types.json("temperatureSetpointC")
},
command: {
name: "/service/whirlpool/set/temperature",
type: types.string
},
defaultValue: "0"
},
whirlpoolBubbles: {
state: {
name: "/service/whirlpool/state",
type: types.json("bubbles")
},
command: {
name: "/service/whirlpool/set/bubbles",
type: types.string
},
defaultValue: "0"
},
whirlpoolTemperature: {
state: {
name: "/service/whirlpool/state",
type: types.json("waterTemperatureC")
},
defaultValue: "0"
}
},
//Tasmota-Dosen
@ -598,6 +627,43 @@ const config: Config = {
topic: "nebenraumPowerStatus"
}
]
},
whirlpool: {
name: "Vorstandswhirlpool",
position: [1413, 500],
icon: mdi("pool"),
iconColor: ({whirlpoolBubbles}) =>
(whirlpoolBubbles > 0 ? hex("#00ff00") : hex("#000000")),
ui: [
{
type: "text",
icon: mdi("oil-temperature"),
text: "Temperatur",
topic: "whirlpoolTemperature"
},
{
type: "text",
icon: mdi("oil-temperature"),
text: "Temperatur Sollwert",
topic: "whirlpoolTemperatureSetpoint"
},
{
type: "slider",
min: 4,
max: 100,
text: "Temperatur Sollwert",
icon: mdi("oil-temperature"),
topic: "whirlpoolTemperatureSetpoint"
},
{
type: "slider",
min: 0,
max: 9,
text: "Bubbles",
icon: mdi("chart-bubble"),
topic: "whirlpoolBubbles"
}
]
}
},
layers: [