From 42e7697bf8fe68e3686ce13d86e7a6a7e01b7515 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 4 Oct 2020 18:54:29 +0200 Subject: [PATCH] Add basic controls of the Vorstandswhirlpool (#104) --- config/rzl/index.js | 66 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/config/rzl/index.js b/config/rzl/index.js index f411afa..cee8554 100644 --- a/config/rzl/index.js +++ b/config/rzl/index.js @@ -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: [