From ba49056764cc1577f0fb2a7747c14a285d53ee34 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Fri, 17 Apr 2026 08:04:18 +0200 Subject: [PATCH] =?UTF-8?q?Tilf=C3=B8j=20garageport=20sensor=20batteri=20t?= =?UTF-8?q?il=20vedligehold-view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboards/views/11_vedligehold.yaml | 25 ++++++++++++++++++++++++- include/templates/maintenance.yaml | 1 + 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/dashboards/views/11_vedligehold.yaml b/dashboards/views/11_vedligehold.yaml index fe55685..4ded514 100644 --- a/dashboards/views/11_vedligehold.yaml +++ b/dashboards/views/11_vedligehold.yaml @@ -1577,4 +1577,27 @@ sections: card: type: tile entity: sensor.hojre_battery - name: Gardin hojre \ No newline at end of file + name: Gardin hojre + + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "on" + card: + type: tile + entity: sensor.garageport_batteri + name: Garageport sensor + + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "off" + - condition: numeric_state + entity: sensor.garageport_batteri + below: 20 + card: + type: tile + entity: sensor.garageport_batteri + name: Garageport sensor \ No newline at end of file diff --git a/include/templates/maintenance.yaml b/include/templates/maintenance.yaml index 11370e1..e91b439 100644 --- a/include/templates/maintenance.yaml +++ b/include/templates/maintenance.yaml @@ -216,6 +216,7 @@ 1 if states('sensor.venstre_battery') | float(100) < 20 else 0, 1 if states('sensor.syd_batteri') | float(100) < 20 else 0, 1 if states('sensor.hojre_battery') | float(100) < 20 else 0, + 1 if states('sensor.garageport_batteri') | float(100) < 20 else 0, 1 if is_state('lawn_mower.husqvarna_automower', 'error') else 0 ] | sum }} \ No newline at end of file