Fronius Integration - power entities do not add up on Gen24 inverter

@farmio - sorry to name check you but hoped it would be ok rather than logging a issue for the fronius integration… First of all thanks for the work on this integration!

I am hoping to get some help with my fronius gen24 inverter and smart meter setup. The smart meter is wired to feed-in path so should be very accurate (no integral sensors used).

I do not have a battery.

The issue I have is that I can’t get the power entities to add up correctly. The chart below shows it quite well. You can see that from time to time self consumption > consumption (impossible) and imported > consumption (impossible)

solar, export, import and load are all directly taken from the SolarNet device.

self is a template sensor that calculates self consumption based off the SolarNet entities.

I note there is a power entity called real power in the smart meter device. Should I be using this instead of load consumed?

Any other tips?

template:
  - sensor:  
# sensor for power self consumed   
      - name: "Electricity Power Self Consumed"
        unique_id: power_self_consumed
        icon: "mdi:lightning-bolt"
        state_class: measurement
        unit_of_measurement: W
        device_class: power
        state: >
          {% set solar = states('sensor.solarnet_power_photovoltaics') | float(0) %}
          {% set export = states('sensor.solarnet_power_grid_export') | float(0) %}
          {{ (solar - export) | float }}

image

Please do neither. The integration merely puts API values into HA entities. There are plenty of knowledgeable people in this forum that can help interpreting those values far better than I could.
That said, if those values don’t make sense in the first place, that would be an issue for Fronius customers support imho.

It would be from a different API endpoint with a different polling interval, so chances those diverge from powerflow values are even higher.

Understood. I am very sorry for the name check. I will continue to work through this but the simple maths is annoying me. You would think that:

solar - export = self-consumption
self-consumption + import = total consumption
load = total consumption

It is this difference between ‘load consumed’ (solarnet_power_load_consumed) and the calculated version of this (solar - export + import) that has be baffled.

These are all from the SolarNet API.

Maybe someone else here can help me out.

I have made progress.

Looks like the SolarNet API under reports load consumed when solar is producing more power than my house is consuming. Load consumed does better when power is imported from the grid.

My solution to this issue is to use a template sensor to calculate consumption as (solar - export + import).

1 Like