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.
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.
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.