-
Jason, 1st off - Great tool! I have used this for over year since getting solar and 2 PW's. Running on rpi4 with zero issues. Getting all the data I want on Grafana dashboards. Thanks and cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hi @damclarkd ! Thanks for the great feedback! On the HA Tesla Powerwall integration, I think I may know why you see some issues connecting to the Powerwall. The reason I wrote the pyPowerwall API was because I couldn't find a good library that didn't have connection issues or that didn't cause the Powerwall Gateway to crash after a while. Upon examination, most of the other libraries flood the Powerwall Gateway API with a mountain of requests. The web server in the Gateway isn't that robust, especially if you are hitting it with many different monitoring tools. I decided to write a library that would help with that. The pyPowerwall library caches all API calls for 10s (default setting) and reuses the same session token until it expires. That made a huge impact on stability. The HA plugin for Tesla Powerwall appears to be using the tesla_powerwall python library but doesn't provide for any caching. I suspect pyPowerwall could be used instead. It would offer more stability as well as offer up additional data to graph via the device vitals payload that as far as I know, |
Beta Was this translation helpful? Give feedback.
-
Hello @jasonacox |
Beta Was this translation helpful? Give feedback.
-
Did you ever get anything setup attempting to connect Home Assistant via pyPowerwall proxy @jasonacox? Seems like the perfect solution with all of the current issues around the Tesla API and offical HA integration not being able to use the PW3 API. |
Beta Was this translation helpful? Give feedback.
Hi @damclarkd ! Thanks for the great feedback!
On the HA Tesla Powerwall integration, I think I may know why you see some issues connecting to the Powerwall. The reason I wrote the pyPowerwall API was because I couldn't find a good library that didn't have connection issues or that didn't cause the Powerwall Gateway to crash after a while. Upon examination, most of the other libraries flood the Powerwall Gateway API with a mountain of requests. The web server in the Gateway isn't that robust, especially if you are hitting it with many different monitoring tools. I decided to write a library that would help with that. The pyPowerwall library caches all API calls for 10s (default setting) a…