Home Assistant

HomeAssistant Beispiel Karten inkl. Code

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

				
			

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert