From fdb49f79a5126d4f50c6c5f8b07c7c34ceb1424c Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Fri, 6 Nov 2020 19:36:51 +0100 Subject: [PATCH] uwap-home: Add heating controls office --- config/uwap-home/index.js | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index f601007..0d0841e 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -201,9 +201,13 @@ const config: Config = { "temperature-control/bedroom/target", 21.5), ...topicTasmota("fanOffice", "sonoff-office-fan"), ...topicHomeBoolean("fanOfficeAuto", "temperature-control/office"), + ...topicHomeBoolean("heaterOfficeAuto", + "temperature-control/office_heating"), ...topicHomeBoolean("lueftenHint", "lueften"), ...topicHomeNumber("fanOfficeTarget", "temperature-control/office/target", 21.5), + ...topicHomeNumber("heaterOfficeTarget", + "temperature-control/office_heating/target", 21.5), ...topicBulbNumber("hallway", "brightness"), ...topicBulbState("hallway"), ...topicBulbNumber("hallway2", "brightness"), @@ -317,10 +321,14 @@ const config: Config = { text: "Ein/Ausschalten", icon: svg(icons.mdiPower) }, + { + type: "section", + text: "Lüftungs-Automatik" + }, { type: "toggle", topic: "fanOfficeAuto", - text: "Automatik", + text: "On/Off", icon: svg(icons.mdiAirConditioner) }, { @@ -336,6 +344,30 @@ const config: Config = { { value: 20, label: "20°C" }, { value: 25, label: "25°C" } ] + }, + { + type: "section", + text: "Heizungs-Automatik" + }, + { + type: "toggle", + topic: "heaterOfficeAuto", + text: "On/Off", + icon: svg(icons.mdiRadiator) + }, + { + type: "slider", + min: 15, + max: 25, + step: 0.1, + text: "Zieltemperatur", + icon: svg(icons.mdiOilTemperature), + topic: "heaterOfficeTarget", + marks: [ + { value: 15, label: "15°C" }, + { value: 20, label: "20°C" }, + { value: 25, label: "25°C" } + ] } ] },