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

Zappi, ECO+ phase setting #28

Closed
jwillemsen opened this issue Apr 4, 2024 · 7 comments
Closed

Zappi, ECO+ phase setting #28

jwillemsen opened this issue Apr 4, 2024 · 7 comments

Comments

@jwillemsen
Copy link
Contributor

Just upgraded to the latest zappi app (see https://myenergi.info/app-update-3-3-1-t12674.html#p122029) and this now has the option to set the phases to load in ECO+ mode, for this phaseSetting is used, when I change the setting in the app the diagnostics I can download in HA shows the following values:

"phaseSetting": "SINGLE_PHASE",

"phaseSetting": "THREE_PHASE",

"phaseSetting": "AUTO",

It looks my PR for using this as number of phases as part of #25 is not correct, it should return values 1, 3 or auto.

@jwillemsen
Copy link
Contributor Author

Any ideas how we could set the phase setting from HA to myenergi, would love to set the phase setting to single or three phase based on power produced by my solar panels through HA, looking at the code we need some cgi-set-* call

@jwillemsen
Copy link
Contributor Author

@d-hz
Copy link

d-hz commented May 10, 2024

Any ideas how we could set the phase setting from HA to myenergi, would love to set the phase setting to single or three phase based on power produced by my solar panels through HA, looking at the code we need some cgi-set-* call

I've tried to figure out the relevant HTTP Endpoints, if I am correct it seems to be:

3 Phase
cgi-zappi-phase-setting-{ZXXXXXXXX}-1

1 Phase
cgi-zappi-phase-setting-{ZXXXXXXXX}-0

Auto
cgi-zappi-phase-setting-{ZXXXXXXXX}-2

{ZXXXXXXXX} is the Serial Number of the Zappi and needs to replaced in the calls

I am getting the following Response:

{ "status": "0", "statustext": "" }

Maybe this helps?

@jwillemsen
Copy link
Contributor Author

Is the > for three phase correct? This helps, will try to implement this next week

@d-hz
Copy link

d-hz commented May 10, 2024

Is the > for three phase correct? This helps, will try to implement this next week

That was a typo. I have edited it. The schema seems to be the same for all three.
I was not able to test it in code (I have checked the network traffic from the app and tried to check which query was made when selecting the option), maybe you can verify my results.

@jwillemsen
Copy link
Contributor Author

Thanks, will try to implement this asap, I really can use it as a workaround for the problems I have

@jwillemsen
Copy link
Contributor Author

Yes, this works, great! I have updated PR #28 to also provide the feature to set the phase setting

CJNE added a commit that referenced this issue Jun 3, 2024
Handle num_phases correctly, can be 1, 3, or auto, see #28
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

No branches or pull requests

2 participants