Doesn’t a Gen24 inverter with 1.13 provide energy entities by default (without having to use Riemann sum integration)?
Hallo Franz
Ich habe anscheinend die gleiche Hardwarekonfiguration wie du. Ist es dir gelungen den Fronius in das Home Assistant Energy Board einzubinden?
Hi, I have tried to use your config with my Fronius Symo Hybrid, so far it looks good, only that in the Energy Dashboard is reporting the power I am using from my Battery as consumption from the grid.
See screenshot below, maybe there is a solution for it. Did you manage to set it up correctly?
So the consumption from the Grid seems to be wrong, as it shows the same mount I am using from the battery.
Hallo, leider bin ich auch noch nicht weiter gekommen.
@farmio First of all, thanks for providing the New Fronius Integration. My Fronius is a Gen24 with Firmware 1.14.1. In the Documentation you mention that we should use a Riemann Sum for adding a Battery to the Energy-Dashboard. Do you have an example? I can’t get my head around for Integrating my Battery.
Thanks
Lukas
have a look some posts above: Fronius Integration into Energy dashboard - #13 by almtaler
This looks quite promising, apart from the entity names - which are used twice for grid and battery (grid_import_power
and grid_export_power
) - but you should only need the battery ones anyway. So I guess (copied untested as I don’t have a battery myself):
sensor:
- platform: template
sensors:
battery_discharge_power:
device_class: power
friendly_name: "Batterie entladen"
unit_of_measurement: "W"
value_template: "{{ max(0, states('sensor.power_battery_fronius_power_flow_0_http_192_168_99_1') | float) }}"
battery_charge_power:
device_class: power
friendly_name: "Batterie laden"
unit_of_measurement: "W"
value_template: "{{ max(0, 0 - states('sensor.power_battery_fronius_power_flow_0_http_192_168_99_1') | float) }}"
- platform: integration
source: sensor.battery_charge_power
name: Batterie geladen
unit_prefix: k
round: 2
- platform: integration
source: sensor.battery_discharge_power
name: Batterie entladen
unit_prefix: k
round: 2
Just try it and let me know if it works
Looks promising.
I’ll let it run for a few days and check the values and will come back with a result.
Just a quick respond: Energy to Battery looks rock solid and the values are nearly the same as reported by the Fronius Smartmeter.
Energy from Battery Look like the values are to high. Since there is not much Sun in Austria at the Moment, my Battery does not charge really much. I’ll have a closer Look over the next few days/weeks an keep you informed.
Today was a little bit more Sun here. If more Energy get pulled out from the Battery (or the last 5% a pulled out to a lower State of Charge) it looks very good. Today there is only a difference from 0.05 kwh energy from the battery.
So it looks good.
I’ll keep you updated
Did anyone switch from the Fronius platform to the Fronius integration?
I don’t know what happened in my system, but from the moment I started using the integration the solar production measure skyrocketed (wrong values and as if Wh are being interpreted as kWh).
I’m using the energy_total_fronius_inverter_1 sensor. It used to work perfectly.
Any clue about what may be happening?
This is the state for the main sensor (the one I’m using for the solar panels):
state_class: total_increasing
unit_of_measurement: Wh
device_class: energy
friendly_name: Energy total
Nonetheless, it seems that everything is working ok right now. I did not do anything, so I guess it was some kind of glitch.
The only drawback is that now both Energy total and Energy Year are way off what should be their real value. I wonder which records would I need to update on the DB to make it right.
Did you use the core Fronius integration, or the custom component before? The core integration did always report Wh afaik.
No idea how to change these things in db, but I’ve seen some posts about such here (mostly removing single entries) - you’ll surely find that info somewhere in the forums.
I used the integration via YAML settings, but now I’m using the integration on the GUI.
Hi all, I wonder if you can help. I added Fronius integration via the gui here Fronius - Home Assistant
It’s all great, I got a Symo 10.0-3-M & SolarNet device. I’m not sure why I need both. SolarNet has sensor.solarnet_power_photovoltaics which I believe is the important thing. Which seems identical to sensor.symo_10_0_3_m_1_power_ac.
I don’t care about tariffs etc.
I have solaranalytics so not the 3rd device you all have.
Seems the power_ac is electricity production, and I don’t actually have grid in/out figures. Is that right?
I can put SolarNet Energy day under Configure solar panels. ← but is this right? I don’t fully understand it. I thought it would want solarnet_power_photovoltaics somewhere.
So I can’t use Grid consumption & Return to grid which isn’t provided?
So far it looks thus
Not sure where 1.5 is coming from.
Hi !
Id use “Energy total” from the inverter device, HA will do the rest for you.
The energy panel always expects energy entities.
Have a look at the integration documentation, it is listed en detail what you should configure there.
The SolarNet device is used eg. to show values calculated from multiple devices (eg. 2 inverters or a Smartmeter). If you only have one inverter you can probably ignore it.
To have grid import and export you would need a meter (eg. Fronius Smartmeter) connected to your inverter.
HA starts to count when you set up the integration and updates hourly (I think). So this was probably your production since you set up the energy panel - until the last full hour.
Hi almtaler
I have pasted your code in my configuration.yaml and amended the IPs to match mine and also implemented the slight amendment by farmio.
When checking now the sensors, I can see they are created but the state is unknown. I believe that might also be the reason why they are not available to be selected under the energy dashboard.
It is the first time I am using anything else than the UI so I am really not familiar with yaml yet (but working on it).
I have a SymoGen24 with a BYD battery and Smart Meter (sitting right behind my official meter), so I assume I have the same config as you.
Is there anything you could think of what I could have done wrong? I can ping the inverter from the Pi.
Thanks in advance and have a nice evening.
Hi !
The Fronius integration isn’t configured via yaml anymore since almost a year. Configure it via UI.
Meanwhile the default entity_ids are different too so you might have to adapt that (they don’t include IP address anymore).
And Riemann sum integration is now also configurable via UI.
Also have a look at this guide: Howto: Fronius Integration with battery into Energy Dashboard
Hi farmio,
thanks (again ) for pointing me in the right direction. I’ve managed with the guide to get the data. But they are somehow not matching with what the fronius app is telling me.
HA is telling me a consumption of 9kWh. Fronius shows me about 1kWh live consumption and 16kWh total for today. The meter location is set to 0. I have tried and change it to 1 but that makes it even worse.
0 is correct.
“Live consumption” is load - power - that’s kW, not kWh. That will not show in the energy dashboard.
There is no solar production in your energy dashboard. 16 - 9 = 7 so your import value seems right.