grzegorz914 / homebridge-enphase-envoy

Homebridge plugin for Photovoltaic Energy System manufactured by Enphase. Supported Envoy-IQ, Envoy-S and all peripheral devices.
MIT License
49 stars 9 forks source link

Trouble authenticating since the new auth system #95

Closed nazgul closed 1 year ago

nazgul commented 1 year ago

Homebridge 1.6.1 (Mac) Plugin 7.3.2 Node 18.14.0

I've set the serial number I've set the englighten username (email address) and password If I go to the enlighten site and login with those, and then go to https://enlighten.enphaseenergy.com/entrez-auth-token?serial_num=XXXX I get a token just fine.

But when the plugin tries, it gets.

[7/23/2023, 6:08:45 PM] [homebridge-enphase-envoy] Device: undefined Envoy, debug: Start.
[7/23/2023, 6:08:45 PM] [homebridge-enphase-envoy] Device: undefined Envoy, debug: Requesting JWT token.
[7/23/2023, 6:08:45 PM] [homebridge-enphase-envoy] Device: undefined Envoy, Get JWT token error: AxiosError: Request failed with status code 401 Reconnect in 15s.
[7/23/2023, 6:08:53 PM] [Homebridge UI] [homebridge-wyze-smart-home] Failed to check registry.npmjs.org for updates: "Invalid Version: 0.5.24.1" - see https://homebridge.io/w/JJSz6 for help.
[7/23/2023, 6:09:00 PM] [homebridge-enphase-envoy] Device: undefined Envoy, debug: Start.
[7/23/2023, 6:09:00 PM] [homebridge-enphase-envoy] Device: undefined Envoy, debug: Requesting JWT token.
[7/23/2023, 6:09:01 PM] [homebridge-enphase-envoy] Device: undefined Envoy, Get JWT token error: AxiosError: Request failed with status code 401 Reconnect in 15s.

For what it's worth, there's a % in my password.

grzegorz914 commented 1 year ago

Please try v7.3.3-beta and let me know with the log