Node Red virtual Battery and virtual Inverter - problems with AC Load

Hello everyone,

We have a project where we’re tasked with visualizing and subsequently controlling the PV system.

I’ve created two virtual devices on a Cerbo GX in Node-RED: Inverter and Battery. We’ve installed an EM540 as a grid meter and connected it to the Cerbo GX as usual.

I’m retrieving the values ​​from the existing system (PV, Battery, etc…) via Modbus TCP.

So far, this works pretty good. However, I’m stuck at one point and hope someone has an idea for me.

When the battery discharges, the AC load calculation is obviously no longer accurate, as the system only has the values ​​from the grid meter and the PV generation.

The battery’s inverter is connected with three-phases to AC. I know the values ​​for the individual phases and the sum.

But where do I write these values ​​in the DBUS?

I could try simulating a VE Bus device. But that seems very complex due to all the dependencies.

Does anyone have any ideas?

Thanks and best regards,
Dabbelju