Closed BenouGui closed 1 year ago
Please generate new Token here https://enlighten.enphaseenergy.com/entrez-auth-token?serial_num=12345 and ad it to the plugin Config and let me know. Replace 12345 with your envoy serial number
I generated a token 3 times and updated the plugin configuration and rebooted. Always the same mistake
Are you sure you have paste only the data after Token: without apostrophe
Here https://github.com/grzegorz914/homebridge-enphase-envoy/issues/63#issuecomment-1345527583 by test was same problem but was fixed after generate new token.
can you try 6.0.1-beta.0 and let me know
Strange, can you for test power ON/OFF your Envoy. Looks like it won't accept connection to inventory data all other are accepted correct. This was tested yesterday with @NoSnow3 and inventory data was also responding correct. Can someone confirm this behavior too?
The on/off of the gateway did not change anything, on the internet I see a lot of people using session cookies. When I try to curl curl -f -k -H 'Authorization: Bearer TOKENTOKENTOEKN' -X GET https://192.168.1.6/api/v1/production/inverters curl: (22) The requested URL returned error: 401 Unauthorized But curl -f -k -H 'Authorization: Bearer TOKENTOKENTOEKN' -X GET https://192.168.1.6/api/v1/production/ -- > { "wattHoursToday": 0, "wattHoursSevenDays": 21534, "wattHoursLifetime": 21529, "wattsNow": 8 } But in the web Gui after login witch token.
can you try with CURL this: curl -f -k -H 'Authorization: Bearer TOKENTOKENTOEKN' -X GET https://inventory.json
and let me know the output
beta.2 enabled cookies, try again please
pi@homebridge:~ $ curl -f -k -H 'Authorization: Bearer TOKENTOKEN' -X GET https://192.168.1.6/inventory.json curl: (22) The requested URL returned error: 401 Unauthorized.
try this in browser http://envoy.local/inventory.json
After login witch token in the web Gui
For the beta 2 the same error
looks like some bug in envoy firmware, I pushed beta.3 to test, here skipped the inventory data, try it and post the log please
ups try beta.4
arę you try beta.4
yes at the bottom of the log it's beta 4
OK, now try beta.5
beta.6 ready to test
ok, try beta.8 and get me the log, I have added some debug to the response
beta.9 ready
try beta.10
beta.11 ready
try beta.12
beta.13
beta.21
try 22
try 23
24
25
26
it working 28
try 29 too, need to pass cookies after check jwt and set new instance
nice, thanks for test
Sorry been AFK.
We all good now?
im pushed lates beta 30, can you both check and post the logs
As Requested
please again 31
"Envoy-S, power mode error: AxiosError: Request failed with status code 401, reconnect in 15s."
again 32
Nothing spotted
OK ready for release
Thanks
v6.0.1 released
I have a problem witch firmware 7 [11/12/2022, 19:31:34] [homebridge-enphase-envoy] Device: 192.168.1.6 Envoy-S, inventory error: AxiosError: Request failed with status code 401, reconnect in 15s.