twonk / MyEnergi-App-Api

Investigation of the MyEnergi App
133 stars 26 forks source link

Set Phase Settings #25

Open phhoef opened 6 months ago

phhoef commented 6 months ago

Hi,

in the meanwhile the phase settings can be changed through the App. I was interested to find out, what requests are responsible for that.

I used the Proxyman to capture the requests and that is what I found out. You can change the phase setting, by firing a Get Request to the following URL. https://s18.myenergi.net/cgi-zappi-phase-setting-Z{{Serial}}-{{PhaseSetting}}

As described here the host should be determined based on the directory.myenergi.net request. The {{Serial}} is the serial of Zappi. Not sure, if it would change when a Hub is used. I've only a Zappi, so I am not able to find it out.

For the {{PhaseSetting}} three values are allowed:

Keep in mind, that switching the phase will take a few seconds. So, be patient until you double check if the changes took effect.

Maybe you can append these to your description - thanks :-)