RalfZim / venus.dbus-fronius-smartmeter

A service for Venus OS, reading smart meter data from a Fronius system and making the values available on dbus.
MIT License
50 stars 28 forks source link

Overview diagram doesn't show AC Values #13

Closed Flohman closed 2 years ago

Flohman commented 2 years ago

I'm running Venus OS v2.82 with your script. But die overview diagram doesn't show any values vor the AC data. The Smart meter however appears in the Device List with correct data coming from the meter (3-Phase). Furthermore the meter doesn't appear in the list of Smart Meters (Settings -> Energy meters). Is this the correct behaviour?

Maybe it's just because I'm not jet running a Multiplus in my setup? I'm currently just testing the raspberry what it can handle and replace to place a correct order of components later on. Current setup is just an MPPT, the Fronius Inverter and your script to get rid of a secondary meter.

kraber2 commented 2 years ago

Got the Same problem here. In Addition on the VRM-Victron Homepage, it does not count the AC and DC usage. It only counts the Energy from the inverter goes in total in the AC Input (Grid).

SamuelBrucksch commented 2 years ago

Same for me. I also use a Raspberry Pi only at the moment.

Also just noticed, that the list of meters is empty although i can see the smart meter in the list:

image image

Is that normal? Or just because there is actually no multiplus yet in the system?

I also just noticed, that a grid meter seems to be available which is used for consumption but not shown in the diagram, so this is most likely not visible due to false configuration / not available Multiplus which results in an incorrect topography that does not show all values.

kLOsk commented 2 years ago

@SamuelBrucksch i believe this is an issue with the latest firmware. I have the same issue and have installed all components. ESS is not working and the battery won’t charge nor discharge. I will look at recent api changes with victron as i couldnt find errors with the fronius api.

SamuelBrucksch commented 2 years ago

Ok will try an older version to confirm this.

kLOsk commented 2 years ago

Booting this in 2.73 I can confirm it shows the loads: see http://b3.ms/8Wj9o3Bjv9LK However, even with loads showing properly I cant get the inverter to work in inverter mode. It always switches back to Passthru. Any idea how to solve this?

SamuelBrucksch commented 2 years ago

So the meter data looks the same in both versions?

kLOsk commented 2 years ago

actually https://github.com/trixing/venus.dbus-fronius-smartmeter this fork fixed all my issues and inverter working correctly on latest cerbo fw... I believe the issue with @RalfZim code is with this here: https://community.victronenergy.com/questions/119447/propertieschanged-dbus.html However I'm not sure why the Inverter didnt work neither when running on fw 2.75...

SamuelBrucksch commented 2 years ago

Thanks @kLOsk i just tried it and indeed seems to work. It now even shows on VRM portal reasonable values. You still have to set the role of the meter as grid maybe. Click on the "Fronius SMart Meter" -> "Setup" -> "Role" and set as grid meter

Flohman commented 2 years ago

I can confirm that is works on raspberry as well.Thanks a lot!

Flohman commented 2 years ago

I bought the MultiPlus 2 but now I'm facing the same issue. The inverter isn't inverting. The Meter is configured as grid meter but doesn't appear in the list of energy meters. What confuses me is that the the charger works as expected. Meaning it reduces the power if I don't have enough solar power. The local venus is showing the correct values but on the VRM I'm getting no values as AC input. @kLOsk or @SamuelBrucksch are your inverters working properly now?

SamuelBrucksch commented 2 years ago

My battery did not arrive yet, so can't test. But with the enhanced code from @trixing at least the overview is correct now.

Flohman commented 2 years ago

Works now fine with the script from @trixing. The issue was that I ran it in Inverter mode only. Setting it to inverter + charger works fine. I have set the max charging current in DVCC to 0A to achieve the desired effect. However as soon as the Fronius starts working and the power is less then what the house consumes the multiplus steps in to support but I always receive 70W from grid. This issue is already reported here: https://github.com/victronenergy/venus/issues/896 This is not an issue with the script. Just that you guys are aware of as all of you are running Fronius as well.

SamuelBrucksch commented 2 years ago

Isn't there another setting, that defaults to 50w or so, that the Victron tries to keep that level? Can be set to 0W. Something with feed in... I can look it up again later.

I also remember some discussion with MPPT chargers involved not leveling correctly. So maybe this is no issue if the MP-2 is only used as AC-coupled battery inverter.

Here it is: Screenshot_20220527-101734

Flohman commented 2 years ago

That is true but it's already set to 0. In principal it is enough to set it to -70 during the day. but don't want to do it twice a day... ;) Another option I see is to manipulate the values in the script if the inverter produced power. Maybe adding 20W per phase or so... ;)

Victron is aware of the issue but haven't done anything since Jan on that topic.

But therefore we have to call /solar_api/v1/GetPowerFlowRealtimeData.fcgi additionally to get the /Body/Data/Site/P_PV value. So we would need a kind of Promise.all() with both requests to not reduce the performance. But I'm not the Python guy (as you can see). ;)

trixing commented 2 years ago

This only happens if the Victron system is set up to control the dynamic feed-in of the Fronius I guess? In my set up the Fronius is completely working on its own and the Victron system is feeding in as required to reach the grid set point. I don't see any 70W bias.

kLOsk commented 2 years ago

I have the grid setpoint set to 20W, down from 50. I remember this was explained somewhere online. When on a boat and feed in is prohibited it should be set to 50 or higher just so the inverter has enough time to adjust and not accidentally feeding into the grid. However in my ESS grid feed in is allowed so I reduced it to 20w which works well for me in terms of not feeding battery power into the grid but also not buying too much fromvthe grid. On average i purchase about 0.5kwh per day right now using this setting.

Flohman commented 2 years ago

dynamic feed-in

No I'm not using that feature to be honest I don't even have that menu point. The only thing I have active is the "DC-coupled PV - feed in excess".

Flohman commented 2 years ago

I just created a Node-RED Flow for that purpose. I guess it's the easiest way to fix it.