appKey und secret abrufen:

curl -i -v --json "{'snNumber': 'EureHubSeriennummer', 'account': 'EureEmailadresse'}" https://app.zendure.tech/eu/developer/api/apply

Inhalt zendure.conf

connection zendure-broker
address mqtt-eu.zen-iot.com:1883
remote_username <appKey>
remote_password <appSecret>
remote_clientid <appKey>
topic <appKey>/# in
topic # in 0 homeassistant/sensor/<appKey>/ <appKey>/sensor/device/

Sensoren Batterie

Achtung!! Die Sensoren ’sensor.balkonsolar_ertrag_switch_0_power‘ und ’sensor.solarinputpower‘ müssen auf eure Sensor-Namen angepasst werden!

  - sensor:
      - name: "Power Battery Total"
        unique_id: power_battery_total
        state: >
          {{ states('sensor.balkonsolar_ertrag_switch_0_power')|float(0) -
             states('sensor.solarinputpower')|float(0) }}
        unit_of_measurement: W
        device_class: power
        state_class: measurement
        availability: >
            {{
               [ states('sensor.balkonsolar_ertrag_switch_0_power'),
                 states('sensor.solarinputpower') ] | map('is_number') | min }}
  - sensor:
      - name: "Power Battery Ausgang"
        unique_id: power_battery_ausgang
        state: >
            {% if states('sensor.power_battery_total') | float(0) >= 0 %}
                {{states('sensor.power_battery_total') | float(0) | round (3) }}
            {% else %}
                {{(states ('0.0') | float(0)) |round(3) }}
            {% endif %}
        unit_of_measurement: W
        device_class: power
        state_class: measurement
        availability: >
            {{ 
               [ states('sensor.power_battery_total') ] | map('is_number') | min }}
  - sensor:
      - name: "Power Battery Eingang"
        unique_id: power_battery_eingang
        state: >
            {% if states('sensor.power_battery_total') | float(0) < 0 %}
                {{(states('sensor.power_battery_total') | float(0))*-1 | round (3) }}
            {% else %}
                {{(states ('0.0') | float(0)) |round(3) }}
            {% endif %}
        unit_of_measurement: W
        device_class: power
        state_class: measurement
        availability: >
            {{ 
               [ states('sensor.power_battery_total') ] | map('is_number') | min }}

Diesen Beitrag teilen: