vincentwolsink / home_assistant_enphase_envoy_installer

This is a HACS custom integration for Enphase Envoys with firmware version 7 and up.
Apache License 2.0
61 stars 12 forks source link

Store the authorization token in persistent storage to aid restarts #27

Closed mnederlof closed 1 year ago

mnederlof commented 1 year ago

When restarting a lot (for testing mostly), it occurred to me that the envoy was spitting out 503 errors. These are a indication of "Too many installer sessions active". To fix this, we can just use an existing session, thus storing the authentication token on persistent storage would fix this problem.

(this link was discovered when fetching the https://envoy.local/auth/callback url, and interpreting the JS code; the JS code then would send you to https://envoy.local/err_toomanysess, which comes up with this explanation )