Guten Abend,
nachdem mir ja heute viele geholfen haben, wie ich meine Batterien überwachen kann, habe ich eine Lösung. Dabei lehne ich mich an die Lösung mit den offenen Fenstern an.
Auf dem Dashboard wird nur angezeigt, was wirklich eine Warnung oder Hinweis ist. Hier die Lösung:
Alles basiert auf der Stapelkarte:
type: vertical-stack
cards:
- type: custom:auto-entities
card:
type: entities
title: Warnungen und Hinweise
show_header_toggle: false
card_mod:
style: |
ha-card {
background: rgba(255, 140, 0, 1) !important;
}
.card-header {
color: #000000;
font-weight: 600;
font-size: 14px;
}
filter:
include:
- options:
card_mod:
style:
hui-generic-entity-row $: |
.info {
color:#000000 !important;
font-weight:600;
font-size:12px;
}
state-badge {
color:#000000 !important;
}
.state {
color: #000000 !important;
font-weight:600;
font-size:14px;
}
domain: binary_sensor
attributes:
device_class: battery
state: 'on'
sort:
method: friendly_name
- options:
card_mod:
style:
hui-generic-entity-row $: |
.info {
color:#000000 !important;
font-weight:600;
font-size:12px;
}
state-badge {
color:#000000 !important;
}
.state {
color: #000000 !important;
font-weight:600;
font-size:14px;
}
domain: binary_sensor
attributes:
device_class: connectivity
state: 'off'
sort:
method: friendly_name
- options:
card_mod:
style:
hui-generic-entity-row $: |
.info {
color:#000000 !important;
font-weight:600;
font-size:12px;
}
state-badge {
color:#000000 !important;
}
.state {
color: #000000 !important;
font-weight:600;
font-size:14px;
}
domain: update
state: 'on'
sort:
method: friendly_name
show_empty: false
grid_options:
rows: auto
Ähnliches habe ich für meine Fenster und Türen realisiert:
type: vertical-stack
cards:
type: vertical-stack
cards:
- type: custom:auto-entities
card:
type: entities
title: Fenster und Türen
show_header_toggle: false
card_mod:
style: |
ha-card {
background: rgba(255, 0, 0, 0.5) !important;
}
.card-header {
color: #FFFFFF;
font-weight: 600;
font-size: 14px;
}
filter:
include:
- options:
card_mod:
style:
hui-generic-entity-row $: |
.info {
color: #FFFFFF !important;
font-weight:600;
font-size:12px;
}
state-badge {
color: #FFFFFF !important;
}
.state {
color: #FFFFFF !important;
font-weight:600;
font-size:14px;
}
domain: binary_sensor
attributes:
device_class: door
state: 'on'
sort:
method: friendly_name
- options:
card_mod:
style:
hui-generic-entity-row $: |
.info {
color: #FFFFFF !important;
font-weight:600;
font-size:12px;
}
state-badge {
color: #FFFFFFa !important;
}
.state {
color: #FFFFFF !important;
font-weight:600;
font-size:14px;
}
domain: binary_sensor
attributes:
device_class: window
state: 'on'
sort:
method: friendly_name
exclude:
- entity_id: binary_sensor.turkontakt_vorratskeller_window
show_empty: false
- type: conditional
conditions:
- condition: state
entity: binary_sensor.aussenhulle
state: 'off'
card:
type: markdown
content: >-
<ha-icon icon='mdi:shield-check'></ha-icon> Alle Türen und Fenster
geschlossen
card_mod:
style: |
ha-card {
background: rgba(0, 120, 31, 1) !important;
}
ha-markdown {
color: #FFFFFF !important;
font-weight:400;
font-size:14px;
}
grid_options:
rows: auto
Eins sei noch mal betont, die Lösungen kamen von vielen hier und haben mir beim Zusammenklöppeln geholfen, denn Programmieren kann ich in Yaml nicht.
Wem es hilft, freut mich.
Auch ich könnte bei den Hinweisen noch Hilfe gebrauchen:
Bisher habe ich hauptsächlich die Homematic Entitäten eingebunden. Gerne hätte ich aber auch die Gardenas und sonstigen Entitäten eingebunden. Der Batteriestatus soll bei unter 25 % angezeigt werden. Hat jemand eine Idee, wie ich das Skript anpassen kann?