Tilføj plæneklipper error-status til vedligehold-view
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}}
|
}}
|
||||||
Reference in New Issue
Block a user