Get data from local Enphase Envoy with use of Entrez JWT
So the flow:
- login, using Enphase username/password, to the Enphase Entrez token service
- get a JWT access token
- post this JWT to the local envoy
- get data
Referenced from here https://evilzenscientist.com/2022/05/access-to-the-local-enphase-envoy-api-through-code/
Thanks to the Enphase support team - the alternative endpoints and body return a clean JWT. No need to regex and hope!