HomeAssistant Beispiel Karten inkl. Code
Home Assistant • Smart Home Startpaket
Jetzt loslegen: Home Assistant Basis-Set
Starte mit einer soliden Basis – und erweitere danach Schritt für Schritt mit uns. Ideal, wenn du Kontrolle, Automationen und echte Daten in dein Zuhause bringen willst.
- Schneller Einstieg ohne Technik-Frust
- Automationen, Szenen & Dashboards
- Perfekt als Basis zum späteren Ausbau
- Smarter werden – Raum für Raum
YAML
type: custom:mini-graph-card
name: Verlauf letzte 24 Stunden
hours_to_show: 24
points_per_hour: 4
hour24: true
locale: de
show:
labels: true
extrema: true
fill: fade
icon: false
name: true
legend: true
state: true
animate: true
line_width: 3
entities:
- entity: sensor.0xa4c13805e7a29119_soil_moisture
name: Bodenfeuchte (%)
color_thresholds:
- value: 0
color: "#D32F2F"
- value: 40
color: "#00C853"
- value: 70
color: "#FFD600"
- entity: sensor.0xa4c13805e7a29119_temperature
name: Temperatur %
y_axis: secondary
lower_bound: 0
upper_bound: 100
lower_bound_secondary: 0
upper_bound_secondary: 100
smoothing: true
YAML
type: vertical-stack
cards:
- type: grid
square: false
columns: 2
cards:
- type: gauge
entity: sensor.bodenfeuchte_esp8266_c678c7_bodenfeuchte
name: Bodenfeuchte
min: 0
max: 100
severity:
red: 0
green: 40
yellow: 70
- type: button
entity: sensor.bodenfeuchte_esp8266_c678c7_bodenfeuchte_status
name: Status
show_state: true
show_icon: true
icon: mdi:water-percent
layout: vertical
icon_height: 48px
tap_action: none
hold_action: none
state_color: true
state:
- value: trocken
icon: mdi:water-off
color: red
- value: ok
icon: mdi:water-check
color: green
- value: nass
icon: mdi:water
color: yellow
- type: entities
title: Bodenfeuchte – Details
entities:
- entity: sensor.bodenfeuchte_esp8266_c678c7_bodenfeuchte
name: Bodenfeuchte (%)
- entity: sensor.bodenfeuchte_esp8266_c678c7_bodenfeuchte_status
name: Status
- type: divider
- entity: button.bodenfeuchte_esp8266_c678c7_kalibrieren_trocken
name: Kalibrierung trocken (V)
- entity: button.bodenfeuchte_esp8266_c678c7_kalibrieren_nass
name: Kalibrierung nass (V)
- type: divider
- entity: sensor.bodenfeuchte_esp8266_c678c7_ip_adresse
name: IP-Adresse
- entity: sensor.bodenfeuchte_esp8266_c678c7_chip_id
name: Chip-ID
- type: custom:mini-graph-card
name: Verlauf letzte 24 Stunden
hours_to_show: 24
points_per_hour: 4
hour24: true
locale: de
show:
labels: true
extrema: true
fill: fade
icon: false
name: true
legend: true
animate: true
line_width: 3
entities:
- entity: sensor.bodenfeuchte_esp8266_c678c7_bodenfeuchte
name: Bodenfeuchte (%)
color_thresholds:
- value: 0
color: "#D32F2F"
- value: 40
color: "#00C853"
- value: 70
color: "#FFD600"
- entity: sensor.bodenfeuchte_esp8266_c678c7_bodenfeuchte_rohspannung
name: Rohspannung (V)
y_axis: secondary
lower_bound: 0
upper_bound: 100
lower_bound_secondary: 0
upper_bound_secondary: 3.3
smoothing: true
YAML
type: sections
max_columns: 4
title: Bodenfeuchte-Auto
path: bodenfeuchte-auto
sections:
- type: grid
cards:
- type: gauge
entity: sensor.0xa4c13805e7a29119_soil_moisture
min: 0
max: 100
needle: true
severity:
green: 30
yellow: 0
red: 60
grid_options:
columns: 4
rows: 2
name: Soil Zigbee Display
segments:
- from: 0
color: "#F75050"
- from: 3
color: "#F65F4F"
- from: 6
color: "#F56E4E"
- from: 9
color: "#F47D4D"
- from: 12
color: "#F38D4D"
- from: 15
color: "#F29C4C"
- from: 18
color: "#F1AB4B"
- from: 21
color: "#F0BB4B"
- from: 24
color: "#EFCA4A"
- from: 27
color: "#EED949"
- from: 30
color: "#EEE949"
- from: 34
color: "#D6EB41"
- from: 38
color: "#BFED3A"
- from: 42
color: "#A7EF33"
- from: 46
color: "#90F12B"
- from: 50
color: "#79F424"
- from: 54
color: "#61F61D"
- from: 58
color: "#4AF815"
- from: 62
color: "#32FA0E"
- from: 66
color: "#1BFC07"
- from: 70
color: "#04FF00"
- from: 72
color: "#03F011"
- from: 74
color: "#03E222"
- from: 76
color: "#03D433"
- from: 78
color: "#02C644"
- from: 80
color: "#02B855"
- from: 82
color: "#02A966"
- from: 84
color: "#029B77"
- from: 86
color: "#018D88"
- from: 88
color: "#017F99"
- from: 90
color: "#0171AA"
- from: 92
color: "#0162BB"
- from: 94
color: "#0054CC"
- from: 96
color: "#0046DD"
- from: 98
color: "#0038EE"
- from: 100
color: "#002AFF"
- type: gauge
entity: sensor.bodenfeuchte1
needle: true
severity:
green: 30
yellow: 0
red: 60
min: 0
max: 100
grid_options:
columns: 4
rows: 2
segments:
- from: 0
color: "#F75050"
- from: 3
color: "#F65F4F"
- from: 6
color: "#F56E4E"
- from: 9
color: "#F47D4D"
- from: 12
color: "#F38D4D"
- from: 15
color: "#F29C4C"
- from: 18
color: "#F1AB4B"
- from: 21
color: "#F0BB4B"
- from: 24
color: "#EFCA4A"
- from: 27
color: "#EED949"
- from: 30
color: "#EEE949"
- from: 34
color: "#D6EB41"
- from: 38
color: "#BFED3A"
- from: 42
color: "#A7EF33"
- from: 46
color: "#90F12B"
- from: 50
color: "#79F424"
- from: 54
color: "#61F61D"
- from: 58
color: "#4AF815"
- from: 62
color: "#32FA0E"
- from: 66
color: "#1BFC07"
- from: 70
color: "#04FF00"
- from: 72
color: "#03F011"
- from: 74
color: "#03E222"
- from: 76
color: "#03D433"
- from: 78
color: "#02C644"
- from: 80
color: "#02B855"
- from: 82
color: "#02A966"
- from: 84
color: "#029B77"
- from: 86
color: "#018D88"
- from: 88
color: "#017F99"
- from: 90
color: "#0171AA"
- from: 92
color: "#0162BB"
- from: 94
color: "#0054CC"
- from: 96
color: "#0046DD"
- from: 98
color: "#0038EE"
- from: 100
color: "#002AFF"
- type: gauge
entity: sensor.bodenfeuchte5
needle: true
severity:
green: 30
yellow: 0
red: 60
min: 0
max: 100
grid_options:
columns: 4
rows: 2
segments:
- from: 0
color: "#F75050"
- from: 3
color: "#F65F4F"
- from: 6
color: "#F56E4E"
- from: 9
color: "#F47D4D"
- from: 12
color: "#F38D4D"
- from: 15
color: "#F29C4C"
- from: 18
color: "#F1AB4B"
- from: 21
color: "#F0BB4B"
- from: 24
color: "#EFCA4A"
- from: 27
color: "#EED949"
- from: 30
color: "#EEE949"
- from: 34
color: "#D6EB41"
- from: 38
color: "#BFED3A"
- from: 42
color: "#A7EF33"
- from: 46
color: "#90F12B"
- from: 50
color: "#79F424"
- from: 54
color: "#61F61D"
- from: 58
color: "#4AF815"
- from: 62
color: "#32FA0E"
- from: 66
color: "#1BFC07"
- from: 70
color: "#04FF00"
- from: 72
color: "#03F011"
- from: 74
color: "#03E222"
- from: 76
color: "#03D433"
- from: 78
color: "#02C644"
- from: 80
color: "#02B855"
- from: 82
color: "#02A966"
- from: 84
color: "#029B77"
- from: 86
color: "#018D88"
- from: 88
color: "#017F99"
- from: 90
color: "#0171AA"
- from: 92
color: "#0162BB"
- from: 94
color: "#0054CC"
- from: 96
color: "#0046DD"
- from: 98
color: "#0038EE"
- from: 100
color: "#002AFF"
name: Bodenfeuchte 5 (Tief)
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: input_text.bodenfeuchte_sensor_entitaet
name: Bodenfeuchte Sensor
icon: mdi:water-percent
fill_container: true
- type: custom:mushroom-entity-card
entity: binary_sensor.aqara_leak_water_leak
name: Wassermelder
icon: mdi:water-alert
icon_color: |
{{ 'red' if is_state(entity, 'on') else 'green' }}
fill_container: true
- type: entities
title: 💧 Bewässerung
entities:
- entity: input_number.bodenfeuchte_schwelle
name: Bodenfeuchte Schwelle (%)
- entity: input_number.pumpen_dauer
name: Pumpen Dauer (Sekunden)
- entity: timer.pumpen_countdown
name: Pumpen Countdown
- entity: timer.pruef_countdown
name: Nächste Prüfung
- entity: switch.sonoff_plug1
name: Pumpe (Sonoff)
- type: grid
cards:
- type: vertical-stack
cards:
- type: custom:mini-graph-card
name: Verlauf letzte 24 Stunden (Bodenfeuchte 5)
hours_to_show: 24
points_per_hour: 4
hour24: true
locale: de
show:
labels: true
extrema: true
fill: fade
icon: false
name: true
legend: true
state: true
animate: true
line_width: 3
entities:
- entity: sensor.bodenfeuchte5
name: Bodenfeuchte (%)
color_thresholds:
- value: 0
color: "#D32F2F"
- value: 40
color: "#00C853"
- value: 70
color: "#FFD600"
- entity: sensor.0xa4c13805e7a29119_temperature
name: Temperatur
y_axis: secondary
lower_bound: 0
upper_bound: 100
lower_bound_secondary: 0
upper_bound_secondary: 40
smoothing: true
- type: horizontal-stack
cards:
- type: custom:button-card
entity: sensor.bodenfeuchte1
name: Luft
icon: mdi:sprout
show_state: true
styles:
card:
- height: 120px
- border-radius: 22px
- padding: 16px
- text-align: center
icon:
- color: "#7CB342"
state:
- font-size: 20px
grid:
- grid-template-areas: |
"n"
"i"
"s"
- grid-template-rows: min-content 1fr min-content
- row-gap: 6px
- type: custom:button-card
entity: sensor.0xa4c13805e7a29119_temperature
name: Temp
icon: mdi:thermometer
show_state: true
styles:
card:
- height: 120px
- border-radius: 22px
- padding: 16px
- text-align: center
icon:
- color: "#42A5F5"
state:
- font-size: 20px
grid:
- grid-template-areas: |
"n"
"i"
"s"
- grid-template-rows: min-content 1fr min-content
- row-gap: 6px
- type: custom:button-card
entity: sensor.0xa4c13805e7a29119_battery
name: Batterie
icon: mdi:battery
show_state: true
styles:
card:
- height: 120px
- border-radius: 22px
- padding: 16px
- text-align: center
icon:
- color: "#66BB6A"
state:
- font-size: 20px
grid:
- grid-template-areas: |
"n"
"i"
"s"
- grid-template-rows: min-content 1fr min-content
- row-gap: 6px
- type: custom:button-card
entity: binary_sensor.aqara_leak_water_leak
name: Topf
show_state: false
show_label: true
tap_action:
action: more-info
state:
- value: "on"
label: Nass
icon: mdi:water-alert
styles:
card:
- background: linear-gradient(135deg,
- animation: water-pulse 1.2s infinite
- box-shadow: 0 0 40px 12px rgba(255,0,0,0.9)
icon:
- color: red
- animation: icon-blink 0.8s infinite
label:
- color: red
- font-weight: bold
- value: "off"
label: Trocken
icon: mdi:water-check
styles:
card:
- background: linear-gradient(135deg,
icon:
- color: white
label:
- color: white
styles:
card:
- height: 120px
- border-radius: 22px
- padding: 16px
- text-align: center
name:
- font-size: 16px
- opacity: 0.85
label:
- font-size: 18px
grid:
- grid-template-areas: |
"n"
"i"
"l"
- grid-template-rows: min-content 1fr min-content
- row-gap: 6px
extra_styles: |
@keyframes water-pulse {
0% { transform: scale(1); box-shadow: 0 0 10px rgba(255,0,0,0.6); }
50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(255,0,0,1); }
100% { transform: scale(1); box-shadow: 0 0 10px rgba(255,0,0,0.6); }
}
@keyframes icon-blink {
0%,100% { opacity: 1; }
50% { opacity: 0.25; }
}
- type: grid
cards:
- type: logbook
title: Pumpen-Historie
hours_to_show: 24
entities:
- switch.sonoff_plug1
header:
card:
type: markdown
text_only: true
content: |
# Automatische Bewässerung
Bodenfeuchte: Zigbee mit Display / Ecowitt WH51
Pumpe: Zigbee Sonoff Plug