jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
270 stars 57 forks source link

Critical Bug - 404 HTTP Status Code Handling #421

Closed jasonacox closed 5 months ago

jasonacox commented 5 months ago

There is a bug in the current pypowerwall release on how 404 HTTP status codes are handled.

Background

Firmware version 23.44.0 has eliminated /api/devices/vitals resulting in a 404 response from the Powerwall Gateway (TEG) when this is requested. There is a bug in the older pypowerwall code that will treat this 404 like an authentication failure which will result in attempts to log in over and over, eventually hitting the rate limit. This is especially impactful for those using the proxy for things like Powerwall-Dashboard as the rate limit will prohibit other data gathering.

Related issue: https://github.com/jasonacox/pypowerwall/issues/57

Resolution

A new version of pypowerwall [v0.7.6] and proxy jasonacox/pypowerwall:0.7.6t39 have been released and need to be added to Powerwall-Dashboard.