howanghk / homebridge-ewelink

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

Error Loginin #8

Closed russianv closed 5 years ago

russianv commented 5 years ago

Hi,

I can't get the plugin to load properly, here is the output:

[1/18/2019, 1:39:50 PM] [eWeLink] Initializing eWeLink platform... [1/18/2019, 1:39:50 PM] [eWeLink] Intialising eWeLink [1/18/2019, 1:39:50 PM] Loading 0 accessories... [1/18/2019, 1:39:50 PM] [eWeLink] A total of [0] accessories were loaded from the local cache [1/18/2019, 1:39:50 PM] [eWeLink] Sending login request with user credentials: {"phoneNumber":"+61xxxxx","password":"xxxx","version":"6","ts":"1547779190","nonce":"154777919065200","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","imei":"35-721709-124205-6","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"} [1/18/2019, 1:39:50 PM] [eWeLink] Login signature: YYpkrro6R1t/yleWJrkLK0C/UnMvVIN6MM64DwM4hgY=

[1/18/2019, 1:39:52 PM] [eWeLink] Server did not response with an authentication token. Response was [{"error":404,"info":"user global get is not exit"}] [1/18/2019, 1:39:52 PM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://us-api.coolkit.cc:8080] [1/18/2019, 1:39:53 PM] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":401}]

Any idea what I'm doing wrong?

Thanks for the plugin, and in advance for your support.

russianv commented 5 years ago

My bad, was including phone number and email in the Config file, didn't realise it has to be one or the other. Thanks.