howanghk / homebridge-ewelink

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

eWelink response - params is error #125

Open frebens opened 3 years ago

frebens commented 3 years ago

Trouble getting valid response from eWelink servers:

Created secondary account and shared devices. tested fine.

Starting to advertise 'Homebridge 2104 1B87' using bonjour-hap backend! [6/17/2021, 2:11:07 PM] Homebridge v1.3.4 (Homebridge 2104) is running on port 51188. [6/17/2021, 2:11:08 PM] [eWeLink] Sending login request with user credentials: {"phoneNumber":"xxxxxxxxxxxx","password":"xxxxxxxxxx","version":"6","ts":"1623931868","nonce":"162393186824700","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","imei":"87c388b0-cf64-11eb-9345-0800200c9a66","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"} [6/17/2021, 2:11:08 PM] [eWeLink] Login signature: xxxxxxxxxxxxxxxx [6/17/2021, 2:11:08 PM] [eWeLink] Server did not response with an authentication token. Response was [{"error":400,"msg":"params is error"}] [6/17/2021, 2:11:08 PM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://eu-api.coolkit.cc:8080] [6/17/2021, 2:11:09 PM] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":406,"msg":"{\"error\":401,\"msg\":\"Bearer:accessToken is empty\"}"}]