CJNE / pymyenergi

An async python library for interfacing with MyEnergi devices
MIT License
19 stars 15 forks source link

Zappi: incorrect L1 phase shown #24

Closed jwillemsen closed 5 months ago

jwillemsen commented 5 months ago

My zappi is installed with phase rotation set to 312, so phase 3 connected to L1 on the zappi, but when running zappi show I see the following which is incorrect

Supply voltage: 231.0V
Line frequency: 49.97Hz
L1 phase: 2
G6EJD commented 5 months ago

Your over-thinking 3-phases, the Zappi has no-idea which phase is connected to which terminal, in fact it is irrelevant as long as the rotation direction is correct. It is far better and logical to set the Zappi as 123 if you have a CW rotation.

At any instance in time, any phase can be 3 in your instance.

jwillemsen commented 5 months ago

There is a phase rotation setting (see https://support.myenergi.com/hc/en-gb/articles/360019643517-How-To-Change-Phase-Rotation) which is set on my device to 312. To the zappi L1 terminal phase 3 is connected. I assumed that the L1 phase would return 3 in my case, but it seems I am incorrectly assuming that, what is the meaning of the L1 phase, is that something else?

G6EJD commented 5 months ago

Phases are 120° apart and the Zappi setting for phase rotation will work the same for any CW combination, they are all CW notations. In a purist sense it’s easiest to fit the physical phase 1 (which doesn’t actually exist as 1 !) to Zappi terminal 1, then set the phase rotation to 123, however in reality your house phase-1 can be real world 1 or 2 or 3. Only if you could trace your phases back to the power station generator could you be really sure which phase is which. In practice it is almost certain that phases will have been swapped along the power distribution path from generic to your house. As long as the phase direction is correct it will all work. if you monitored the L1 terminal at any instance of time it could be any phase that follows the sequence 123, 231, 312 it is literally irrelevant. to further add to the possibility your installer could have swapped any two phases relative to your grid supply and it would still work but you’d never know. The reference is the Zappi terminals, but it’s never going to tell you which phase is connected to the Zappi. It will tell you that ‘some’ phase connected to Terminal 1 at that instance in time.

G6EJD commented 5 months ago

I don’t understand what the issue is, the integration merely displays what the API is returning, if there was an issue you’d need to be asking MyEnergi.

jwillemsen commented 5 months ago

I will ask MyEnergi, very likely they have some kind of index returned, not the exact phase, closing as it is not an issue for this project