fabian-lauer / dbus-shelly-3em-smartmeter

Integrate Shelly 3EM smart meter into Victron Energies Venus OS
125 stars 55 forks source link

Allows Remapping L1 on the Shelly #39

Closed kirichkov closed 1 year ago

kirichkov commented 1 year ago

This PR addresses the issue discussed here

When there's 3 phase grid, but only 1 multi, and that multi is not supplied with the input A, measured by the Shelly, the Venus/GX device would wrongly show its own powered AC Loads on L1, but also show the incoming power on one of the other phases, although that's the input itself.

What this PR does is to effectively swap the measurements retrieved from the Shelly to properly map the Multi's supplying phase to L1, whenever it is different.

kirichkov commented 1 year ago

Thanks for merging this! I prefer to have Shelly's L1 to L3 correspond to the electrical company's meter, which I can't rewire. and the quality (i.e. voltage) between the different lives can differ significantly.