From 39c364c74284686c486a4b69083af3cda024ef37 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Mon, 19 Oct 2020 18:35:51 +0200 Subject: [PATCH] use new mark feature to clean up fan settings --- config/uwap-home/index.js | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index 888f9da..f601007 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -272,12 +272,6 @@ const config: Config = { text: "Automatik", icon: svg(icons.mdiAirConditioner) }, - { - type: "text", - text: "Zieltemperatur", - icon: svg(icons.mdiTemperatureCelsius), - topic: "fanBedroomTarget" - }, { type: "slider", min: 15, @@ -285,7 +279,12 @@ const config: Config = { step: 0.1, text: "Zieltemperatur", icon: svg(icons.mdiOilTemperature), - topic: "fanBedroomTarget" + topic: "fanBedroomTarget", + marks: [ + { value: 15, label: "15°C" }, + { value: 20, label: "20°C" }, + { value: 25, label: "25°C" } + ] } ] }, @@ -324,12 +323,6 @@ const config: Config = { text: "Automatik", icon: svg(icons.mdiAirConditioner) }, - { - type: "text", - text: "Zieltemperatur", - icon: svg(icons.mdiTemperatureCelsius), - topic: "fanOfficeTarget" - }, { type: "slider", min: 15, @@ -337,7 +330,12 @@ const config: Config = { step: 0.1, text: "Zieltemperatur", icon: svg(icons.mdiOilTemperature), - topic: "fanOfficeTarget" + topic: "fanOfficeTarget", + marks: [ + { value: 15, label: "15°C" }, + { value: 20, label: "20°C" }, + { value: 25, label: "25°C" } + ] } ] },