Tilføj plæneklipper error-status til vedligehold-view

This commit is contained in:
2026-04-17 08:02:41 +02:00
parent 04c29a8839
commit 66e28ce68f
2 changed files with 50 additions and 1 deletions
+48
View File
@@ -1048,6 +1048,54 @@ sections:
entity: sensor.dishwasher_rinse_aid_level entity: sensor.dishwasher_rinse_aid_level
name: Afspaending 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 - type: grid
cards: cards:
- type: conditional - type: conditional
+2 -1
View File
@@ -215,6 +215,7 @@
1 if states('sensor.terrasse_dor_battery') | float(100) < 20 else 0, 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.venstre_battery') | float(100) < 20 else 0,
1 if states('sensor.syd_batteri') | 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 ] | sum
}} }}