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