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