Perfect that’s what I was looking for. Thanks a lot
Hi everyone, I am using this awesome integration for over a year now. Thanks for creating and maintaining it.
Just recently, I discovered a small “issue”. During the night, when my battery is empty, the inverters AC power is negative (~ -80W) which leads to the problem that my house energy draw is calculated incorrectly (with a difference of ~ -80W ). For the calculation of the house energy consumption I am following the docs:
{% set i1_ac_power = states('sensor.solaredge_i1_ac_power') | float(0) %}
{% set m1_ac_power = states('sensor.solaredge_m1_ac_power') | float(0) %}
{% if (i1_ac_power - m1_ac_power <= 0) %}
0
{% else %}
{{ (i1_ac_power - m1_ac_power) }}
{% endif %}
How are you solving this problem or is it me not understanding/interpreting the values correctly?
I appreciate any help. Thanks a lot in advance.
Hey Guys!
Thanks for all the good inputs from all of you!
i am running the Modbus Multi integration and this works fine, but i have some troubles with the correct configuration for the energy dashboard.
my installation is different than the described ones here, i have 0 batteries but 2 inverters (i1 and i2) and a meter wich is connected to i1 (i1_m1). i took the good energy.yaml from @SgtBatten but i am struggling to add the second inverter in the calculations… can someone help me with this?
- name: "Solar Panel Production W"
unique_id: solar_panel_production_w
unit_of_measurement: "W"
icon: mdi:solar-power
state: >
{% if states('sensor.solaredge_i1_dc_power') | float(0) + ('sensor.solaredge_i2_dc_power') | float(0) <= 0 %}
0
{% elif is_state('sensor.solaredge_i1_dc_power', 'unknown') %}
0
{% else %}
{{ states('sensor.solaredge_i1_dc_power') | float(0) + ('sensor.solaredge_i2_dc_power') | float(0)}}
{% endif %}
is this correct in my setup?
and next problem for me is “Solar Panel To House W”
How should this look like with the second inverter integrated?
- name: "Solar Panel To House W"
unique_id: solar_panel_to_house_w
unit_of_measurement: "W"
icon: mdi:solar-power
state: >
{% if states('sensor.solaredge_i1_m1_ac_power') | float(0) > 0 %}
{{(states('sensor.solaredge_i1_ac_power') | float(0) - states('sensor.solaredge_i1_m1_ac_power') | float(0))}}
{% elif states('sensor.solaredge_i1_m1_ac_power') | float(0) < 0 %}
{{states('sensor.solaredge_i1_ac_power') | float(0)}}
{% elif ((states('sensor.solaredge_i1_dc_power') | float(0)) < 0)%}
0
{% else %}
{{(states('sensor.solaredge_i1_dc_power') | float(0))}}
{% endif %}
thx in advance for your inputs
I guess the -80W is the consumption of the invertert, because it is always using this when a battery is connected. Sad I know.
Thanks for your reply. I agree, it is most probably the inverter consumption. But using the provided template of the integrations this consumption is substracted from (and not added to) the total house consumption - which makes no sense in this case. Is anyone already using another template to work around this situation?