Open rickhuizinga opened 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.
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.
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.