ngardiner / TWCManager

Control power delivered by a Tesla Wall Charger using two wires screwed into its RS-485 terminals.
The Unlicense
130 stars 55 forks source link

Enphase local interface broken with new Envoy firmware (7.x.x) #424

Open rickhuizinga opened 2 years ago

rickhuizinga commented 2 years ago

Overnight, my Envoy updated to Software Version: D7.3.63 (c32c95), Software Build Date: Feb 25, 2022 10:27 AM.

This new firmware now requires authentication when connecting to local Envoy interface (https://envoy.local/production.json) to collect the production/consumption stats needed for track green energy. If not authenticated, it redirects to a login page to enter your Enphase Enlighten credentials. Once authorized the production.json continues to work for about 1 hour, after which the authorization expires and the credentials need to be entered again.

I will investigate further, and post updates to this issue.

rickhuizinga commented 2 years ago

envoy_reader 0.21.3 (pre-release) appears to have the logic to handle the authentication now required to access the local feed for Envoy firmware 7.x.x. Perhaps it may be useful to use this library rather than re-implementing the logic in this project.

Another temporary work-around for others with this issue: there are also patches (from the author of envoy_reader) to HomeAssistant here that will get the Envoy v7.x.x production/consumption data into HomeAssistant, which TWCManager can then be configured to fetch from.

UPDATE: For other users who are running into this issue, the HomeAssistant work-around (with patch) is working reliably for me.

rickhuizinga commented 2 years ago

UPDATE: There is now a Home Assistant Envoy module that has been updated to work with the new authentication scheme with Envoy v7.x.x firmware. It uses the envoy_reader library mentioned in my last update.