Skip to content

Commit

Permalink
Fix Change in SolarEdge Modbus Multi Device v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanm101 authored May 15, 2023
1 parent 70eea08 commit 2b86032
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/energy_stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,15 @@ template:
unique_id: solaredge_b1_status_text
state: >
{% set status = states('sensor.solaredge_b1_status') %}
{% if status == '1' %}Off
{% elif status == '3' %}Charging
{% elif status == '4' %}Discharging
{% elif status == '6' %}Preserve Charge
{% if status == 'B_STATUS_OFF' %}Off
{% elif status == 'B_STATUS_STANDBY' %}Standby
{% elif status == 'B_STATUS_INIT' %}Initialise
{% elif status == 'B_STATUS_CHARGE' %}Charging
{% elif status == 'B_STATUS_DISCHARGE' %}Discharging
{% elif status == 'B_STATUS_FAULT' %}Fault
{% elif status == 'B_STATUS_PRESERVE_CHARGE' %}Preserve Charge
{% elif status == 'B_STATUS_IDLE' %}Idle
{% elif status == 'B_STATUS_POWER_SAVING' %}Power saving
{% else %}{{ states('sensor.solaredge_b1_status') }}
{% endif %}
Expand Down

0 comments on commit 2b86032

Please sign in to comment.