From 66e28ce68fb51100f5a295c5d617da676c7d91a2 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Fri, 17 Apr 2026 08:02:41 +0200 Subject: [PATCH] =?UTF-8?q?Tilf=C3=B8j=20pl=C3=A6neklipper=20error-status?= =?UTF-8?q?=20til=20vedligehold-view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboards/views/11_vedligehold.yaml | 48 ++++++++++++++++++++++++++++ include/templates/maintenance.yaml | 3 +- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/dashboards/views/11_vedligehold.yaml b/dashboards/views/11_vedligehold.yaml index b45e050..fe55685 100644 --- a/dashboards/views/11_vedligehold.yaml +++ b/dashboards/views/11_vedligehold.yaml @@ -1048,6 +1048,54 @@ sections: entity: sensor.dishwasher_rinse_aid_level name: Afspaending + - type: grid + cards: + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "on" + card: + type: heading + heading: Plæneklipper + + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "off" + - condition: state + entity: lawn_mower.husqvarna_automower + state: error + card: + type: heading + heading: Plæneklipper + + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "on" + card: + type: tile + entity: lawn_mower.husqvarna_automower + name: Automower + show_state: true + + - type: conditional + conditions: + - condition: state + entity: input_boolean.vis_alle_vedligehold + state: "off" + - condition: state + entity: lawn_mower.husqvarna_automower + state: error + card: + type: tile + entity: lawn_mower.husqvarna_automower + name: Automower + show_state: true + - type: grid cards: - type: conditional diff --git a/include/templates/maintenance.yaml b/include/templates/maintenance.yaml index 42d48d3..11370e1 100644 --- a/include/templates/maintenance.yaml +++ b/include/templates/maintenance.yaml @@ -215,6 +215,7 @@ 1 if states('sensor.terrasse_dor_battery') | float(100) < 20 else 0, 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.hojre_battery') | float(100) < 20 else 0, + 1 if is_state('lawn_mower.husqvarna_automower', 'error') else 0 ] | sum }} \ No newline at end of file