Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select number of phases setting #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

philipostli
Copy link

Why

On a 1-phase power-grid we do not need the two empty phases measuring no current, so I wanted a setting to hide them from capabilities view.

What

I added a checkbox setting to the Pulse and Watty drivers
Default value is true (most people have 3-phases)
Upon change it removes/adds the capabilities measure_current.L2 and measure_current.L3 on the device

Test

Tested on Pulse. ✔️
Watty not tested, but should work similarly.

@philipostli philipostli requested a review from a team as a code owner October 30, 2024 15:13
@jstaro
Copy link
Member

jstaro commented Nov 18, 2024

I'll have to double check, but I'm fairly certain it is not guaranteed that L1 will be the reporting phase on a 1-phase grid.

@philipostli
Copy link
Author

I see. Then lets check to see what phases have no value, and hide them. Then show all three when setting is switched back. Will work on rare 2-phase installations as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants