From b6c7ba89cbab5681b7c2a996509a77f85becd1e5 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Mon, 5 Sep 2022 21:40:51 +0200 Subject: [PATCH] show office blinds position in icon --- config/uwap-home/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index 9d6b975..d7d6dc1 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -668,7 +668,12 @@ const config: Config = { officeBlinds: { name: "Jalousien Büro", position: [170,658], - icon: svg(icons.mdiBlinds), + icon: withState((s) => ( + (s["officeBlindLeftposition"] < 7 && + s["officeBlindRightposition"] < 7) ? + svg(icons.mdiBlindsOpen) : + svg(icons.mdiBlinds) + )), ui: [ { type: "slider",