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
54 stars 30 forks source link

Meter not showing as grid in venusOS #17

Closed morphZ closed 2 years ago

morphZ commented 2 years ago

Hi @RalfZim,

thanks for sharing this great idea. I'd like to use a very similar approach, but with a modbus meter that is connected to and logged by my home assistant system. In the end it is also a couple of HTTP requests and updating the values on the dbus.

My code (hosted here) is basically running and the values are shown in the device in venusos (running on raspi). screenshot_meter_in_venusos

Somehow, the meter is not associated with the grid values by venusOS. screenshot_grid_missing

Also, it doesn't show up in the Energy meters section, though I'm not sure it should... screenshot_energymeters_empty

Any ideas?

Thanks!!

morphZ commented 2 years ago

Update: I just got one step further along the way (had the ACin not properly switched on). Now I can see grid values like those: grafik

Problem is: these values are somehow calculated from the PV inverter by the venus OS and showing wrong values (higher than the actual meter's values). These grid values are even shown and calculated, when I remove the dbus-fronius-smartmeter service.

Any ideas?

Ekran commented 2 years ago

Hello, it is the same for me. I have forked one of the forks of this dbus projects (Link). I see the values in the menus but not as grid and also no AC loads. Are you any step further @morphZ ?

morphZ commented 2 years ago

I found the problem!! 🎉

I have invested quite a bit of time reading through the venus OS sources and found out, that the servicename for the dbus service needs to include at least com.victronenergy.grid. (mind the . in the end) to be included as a grid value.

So setting the servicename in my case to com.victronenergy.grid.ha1 fixed the issue. You can see it in here in my code. It should also work for the original code of @RalfZim.

Additional infos:

morphZ commented 2 years ago

PS, I created PR #18 for your repo, @RalfZim

pos-ei-don commented 2 years ago

Seems to work, Thank you! grafik

But should't it be listed here? grafik

Dan1elGe commented 2 years ago

Same for me: Under Energy meters the list is still empty. Any ideas whats wrong?

morphZ commented 2 years ago

@pos-ei-don @Dan1elGe

I read somewhere in the victron forums, that only the modbus driven meters show up in this list. But I can't remember where exactly. Anyway: it shouldnt't be a huge difference, as you can access all the data at the top level of the menu, and it is not required for the ESS system work.

I run my ESS now quite stably and satisfyingly with the driver (actually with a modified version of dbus-smappee, but it's working quite similar).

pos-ei-don commented 2 years ago

Thank you for All your comments. So it is a configuration error at my side. I want to configure self usage and Charge PV to the battery, I have 2 energy Meter, and my victron ess seems to select the wrong internal energy Meter.

Dan1elGe commented 2 years ago

@morphZ Thanks for this hint that the appearance of the smart meter under energy meters is not necessary for ESS. My system now also works as expected:

grafik