howanghk / homebridge-ewelink

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

Plugin stopped working #109

Open Kobiash opened 4 years ago

Kobiash commented 4 years ago

Hi,

For few days the plugin does not work. Looking into the logs it look like the login failed. The username (phone number), password etc. are correct. I think it started when I have re-installed fresh HB on headless raspberryPi 3 B+

[6/21/2020, 10:43:30] [eWeLink] A total of [0] accessories were loaded from the local cache [6/21/2020, 10:43:30] [eWeLink] getRegion query: country_code=972&version=6&ts=1592725410&nonce=159272541022100&appid=oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq&imei=DEA19051-5587-4926-A0C5-DDACF9C37333&os=iOS&model=iPhone10%2C6&romVersion=11.1.2&appVersion=3.5.3 [6/21/2020, 10:43:30] [eWeLink] getRegion signature: Q+lGouuQuSSkHLaCB55LXo3zgZeiVsF6ov8p2xMWZ24= [6/21/2020, 10:43:31] [eWeLink] Received region [as], updating API host to [as-api.coolkit.cc:8080]. [6/21/2020, 10:43:31] [eWeLink] Sending login request with user credentials: {"phoneNumber":"xxxxxxxxx","password":"xxxxxxxx","version":"6","ts":"1592725411","nonce":"159272541142300","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","imei":"DEA19051-5587-4926-A0C5-XXXXXXXXXXXX","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"} [6/21/2020, 10:43:31] [eWeLink] Login signature: /kbah46jCqt1SWdEx6pcIBoawyutQohHvXOVVkywYis= [6/21/2020, 10:43:32] [eWeLink] Server did not response with an authentication token. Response was [{"error":400,"msg":"params is error"}] [6/21/2020, 10:43:32] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://as-api.coolkit.cc:8080] [6/21/2020, 10:43:33] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":406,"msg":"{\"error\":401,\"msg\":\"Bearer:accessToken is empty\"}"}]

Can you please assist?

Thx,

Eivie commented 4 years ago

i have the same issue.

is it related to the recent ewelink app update?

Kobiash commented 4 years ago

I have created a new account with email and not phone. Registered all the devices to the new account as mitigation....

Kobiash commented 3 years ago

@Eivie I could not find any other reason for it. I think this is related to the update they are applying on their systems to have free and pro users approach.