Ich lasse mir meinen Batteriestatus über die Flex Cell Card anzeigen:
Hier der dazugehörige Code vom Wohnzimmer
type: custom:flex-cells-card
column_count: 3
zebra: true
card_padding: 12
cell_padding:
top: 8
right: 12
bottom: 8
left: 12
rows:
- cells:
- type: string
value: 🛋️ Wohnzimmer
style:
bold: true
align: null
- type: string
value: ""
style:
width: 44px
- type: string
value: ""
- cells:
- type: string
value: Vorhang links
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.vorhang_links_batterie
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.vorhang_links_batterie
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.vorhang_links_batterie
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.vorhang_links_batterie
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Vorhang rechts
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.vorhang_rechts_batterie
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.vorhang_rechts_batterie
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.vorhang_rechts_batterie
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.vorhang_rechts_batterie
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Fensterkontakt WZ Mitte
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.aqara_fensterkontakt_wz_mitte_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.aqara_fensterkontakt_wz_mitte_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.aqara_fensterkontakt_wz_mitte_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.aqara_fensterkontakt_wz_mitte_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Fensterkontakt WZ links
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.fensterkontakt_wz_links_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.fensterkontakt_wz_links_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.fensterkontakt_wz_links_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.fensterkontakt_wz_links_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Fenster WZ rechts
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.fenster_wz_rechts_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.fenster_wz_rechts_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.fenster_wz_rechts_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.fenster_wz_rechts_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Thermostat WZ
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.thermostat_wz_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.thermostat_wz_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.thermostat_wz_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.thermostat_wz_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Wohnzimmertür
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.wohnzimmertur_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.wohnzimmertur_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.wohnzimmertur_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.wohnzimmertur_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Aqara Schreibtisch
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.aqara_schreibtisch_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.aqara_schreibtisch_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.aqara_schreibtisch_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.aqara_schreibtisch_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: BWM WZ
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.bwm_wz_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.bwm_wz_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.bwm_wz_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.bwm_wz_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: Dimmschalter WZ
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.dimmschalter_wz_battery
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.dimmschalter_wz_battery
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.dimmschalter_wz_battery
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.dimmschalter_wz_battery
op: ">"
val: "50"
fg: "#b1dd8c"
- cells:
- type: string
value: BPM Connect
align: left
- type: string
value: ""
style:
width: 44px
- type: entity
value: sensor.bpm_connect_batterie
align: right
use_entity_unit: true
dyn_color:
- entity: sensor.bpm_connect_batterie
op: "=="
val: medium
fg: "#ffb84d"
- entity: sensor.bpm_connect_batterie
op: "=="
val: low
fg: "#ff5c5c"
- entity: sensor.bpm_connect_batterie
op: "=="
val: high
fg: "#b1dd8c"
- entity: sensor.bpm_connect_batterie
op: ">="
val: "10"
fg: "#ffb84d"
- entity: sensor.bpm_connect_batterie
op: <
val: "10"
fg: "#ff5c5c"
- entity: sensor.bpm_connect_batterie
op: ">"
val: "50"
fg: "#b1dd8c"
