@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 }}