Skip to main content

Klarname Solarstatus

Übersetzung der Status Codes in Klarnamen

Bildschirm­foto 2023-03-26 um 12.48.37.png

include_sensors/solar_status.yaml

- platform: template
  sensors:
    kwb_solarstatus_klarname:
      friendly_name: "Solarstatus"
      value_template: >
        {% set status = int(states('sensor.kwb_solar_status_9094')) %}
        {% if status ==  0 -%}
          Aus
        {%- elif status ==  1 -%}
          Handbetrieb
        {%- elif status ==  2 -%}
          Laden Speicher 1
        {%- elif status ==  3 -%}
          Laden Speicher 2
        {%- elif status ==  4 -%}
          Störung
        {%- elif status ==  5 -%}
          Solarschutz
        {%- elif status ==  6 -%}
          Rückkühlung 1
        {%- elif status ==  7 -%}
          Rückkühlung 2
        {%- endif %}

# solar_status_t  0   Aus
# solar_status_t  1   Handbetrieb
# solar_status_t  2   Laden Speicher 1
# solar_status_t  3   Laden Speicher 2
# solar_status_t  4   Störung
# solar_status_t  5   Solarschutz
# solar_status_t  6   Rückkühlung 1
# solar_status_t  7   Rückkühlung 2