Fronius Primo Gen24 Plus no longer has a push interface

-ve Power?

Do the people affected have more than one inverter? Or a generator? Something that would cause a negative power use (i.e. excess generation somewhere other than the Fronius inverter)

My script is bash, so I used ${V4#-} to cheat and remove the -…

Ahhh… Did I see a note a while back. The value being + can occur if your fronius smart meter isn’t wired in at the grid feed itself? I’ll try & find that reference…

EDIT:
The API guide says
image

So that comment to me implies that the P_Load will be +'ve if you have a generator somewhere. Which could be any form of generation that the fronius system doesn’t know about.,

Hi @travellingkiwi. That would be very helpful; it could explain the +VE values being returned by the API

Grannos

Yeah, sorry. The note on where the meter is installed was from the GetMeterRealtimeData call. And specifically regarding the fields locate din the response there.

The GetPowerFlowReadtimeData call (That has the P_Load in it) specifically mentions that + is generation and - is consumption. So (In my head anyway) a + report means someone is generating power externally to the Fronius system rather than consuming it

As you stated though a secondary source of energy in the home, either an inverter or battery or both, whose data isn’t captured and offset would explain the API showing positive if ‘excess’ electricity is flowing out of the premises to the grid.

@grannos could I please also get the script? Ran a SYMO 15 for 3 years and now added a GEN24, just discovered the lack of push interface :frowning:

Thanks in advance!!

Hi @p1v10ut. Done. The missing push interface is a real nuisance. At least there is a directly accessible API.

Grannos

1 Like

I’m struggling now to line up my daily production between HomeAssistant, the Fronius Web Interface and PVOutput for my hybrid inverter with battery attached.

Firstly, for today the fronius web interface/app shows I produced about 22kWh via my 6kW inverter. Self consumption is 16.1kWh and to the grid 6.33kWh. Self Consumption is split between direct use (4.38kWh) and charging the battery (11.7kWh). That agrees with my current pvoutput for Energy. However HA (Via the HomeAssistant Fronius Integration) shows only 14.39kWh.

Looking into it, I discovered that my script wasn’t pulling the inverter data correctly to use in V1. So I fixed that… But then I did some back of the napkin calculations… And the inverter data (TOTAL_ENERGY) doesn’t appear to be right. TOTAL_ENERGY looks to be reading low. That’s where the HA fronius integration is getting 14kWh from. And according to the fronius app (And the background calculations that made V1 superfluous on pvoutput) it’s wrong.

I’m just not sure why… I have a second inverter. A 4kW one that does my hot water and car charger. And that looks to be consistent across all 3 places (pvoutput, HA and fronius). I’m just not sure why TOTAL_ENERGY would be wrong for the inverter with the battery on it… It doesn’t add up if I assume TOTAL_ENERGY doesn’t include the battery charging either. Almost, but is still out by 1-2kWh.

It’s all a bit weird at the moment that pvoutput was accidentally working because I had made. typo and TOTAL_ENERGY wasn’t getting updated in V1… But now that it is, it looks to be wrong…

Maybe I’m missing something, but I hand checked the TOTAL_ENERGY and the data agrees with HomeAssistant. But I can’t see why Fronius and the background pvoutput calculations without V1 would agree with each other but with TOTAL_ENERGY HA and pvoutput disagree with fronius themselves.

Now I’m starting to doubt my own sanity…

Oh yeah… Definitely something wrong with using TOTAL_ENERGY on a hybrid system. Apparently I generated 2kWh since midnight. Now as it’s 07:00 in the morning and the sun doesn’t rise till 07:50 or so, I’m going to call porkies on that one

Moral of the story… Don’t believe everything the API manual implies…

AC energy generated, does not mean the amount of energy generated… It might mean the amount of energy converted to AC… If you don’t charge your battery fro the grid at night (e.g. taking advantage of lower off peak rates in anticipation of bad weather that day) then it can approach the total PV energy by the end of the evening. Or not, if you don’t use all the energy from your battery… In short… A fairly useless parameter for hybrid systems. I think the comment about non-hybrid should be altered to “disregard if you have a hybrid system”

Hi @travellingkiwi. Yes it isn’t very helpful that the AC energy / power generated can’t be differentiated between SOLAR → AC and / or BATTERY → AC.

I took a look at the Fronius documentation to see if they provided some alternate means of identifying where the AC was coming from. It would be possible to ‘bodgy’ something up by taking looking at variations in the battery’s SoC ( in 5 minute intervals ) however it wouldn’t be too accurate.

If you try the newer API http://fronius/components/readable is there anything more useful visible that would differentiate the source of the AC output of the GEN24?

Grannos.

That URL doesn’t appear to work very well…

If you try the newer API http://fronius/components/readable is there anything more useful visible that would differentiate the source of the AC output of the GEN24?

FWIW I have the same version from the fronius website (Imaginatively named “42,0410,2012.pdf”)

There’s nothing apparently in there about PV energy stats. Only PV Power. Luckily pvoutput will calculate the energy. But turns out I need to do some mixupsmanually in HA via Riemann Sums.

I agree. It seems as they they ( Fronius ) started creating it but then the author went on holidays. Perhaps somewhere in it there appears both values but it would take some detective work to find it.

@grannos Could I get a copy of your script please? Gen24 commissioned today and I didn’t realise this was an issue! :smiley:

Done.

One issue that has recently cropped up is where the GEN24 is not the only non-grid source of electricity to the premises. If you have a second inverter ( PV installation ) or a battery the GEN24’s API will get confused - but only if you have a SmartMeter or similar measuring current flow into and out of the premises.

Grannos

1 Like

@grannos - Could I also please get a copy of your script? Thank you!

Hi. Done. Welcome to PVO. Please see my comments above about alternate sources of non-grid electricity and how they may affect the script.

Grannos

Hi @grannos , would you be so kind and send me your script as well? I intend to use it for my GEN24 to add it to the already working Symo Advanced (which has a push interface). Thank you very much for your great work and support!!

Hi @grannos, could I please get a copy of the script as well? I have recently replaced an existing Sunnyboy system with a new Fronius Primo GEN24, without Smartmeter. Am I correct that I can at least get generation values, but not consumption values with the script? Thanks very much for your time that you put into helping the community.

Hi @schaert and @cranbrookfronius.

Done and Done.

Note that the ‘Extended Data Fields’ used in the script [ v7…v12 ] are only available to - Donors Donations — PVOutput documentation

Grannos.

1 Like

Hi grannos, could I please get the script too?