Open bisand opened 2 years ago
Comment from @Marlark in #38
I have noticed something more for you. I was going thru the source code for the API and the app to see if i could figure out what the logic is that your using in the app. Is so i could help you out a litle down the road sins i have digged into the API wish i have quite good knowhow over how it works when i was looking into making a homey app but i am stil learning the homey app part looking on your sourcecode ;). I did notice your not using the STA value from the API along with the PST. In your API code you think it is possibly a timezone definition but it aint. It is the charger status.
0=Starting 1=Waiting for export or Paused if you like to call it that 2=DSR 3=Diverting/Charging 4=Boosting 5=Complete
If you combine the STA and PST in a grid you get this table that i want to point you toward that Chris at myenergi have given to the community for the varius states a Zappi can be detected to be in its correct status. Unfortualy it aint enouph just to use the PST status.
https://myenergi.info/viewtopic.php?p=13021#p13021
Also want to point you toward some info regarding error states... wish is the zsh value that direct that. Chris have posted this as base info for that.
https://myenergi.info/viewtopic.php?p=46653#p46653
If you want i can update the API table definition with current information regarding how varius things work in the Myenergi API sins i have played around alot with that part of the API to understand it.
See the examples from the links to provide better status information
Suggestion from @Pimmeke1989 from #13
Leverage values from STA to provide a better status. Also see if there is a way to set these values in the myenergi API