howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

Ewelink Authentication Errors Sign:oauthClient enable invalid #127

Open robin-garnham opened 1 year ago

robin-garnham commented 1 year ago

Today my Ewelink devices stopped reporting through Homekit. Upon closer inspection I saw in the logs in Homebridge:

` [7/6/2022, 7:10:43 PM] [eWeLink] Received region [us], updating API host to [us-api.coolkit.cc:8080].

[7/6/2022, 7:10:43 PM] [eWeLink] Sending login request with user credentials: {"email":"","password":"","version":"6","ts":"1657100443","nonce":"165710044383200","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","imei":"87751218-E0A7-4797-BB24-B4A99F7A2BC7","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"}

[7/6/2022, 7:10:43 PM] [eWeLink] Login signature: +qeF+B5pkgJ3L8d10xvSjkNDul3CzTKh4Am6pMxsM7Y=

[7/6/2022, 7:10:44 PM] [eWeLink] Server did not response with an authentication token. Response was [{"error":403,"msg":"Sign:oauthClient enable invalid"}]

[7/6/2022, 7:10:44 PM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://us-api.coolkit.cc:8080]

[7/6/2022, 7:10:45 PM] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":406,"msg":"{\"error\":401,\"msg\":\"Bearer:accessToken is empty\"}"}]`

a-b commented 1 year ago

Similar story https://github.com/howanghk/homebridge-ewelink/issues/120#issuecomment-718543377 helped with my issue.

cody770 commented 1 year ago

Similar story #120 (comment) helped with my issue.

This didn't help my issue sadly.

Edit: actually it did, I had the max plugin - this is alot better!