Giter Club home page Giter Club logo

homebridge-ewelink's People

Contributors

aremishevsky-chegg avatar bassrock avatar bobbyslope avatar bwp91 avatar danielk117 avatar dhutchison avatar donavanbecker avatar gbro115 avatar howanghk avatar janbuecker avatar lejeko avatar metarutaiga avatar mrtomash avatar pickanothername avatar ramsesz avatar robsonfj avatar samkni avatar victorkrasnov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-ewelink's Issues

sonoff iFan

Please add and fix)
PSF-B04-GL (34)

[1/30/2019, 11:41:34 AM] [eWeLink] Adding accessory for deviceId [100054afe5CH1].
[1/30/2019, 11:41:34 AM] [eWeLink] Found Accessory with Name : [iFan туалет CH 1], Manufacturer : [iFan02], Status : [off], Is Online : [true], API Key: [26951b0e-a2ac-4a20-b230-e42c1b14f7a7]
[1/30/2019, 11:41:34 AM] [eWeLink] Error updating non-exist accessory with deviceId [100054afe5CH1].
[1/30/2019, 11:41:34 AM] [eWeLink] Adding accessory for deviceId [100054afe5CH2].
[1/30/2019, 11:41:34 AM] [eWeLink] Found Accessory with Name : [iFan туалет CH 2], Manufacturer : [iFan02], Status : [on], Is Online : [true], API Key: [26951b0e-a2ac-4a20-b230-e42c1b14f7a7]
[1/30/2019, 11:41:34 AM] [eWeLink] Error updating non-exist accessory with deviceId [100054afe5CH2].
[1/30/2019, 11:41:34 AM] [eWeLink] Adding accessory for deviceId [100054afe5CH3].
[1/30/2019, 11:41:34 AM] [eWeLink] Found Accessory with Name : [iFan туалет CH 3], Manufacturer : [iFan02], Status : [off], Is Online : [true], API Key: [26951b0e-a2ac-4a20-b230-e42c1b14f7a7]
[1/30/2019, 11:41:34 AM] [eWeLink] Error updating non-exist accessory with deviceId [100054afe5CH3].
[1/30/2019, 11:41:34 AM] [eWeLink] Adding accessory for deviceId [100054afe5CH4].
[1/30/2019, 11:41:34 AM] [eWeLink] Found Accessory with Name : [iFan туалет CH 4], Manufacturer : [iFan02], Status : [off], Is Online : [true], API Key: [26951b0e-a2ac-4a20-b230-e42c1b14f7a7]
[1/30/2019, 11:41:34 AM] [eWeLink] Error updating non-exist accessory with deviceId [100054afe5CH4].
[1/30/2019, 11:41:41 AM] [eWeLink] WebSocket messge received:  {"action":"update","deviceid":"10004e5ab7","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"rssi":-45},"from":"device"}
[1/30/2019, 11:41:42 AM] [eWeLink] WebSocket messge received:  {"action":"update","deviceid":"100054afe5","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"app","sequence":"1548837702184","ts":0,"params":{"switches":[{"switch":"off","outlet":0},{"outlet":1,"switch":"on"},{"switch":"off","outlet":2},{"switch":"off","outlet":3}]}}
[1/30/2019, 11:41:42 AM] [eWeLink] Adding accessory for deviceId [100054afe5CH1].
[1/30/2019, 11:41:42 AM] [eWeLink] Found Accessory with Name : [iFan туалет CH 1], Manufacturer : [iFan02], Status : [off], Is Online : [true], API Key: [26951b0e-a2ac-4a20-b230-e42c1b14f7a7]
/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266
      throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);
homebridge.service: Main process exited, code=exited, status=1/FAILURE
homebridge.service: Unit entered failed state.
homebridge.service: Failed with result 'exit-code'.
pam_unix(sudo:session): session closed for user root
homebridge.service: Service hold-off time over, scheduling restart.
Stopped Node.js HomeKit Server.
Started Node.js HomeKit Server.

HomeKit type of accesory

Im using sonoff SV in inching mode to open garage door, and this works fine.
Issue is that I need to say siri "turn on garage door" which is stupid :)
Is there any way to represent a switch as garage door accessory? After that I will be able to tell "Open garage door".
Note: I don't use a sensor for garage door and its not important to me to know if its closed or not (at least for now).

Sonoff touch t1 2c

Hello.

I just added this device to ewelink but it does not recognize it homebridge.

Could you help me find out what the problem is?

Thank you.

iphone, romversion and appversion incorrect

[eWeLink] A total of [0] accessories were loaded from the local cache
[1/15/2019, 11:47:50 PM] [eWeLink] Sending login request with user credentials: {"email":"xxxxxxxx@gmail","password":"xxxxxxxxx","version":"6","ts":"xxxxxxxx","nonce":"xxxxxxxxxxxxxxxx","appid":"xxxxxxxxxxxxxxxxxxxxxxx","imei":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"}
[1/15/2019, 11:47:50 PM] [eWeLink] Login signature: xxxxxxxxxxxxxxxxxxxxxxxxxx

[eWeLink] Server did not response with an authentication token. Response was [{"error":400,"info":"msg is not complete"}]
[1/15/2019, 11:47:51 PM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://us-api.coolkit.cc:8080]
[1/15/2019, 11:47:51 PM] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":401}]

UUID error

Hi. Great plugin.
I got one problem. When controlling from only Home app (HomeKit) there is no problems. If I turn off the lights from the wall switch and back to Home app, its generate this error and Homebridge is disconnected. Why?

[3/14/2019, 6:16:08 PM] [eWeLink] Adding accessory for deviceId [100025d1feCH1].
[3/14/2019, 6:16:08 PM] [eWeLink] Found Accessory with Name : [Bedroom light CH 1], Manufacturer : [T1 UK3C], Status : [off], Is Online : [true], API Key: [879db2c8-04fd-4e79-b795-aa9a9c29c088]
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266
throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);
^

Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 9ae95042-520b-4c7c-93f3-55c0d8bee4f3
at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266:13)
at Bridge.Accessory.addBridgedAccessories (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:292:10)
at Server._handleRegisterPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:473:16)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:41:10)
at API.emit (events.js:197:13)
at API.registerPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/api.js:159:8)
at eWeLink.addAccessory (/usr/local/lib/node_modules/homebridge-ewelink-max/index.js:391:14)
at eWeLink.updatePowerStateCharacteristic (/usr/local/lib/node_modules/homebridge-ewelink-max/index.js:414:18)
at /usr/local/lib/node_modules/homebridge-ewelink-max/index.js:234:54
at Array.forEach ()

Name of sonoff item in ewelink

Hi howanghk,

First of all, i would like to tank you for this new pluggin. It works very well.

So, in ewelink app, i changed the old name of one of sonoff item for a new name. But, in homebridge console, i saw the old name, not the new. Same thing in homekit in my iPhone. Do you know why? and how i fix it?

Thanks again for your pluggin.
Richard

Error Loginin

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.

Simultaneous command to more than 1 device doesn't work properly

Hi there,

First of all thank you very very much for developing this plugin. It's very useful and most stable I've found so far. However here is a little thing I face:
When say I setup automation in iOS Home app to say trigger more than one device when certain condition occurs only 1 device triggers initially. Then when you try it second time both devices work.
Attached are some logs, please take a look.

Regards

Teymur
eWelink.txt

Websocket closes on multiple requests

Hello, I'm having a problem with my basic switches. When asking for multiple (any number above 1) switches to turn on/off more than ~15 seconds after the last successful request/login, only one switch responds and the websocket closes with reason 1006.

No issue arises when only asking for only one basic switch to turn on/off.

As long as my first request is within 15 seconds of websocket login, and I keep making requests within 15 seconds of each other, every command works no matter how many switches are commanded (Well, I have 5 Sonoff Basic Switches so I know it works up to 5). If not, only the first device responds.

Here's the log. You can see two successful requests right after login, but if I wait a little I get a 1006 error

[2019-1-22 05:51:54] [eWeLink] A total of [5] accessories were loaded from the local cache
[2019-1-22 05:51:54] [eWeLink] Sending login request with user credentials: {"email":"xxxxxxxxxxxx","password":"xxxxxxx","version":"6","ts":"1548132714","nonce":"154813271484300","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","imei":"cfe41b3e-833b-4a74-a30d-6ee0716bf3cf","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"}
[2019-1-22 05:51:54] [eWeLink] Login signature: AyCHYf5JhuiVgpZ1fI+NOX1KD9JdySyFHP90Axa0V+E=
[2019-1-22 05:51:55] [eWeLink] Authentication token received [402df6e88b65ad14119f72c4883ed9bdad3b8fd8]
[2019-1-22 05:51:55] [eWeLink] WebSocket host received [eu-pconnect2.coolkit.cc]
[2019-1-22 05:51:55] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://eu-api.coolkit.cc:8080]
[2019-1-22 05:51:55] [eWeLink] eWeLink HTTPS API reports that there are a total of [5] devices registered
[2019-1-22 05:51:55] [eWeLink] Evaluating if devices need to be removed...
[2019-1-22 05:51:55] [eWeLink] Verifying that all cached devices are still registered with the API. Devices that are no longer registered with the API will be removed.
[2019-1-22 05:51:55] [eWeLink] Device [Main Lights] is regeistered with API. Nothing to do.
[2019-1-22 05:51:55] [eWeLink] Device [Entrance] is regeistered with API. Nothing to do.
[2019-1-22 05:51:55] [eWeLink] Device [Bathroom] is regeistered with API. Nothing to do.
[2019-1-22 05:51:55] [eWeLink] Device [Bathroom Mirror] is regeistered with API. Nothing to do.
[2019-1-22 05:51:55] [eWeLink] Device [Kitchen] is regeistered with API. Nothing to do.
[2019-1-22 05:51:55] [eWeLink] Evaluating if new devices need to be added...
[2019-1-22 05:51:55] [eWeLink] Device with ID [100060f56b] is already configured. Ensuring that the configuration is current.
[2019-1-22 05:51:55] [eWeLink] Single channel device has been set: PSF-B01-GL
[2019-1-22 05:51:55] [eWeLink] Updating recorded Characteristic.On for [Main Lights] to [false]. No request will be sent to the device.
[2019-1-22 05:51:55] [eWeLink] Setting power state to [off] for device [Main Lights]
[2019-1-22 05:51:55] [eWeLink] Device with ID [100060e721] is already configured. Ensuring that the configuration is current.
[2019-1-22 05:51:55] [eWeLink] Single channel device has been set: PSF-B01-GL
[2019-1-22 05:51:55] [eWeLink] Updating recorded Characteristic.On for [Entrance] to [false]. No request will be sent to the device.
[2019-1-22 05:51:55] [eWeLink] Setting power state to [off] for device [Entrance]
[2019-1-22 05:51:55] [eWeLink] Device with ID [1000614a2d] is already configured. Ensuring that the configuration is current.
[2019-1-22 05:51:55] [eWeLink] Single channel device has been set: PSF-B01-GL
[2019-1-22 05:51:55] [eWeLink] Updating recorded Characteristic.On for [Bathroom] to [true]. No request will be sent to the device.
[2019-1-22 05:51:55] [eWeLink] Setting power state to [on] for device [Bathroom]
[2019-1-22 05:51:55] [eWeLink] Device with ID [10005fa578] is already configured. Ensuring that the configuration is current.
[2019-1-22 05:51:55] [eWeLink] Single channel device has been set: PSF-B01-GL
[2019-1-22 05:51:55] [eWeLink] Updating recorded Characteristic.On for [Bathroom Mirror] to [false]. No request will be sent to the device.
[2019-1-22 05:51:55] [eWeLink] Setting power state to [off] for device [Bathroom Mirror]
[2019-1-22 05:51:55] [eWeLink] Device with ID [10005fe5b6] is already configured. Ensuring that the configuration is current.
[2019-1-22 05:51:55] [eWeLink] Single channel device has been set: PSF-B01-GL
[2019-1-22 05:51:55] [eWeLink] Updating recorded Characteristic.On for [Kitchen] to [false]. No request will be sent to the device.
[2019-1-22 05:51:55] [eWeLink] Setting power state to [off] for device [Kitchen]
[2019-1-22 05:51:55] [eWeLink] API key retrieved from web service is [da979662-3c30-4482-8861-303c50b6221a]
[2019-1-22 05:51:55] [eWeLink] Connecting to the WebSocket API at [wss://eu-pconnect2.coolkit.cc:8080/api/ws]
[2019-1-22 05:51:55] [eWeLink] Sending login request [{"action":"userOnline","userAgent":"app","version":6,"nonce":"154813271554300","apkVesrion":"1.8","os":"ios","at":"402df6e88b65ad14119f72c4883ed9bdad3b8fd8","apikey":"da979662-3c30-4482-8861-303c50b6221a","ts":"1548132715","model":"iPhone10,6","romVersion":"11.1.2","sequence":1548132715543}]
[2019-1-22 05:51:55] [eWeLink] WebSocket messge received:  {"error":0,"apikey":"da979662-3c30-4482-8861-303c50b6221a","config":{"hb":1,"hbInterval":145},"sequence":"1548132715543"}
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Bathroom]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Kitchen]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Entrance]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Bathroom Mirror]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Main Lights]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Bathroom]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Kitchen]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Entrance]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Bathroom Mirror]
[2019-1-22 05:51:58] [eWeLink] Setting power state to [on] for device [Main Lights]
[2019-1-22 05:51:58] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005fe5b6","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718603"}
[2019-1-22 05:51:58] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"100060f56b","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718604"}
[2019-1-22 05:51:58] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"100060e721","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718604"}
[2019-1-22 05:51:58] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005fa578","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718604"}
[2019-1-22 05:51:58] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"1000614a2d","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718602"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":504,"reason":"Request Timeout","deviceid":"100060e721","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718361"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":504,"reason":"Request Timeout","deviceid":"100060f56b","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718363"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":504,"reason":"Request Timeout","deviceid":"10005fa578","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718362"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":504,"reason":"Request Timeout","deviceid":"1000614a2d","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718359"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":504,"reason":"Request Timeout","deviceid":"10005fe5b6","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132718360"}
[2019-1-22 05:52:03] [eWeLink] Setting power state to [off] for device [Bathroom]
[2019-1-22 05:52:03] [eWeLink] Setting power state to [off] for device [Bathroom Mirror]
[2019-1-22 05:52:03] [eWeLink] Setting power state to [off] for device [Main Lights]
[2019-1-22 05:52:03] [eWeLink] Setting power state to [off] for device [Kitchen]
[2019-1-22 05:52:03] [eWeLink] Setting power state to [off] for device [Entrance]
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005fa578","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132723492"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"1000614a2d","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132723491"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"100060f56b","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132723493"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"100060e721","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132723494"}
[2019-1-22 05:52:03] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005fe5b6","apikey":"da979662-3c30-4482-8861-303c50b6221a","sequence":"1548132723494"}
[2019-1-22 05:52:32] [eWeLink] Setting power state to [on] for device [Bathroom]
[2019-1-22 05:52:32] [eWeLink] Setting power state to [on] for device [Kitchen]
[2019-1-22 05:52:32] [eWeLink] Setting power state to [on] for device [Entrance]
[2019-1-22 05:52:32] [eWeLink] Setting power state to [on] for device [Bathroom Mirror]
[2019-1-22 05:52:32] [eWeLink] Setting power state to [on] for device [Main Lights]
[2019-1-22 05:52:32] [eWeLink] WebSocket was closed. Reason [1006]
WebSocketClient: reconnecting...
[2019-1-22 05:52:37] [eWeLink] Sending login request [{"action":"userOnline","userAgent":"app","version":6,"nonce":"154813275774500","apkVesrion":"1.8","os":"ios","at":"402df6e88b65ad14119f72c4883ed9bdad3b8fd8","apikey":"da979662-3c30-4482-8861-303c50b6221a","ts":"1548132757","model":"iPhone10,6","romVersion":"11.1.2","sequence":1548132757745}]
[2019-1-22 05:52:37] [eWeLink] WebSocket messge received:  {"error":0,"apikey":"da979662-3c30-4482-8861-303c50b6221a","config":{"hb":1,"hbInterval":145},"sequence":"1548132757745"}

I hope I was as descriptive as possible. I edited out my credentials, obviously

An error was encountered while requesting a list of devices

Hello and thanks for your job on eWelink devices.

I'm facing issue while configuring my device with your plugin.

Here are the logs I have:

[1/6/2019, 9:59:19 AM] [eWeLink] A total of [0] accessories were loaded from the local cache
[1/6/2019, 9:59:19 AM] [eWeLink] Sending login request with user credentials: {"phoneNumber":"+33XXXXXXX","password":"XXXXXXXXXXXX","version":"6","ts":"1546768759","nonce":"154676875971700","appid":"XXXXXXXXXXXXXXXXXXXXXXXX","imei":"XXXXXXXXXXX","os":"iOS","model":"iPhone10,6","romVersion":"11.1.2","appVersion":"3.5.3"}
[1/6/2019, 9:59:19 AM] [eWeLink] Login signature: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[1/6/2019, 9:59:21 AM] [eWeLink] Server did not response with an authentication token. Response was [{"error":404,"info":"user global getis not exit"}]
[1/6/2019, 9:59:21 AM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://us-api.coolkit.cc:8080]
[1/6/2019, 9:59:22 AM] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":401}]

Any idea of what i've mistaken ?

Best regards.

ETIMEDOUT 13.57.86.90:8080]

Cannot Connect to the ewelink server, keep getting the below error message

[2/20/2019, 4:40:50 AM] [eWeLink] An error was encountered while logging in. Error was [Error: connect ETIMEDOUT 13.57.86.90:8080]
[2/20/2019, 4:40:50 AM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://us-api.coolkit.cc:8080]
[2/20/2019, 4:43:03 AM] [eWeLink] An error was encountered while requesting a list of devices. Error was [Error: connect ETIMEDOUT 13.57.86.90:8080]

My Config file

"bridge": {
"name": "Sonoffbridge",
"username": "08:C5:64:1D:F3:19",
"port": 51825,
"pin": "031-45-154"
},
"description": "Sonoff_Bridge",
"accessories": [],
"platforms": [
{
"platform": "eWeLink",
"name": "eWeLink",
"email": "[email protected]",
"password": "xxxxxxx",
"imei": "A6808FCB-9CB6-48EA-B62A-B036790B806D",
"apiHost": "eu-api.coolkit.cc:8080",
"webSocketApi": "eu-pconnect3.coolkit.cc"

I've tried with both "eu-api.coolkit.cc:8080" and "us-api.coolkit.cc:8080",

Sonoff TH16 temp Min not low enough

Got the Sonoff TH16 with AM2301 sensor working in homebridge, but it's registering as a thermostat and won't go below 32 degrees (don't know if it's Celsius or Fahrenheit. Is there a config setting to set that?). The temp sensor is good for -55C to 125C. Humidity in homebridge is accurate. EweLink app is accurate for both temp and humidity. Otherwise nice work!

Edit:
It's got to be an issue with it marking the device as a thermostat instead of a Switch with Temp/Humidity sensor. It's getting temp in Celsius, and then setting "thermostat" to 0C, which is why it's displaying 32F in homebridge.

Logs:
[7/14/2019, 8:13:07 PM] [Garage Freezer] Requesting power state for [Garage Freezer]
[7/14/2019, 8:13:07 PM] [Garage Freezer] Requesting current temperature for [Garage Freezer]
[7/14/2019, 8:13:07 PM] [Garage Freezer] Requesting current humidity for [Garage Freezer]
[7/14/2019, 8:13:07 PM] [Garage Freezer] Requesting current humidity for [Garage Freezer]
[7/14/2019, 8:13:07 PM] [Garage Freezer] Requesting current temperature for [Garage Freezer]
[7/14/2019, 8:13:07 PM] [Garage Freezer] getCurrentHumidity: 62
[7/14/2019, 8:13:07 PM] [Garage Freezer] setting humidity: 62
[7/14/2019, 8:13:07 PM] [Garage Freezer] setting humidity: 62
[7/14/2019, 8:13:07 PM] [Garage Freezer] getCurrentTemperature: -20
[7/14/2019, 8:13:07 PM] [Garage Freezer] setting temperature: 0
[7/14/2019, 8:13:07 PM] [Garage Freezer] setting temperature: 0
[7/14/2019, 8:13:07 PM] [Garage Freezer] getCurrentTemperature: -20
[7/14/2019, 8:13:07 PM] [Garage Freezer] setting temperature: 0
[7/14/2019, 8:13:07 PM] [Garage Freezer] setting temperature: 0
[7/14/2019, 8:13:07 PM] [Garage Freezer] API reported that [Garage Freezer] is Off

Homekit Reports:
Manufacturer TH16
Model PSA-BHA-GL (15)
Firmware 2.6

sonoff touch flashing problem

Hi, I have a strange situation. The plugin is working properly but if I try to use the ewelink app to turn on/off a channel this flashes on/off 2 or 3 times. If I stop the plugin the ewelink app back to work. FOr the ewelink app I use an account and for the plugin I use a different account allowed from the ewelink app.
Do you have any suggestion?
Thanks in advance to anybody wants to help me

Switch stuck in loop

I have a single Sonoff light switch set up - in a previous config of my HOOBs, i had it working fine with the plugin but having reinstalled my Hoobs setup, the switch now appears to be getting stuck in a loop when i try turning the switch on and off. I'm getting the following on what appears an infinite loop in my log:

[8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","userAgent":"app","sequence":"1564729953497","ts":0,"params":{"switch":"on"},"tempRec":"100051fa0c"}
[8/2/2019, 8:12:33 AM] [eWeLink] Updating recorded Characteristic.On for [Garage Light Switch] to [true]. No request will be sent to the device.
[8/2/2019, 8:12:33 AM] [eWeLink] Setting power state to [on] for device [Garage Light Switch]
[8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","sequence":"1564729953585"}
[8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","userAgent":"app","sequence":"1564729953668","ts":0,"params":{"switch":"on"},"tempRec":"100051fa0c"}
[8/2/2019, 8:12:33 AM] [eWeLink] Updating recorded Characteristic.On for [Garage Light Switch] to [true]. No request will be sent to the device.
[8/2/2019, 8:12:33 AM] [eWeLink] Setting power state to [on] for device [Garage Light Switch]
[8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","sequence":"1564729953772"}
[8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","userAgent":"app","sequence":"1564729953848","ts":0,"params":{"switch":"on"},"tempRec":"100051fa0c"}
[8/2/2019, 8:12:33 AM] [eWeLink] Updating recorded Characteristic.On for [Garage Light Switch] to [true]. No request will be sent to the device.
[8/2/2019, 8:12:33 AM] [eWeLink] Setting power state to [on] for device [Garage Light Switch]
[8/2/2019, 8:12:34 AM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","sequence":"1564729953952"}

If i have set the switch to on and try turning it off by clicking the physical button, it is turning the light back on immediately. Any ideas?

Random errors [{"error":400,"msg":"params incomplete"}]

For the past few days getting the below error, due to which there is always a delay or switches fail to respond at all. It seems to happen randomly. Everything was working fine so many days is ewelink discouraging this ?. or is it a simple fix ?.

[2019-9-26 19:53:20] [eWeLink] Requesting power state for [Gate]
[2019-9-26 19:53:20] [eWeLink] Requesting power state for [Hall fan 1]
[2019-9-26 19:53:20] [eWeLink] Requesting power state for [Staircase]
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] API reported that [Door bell 2] is Off
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] API reported that [Table Lamp] is Off
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
[2019-9-26 19:53:20] [eWeLink] API reported that [Gate] is Off
[2019-9-26 19:53:20] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Verify your configuration options. Response was [{"error":400,"msg":"params incomplete"}]
send hb to: 0x00000000049e6502

CHANEL 2 is not stable on Sonoff T2EU2C

Hello,

at first I have to say, great job. I am testing this plugin and it is good.

Unfortunately, I have a problem with second CHANEL. It is not stable.

When homebridge is running with your plugin, CHANEL 1 works good when I am touching button on sonoff and also in app Homekit. CHANEL 2 doesn t work properly when I am touching the button. The relay switch go to the ON and OFF few times. Interesting is that remote via app Homekit is working very well.

I was trying another plugin homebridge-ewelink-krasnov. In description was:

  1. Fix CH3 and CH4 entries for T1 C2 device.
  2. Fix spelling mistakes.

Plugin homebridge-ewelink-krasnov works fine with CHANEL 1 and CHANEL 2. There were one problem in the logs. He is trying to work with CHANEL 3 and CHANEL 4 which I don t have. So I saw a lot of errors in logs because of CHANEL 3 and CHANEL 4. I understand that the “krasnov” plugin is profiled on 3CH or 4 CH sonoff.

Please, is it possible to fix CHANEL 2 in your plugin for T2EU2C?

Thanks a lot.

Martin

Sonoff SC

Firstly, thanks for the great work on Ewelink-max. My Sonoff Touch and Sonoff Basic switches are working perfectly in Homekit.

I have a Sonoff SC https://www.itead.cc/sonoff-sc.html and would love for it to be integrated into Homekit as well. At the moment it is showing up as a switch that is not responding. If you ever look at updating Ewelink-max, please consider adding support for this device as well.

Only Sonoff?

Hello,

it looks interesting plugin for ewelink app.

I don‘t have Sonoff devices, but a light switch which works with the ewelink app. Does it work too with this plugin or only Sonoff?

Sent with GitHawk

Sonoff LED

Hello!
Is there an ability to add dimming and color selection to sonoff LED?
Thanks in advance!

Sonoff Bridge unsupported, to exclude

Hello,
Apparently, the Sonoff Bridges are not supported by this homebridge plugin.

That's not a real problem, excepting it generate many cycling error messages in the Homebridge logs ;

[2019-8-31 4:50:55 AM] [eWeLink] Requesting power state for [Sonoff Bridge 1]
[2019-8-31 4:50:55 AM] [eWeLink] Requesting power state for [Sonoff Bridge 2]
[2019-8-31 4:50:56 AM] [eWeLink] API reported an unknown status for device [Sonoff Bridge 1]
[2019-8-31 4:50:56 AM] [eWeLink] API reported an unknown status for device [Sonoff Bridge 2]

Is there any way to exclude an item from the homebridge-ewelink plugin ? (if not, could be useful in future ^^)
Thanks

Error: Attempting to register a platform 'homebridge-eWeLink.eWeLink' which has already been registered!

hi,

i am Arnaud From France

i am new on Homebridge/ Debian ...etc
I did install Homebridge on a VM and tried to install also ewe link plugin,
i edit my config.json but I have trouble when I try to launch HOMEBRIDGE

here is the complete error message

root@debian:/home/freebox# homebridge
[10/22/2019, 11:48:57 AM] Loaded config.json with 0 accessories and 1 platforms.
[10/22/2019, 11:48:57 AM] ---
[10/22/2019, 11:48:58 AM] Loaded plugin: homebridge-ewelink
homebridge API version: 2.4
[10/22/2019, 11:48:58 AM] Registering platform 'homebridge-eWeLink.eWeLink'
[10/22/2019, 11:48:58 AM] ---
[10/22/2019, 11:48:58 AM] Loaded plugin: homebridge-ewelink-max
homebridge API version: 2.4
/usr/lib/node_modules/homebridge/lib/api.js:150
throw new Error("Attempting to register a platform '" + fullName + "' which has already been registered!");
^

Error: Attempting to register a platform 'homebridge-eWeLink.eWeLink' which has already been registered!
at API.registerPlatform (/usr/lib/node_modules/homebridge/lib/api.js:150:11)
at Plugin.module.exports [as initializer] (/usr/lib/node_modules/homebridge-ewelink-max/index.js:30:16)
at Server. (/usr/lib/node_modules/homebridge/lib/server.js:171:14)
at Array.forEach ()
at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:145:22)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:57:24)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:32:16)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:945:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)

thanks a lot for your support

Avoid being logged off

Hi, to avoid being logged of from eWeLink on your device:

1- Create another account
2- Then log in with the new account on other iOS device (you have to keep both accounts connected and with eWeLink on the screen).
3- Go to your eWeLink, select your Sonoff device and share it with the other account.
4- A popup should appear on the other iOS device, accept it.
5- Use the second account as your plugin login (and never use this account on eWeLink anymore to avoid being logged off)
6- Be happy and never get a "session expired" message again.

Did this work for you?

Sonoff POW R2

Hi, FIRST OF ALL: thanks for this implementation... no need for firmware replacement... VERY NICE!

Second, how can I help to add support for Sonoff POW R2?

I'd like to read the consumption data on the Home app.

Also, how about create a wiki with curl commands from the API so we can map all RAW data and protocol from sonoff devices?

Homebridge crashes

Randomly Homebridge stops with the below error. How do I fix this ?

send hb to: 0x0000000003732a9c
{"id":-1,"method":"get_prop","params":["power","bright","rgb"]}
send hb to: 0x00000000049e6502
{"id":-1,"method":"get_prop","params":["power","bright","rgb"]}
[2019-4-26 16:22:01] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10001dec5c","apikey":"ee8e6771-c24c-4e13-9f0c-f0621a15ff1e","userAgent":"app","sequence":"1556275921617","ts":0,"params":{"switch":"off","partnerApikey":"0917e393-9612-48e8-be55-634b3b8444ea"},"tempRec":"10001dec5c"}
[2019-4-26 16:22:01] [eWeLink] Updating recorded Characteristic.On for [Corner lamp] to [false]. No request will be sent to the device.
[2019-4-26 16:22:01] [eWeLink] Setting power state to [off] for device [Corner lamp]
[2019-4-26 16:22:01] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10001d9433","apikey":"ee8e6771-c24c-4e13-9f0c-f0621a15ff1e","userAgent":"app","sequence":"1556275921741","ts":0,"params":{"switch":"off","partnerApikey":"203c03f8-29c8-4419-b7f4-f1cef30c1294"},"tempRec":"10001d9433"}
[2019-4-26 16:22:01] [eWeLink] Updating recorded Characteristic.On for [Hall fan 1] to [false]. No request will be sent to the device.
[2019-4-26 16:22:01] [eWeLink] Setting power state to [off] for device [Hall fan 1]
[2019-4-26 16:22:01] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100016fca0","apikey":"ee8e6771-c24c-4e13-9f0c-f0621a15ff1e","userAgent":"app","sequence":"1556275921747","ts":0,"params":{"switch":"off","partnerApikey":"b2c8e8ca-3ce3-44a3-bf52-f8b7dea44f77"},"tempRec":"100016fca0"}
[2019-4-26 16:22:01] [eWeLink] Updating recorded Characteristic.On for [chandelier] to [false]. No request will be sent to the device.
[2019-4-26 16:22:01] [eWeLink] Setting power state to [off] for device [chandelier]
[2019-4-26 16:22:01] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10001dec5d","apikey":"ee8e6771-c24c-4e13-9f0c-f0621a15ff1e","userAgent":"app","sequence":"1556275921761","ts":0,"params":{"switch":"off","partnerApikey":"e41c2216-aab9-4cf2-a1d7-338c2e2e8278"},"tempRec":"10001dec5d"}
[2019-4-26 16:22:01] [eWeLink] Updating recorded Characteristic.On for [Hall fan 2] to [false]. No request will be sent to the device.
[2019-4-26 16:22:01] [eWeLink] Setting power state to [off] for device [Hall fan 2]
[2019-4-26 16:22:01] [eWeLink] WebSocket was closed. Reason [1006]
[2019-4-26 16:22:01] Error: not opened
at WebSocket.send (/usr/lib/node_modules/homebridge-ewelink-max/node_modules/ws/lib/WebSocket.js:360:18)
at WebSocketClient.send (/usr/lib/node_modules/homebridge-ewelink-max/index.js:879:23)
at Timeout._onTimeout (/usr/lib/node_modules/homebridge-ewelink-max/index.js:589:26)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

[2019-4-26 16:22:01] Got SIGTERM, shutting down Homebridge...
[2019-4-26 16:22:01] Error: not opened
at WebSocket.send (/usr/lib/node_modules/homebridge-ewelink-max/node_modules/ws/lib/WebSocket.js:360:18)
at WebSocketClient.send (/usr/lib/node_modules/homebridge-ewelink-max/index.js:879:23)
at Timeout._onTimeout (/usr/lib/node_modules/homebridge-ewelink-max/index.js:589:26)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
at listOnTimeoutNT (timers.js:369:26)
at _combinedTickCallback (internal/process/next_tick.js:136:11)
at process._tickCallback (internal/process/next_tick.js:181:9)

send hb to: 0x0000000003dd600e

Can't connect to server

I am getting the following errors in the homebridge log:

[eWeLink] Server did not response with an authentication token. Response was [{"error":400,"info":"msg is not complete"}]
[3/13/2019, 1:02:38 PM] [eWeLink] Requesting a list of devices from eWeLink HTTPS API at [https://us-api.coolkit.cc:8080]
[3/13/2019, 1:02:38 PM] [eWeLink] An error was encountered while requesting a list of devices. Response was [{"error":401}]

The username(email) and password are double checked and appears to be correct, using the following codes in config.json:

    {
        "platform": "eWeLink",
        "name": "eWeLink",
        "phoneNumber": "[email protected]",
        "password": "xxxxxxxx",
        "imei": "8E95FDC3-7CCC-41A4-90BC-xxxxxxxxxxxxxx"
    }

Please help.

Crash if there is a bridge 433 mhz connected to the account

Hello,

Today I tried to configure a bridge 433 mhz with my account, but when I tried to run homebridge I received this exception while listing the devices.

this.webClient.get('/api/user/device', function(err, res, body) {
^

TypeError: Cannot read property 'get' of undefined
at eWeLink.getPowerState (/opt/nodejs/lib/node_modules/homebridge-ewelink-max/index.js:440:20)
at Characteristic. (/opt/nodejs/lib/node_modules/homebridge-ewelink-max/index.js:316:26)
at emitThree (events.js:136:13)
at Characteristic.emit (events.js:217:7)
at Characteristic.getValue (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:163:10)
at Bridge. (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:760:20)
at Array.forEach ()
at Bridge.Accessory._handleGetCharacteristics (/opt/nodejs/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:724:8)
at emitMany (events.js:147:13)
at HAPServer.emit (events.js:224:7)

Add support eve

Hello! Can you make support for voltage mapping and other options available for the EVE program?
I see in the console that the plugin gets these parameters ...

Homebridge keeps crashing

To start off, i'm pretty newbie with this. But I managed to install the ewelink-max plugin. And configurated my json file:

{
"accessories" : [
{
"name" : "Example PC",
"accessory" : "NetworkDevice",
"pingInterval" : "15",
"mac" : "EX:AM:PL:E:PC",
"wakeGraceTime" : "20",
"shutdownGraceTime" : "45",
"ip" : "192.168.178.1"
},
{
"name" : "Pi Temp",
"accessory" : "RaspberryPiTemperature"
}
],
"bridge" : {
"username" : "CD:22:3D:E3:CE:15",
"name" : "Homebridge",
"pin" : "123-45-678",
"port" : 51826
},
"platforms" : [
{
"platform" : "NeatoVacuumRobot",
"email" : "[email protected]",
"password" : ""
},
{
"platform" : "SamsungTizen",
"devices" : [
{
"name" : "TV",
"ip" : "192.168.178.68",
"mac" : "9c:8c:6e:f4:59:a8"
},
{
"email" : "‪[email protected]‬",
"password" : "
",
"platform" : "eWeLink",
"name" : "eWeLink",
"imei" : "eb29dc62-fcce-4f8a-b627-fe0d00d42147"
}
]
}
]
}

If i launch homebridge with this configuration it crashes constantly. And none of my other plugins will work. Can you please help me solve this?

Thanks already

LAN mode

So ewelink has a new LAN mode.

It would be great if someone could figure out how to use this so we don't have to connect to their remote server all the time.

Garage door switch type

Woudl it be possible to change the type of the switch to garage door? I am using the ewelink connected garage door opener (don’t remember the name) and it’s working great, but I would like to have it show up as a garage door rather than a switch

Devices compatible with ewelink with more options than just on/off

Dear Howanghk,

Thank you for this great plugin, which is simple to use!
I have bought some ewelink compatible devices I wanted tot try:

  1. simple on/off touch: works great with the plugin
  2. dimmer (on/off brightness): only on/of switch appears in homekit, no brightness
  3. curtain controller(close/open/pauze): only on/of switch appears in homekit for open and close.

when there are extra functions (different service) to the the switch they are not recognised by homekit and therefor they can't be used in homekit.

Is there a possibility this can be changed?

Thnks!

switches don't always activate from an automation.

My homebridge setup has an automation to turn on 3 water pumps when a temperature sensor triggers.

I use cmd4 to detect the temperature threshold and homekit sends (via homebridge) a request to switch on each of the 3 pumps with their own eWeLink outlets.

Most of the time all 3 will start, however often some will fail to switch on.

[28/06/2019, 2:28:27 pm] [eWeLink] Setting power state to [off] for device [eWeSwitch3]
[28/06/2019, 2:28:27 pm] [eWeLink] Setting power state to [off] for device [eWeSwitch1]
[28/06/2019, 2:28:27 pm] [eWeLink] Setting power state to [off] for device [eWeSwitch4]
[28/06/2019, 2:28:27 pm] [eWeLink] WebSocket was closed. Reason [1006]

: : :

[28/06/2019, 2:28:51 pm] [eWeLink] Setting power state to [on] for device [eWeSwitch4]
[28/06/2019, 2:28:51 pm] [eWeLink] Setting power state to [on] for device [eWeSwitch3]
[28/06/2019, 2:28:51 pm] [eWeLink] Setting power state to [on] for device [eWeSwitch1]

: : :

[28/06/2019, 2:29:46 pm] [eWeLink] API reported that [eWeSwitch3] is Off
[28/06/2019, 2:29:46 pm] [eWeLink] API reported that [eWeSwitch1] is Off
[28/06/2019, 2:29:46 pm] [eWeLink] API reported that [eWeSwitch4] is On

Homebridge is running on a Mojave Mac mini.

I don't see any clues to the failed switches in the homebridge debug log.

homebridge -V
0.4.50

Many errors in logs and action not always taken into account

Hello,

thanks a lot for your work ! It is really helpfull to be able to use ewelink devices through HomeKit.

I've been using your plugin for more than 6 month now, and in my case, during the last weeks, I get errors in the logs. Here under an exemple :

[6/30/2019, 1:12:43 PM] [eWeLink] WebSocket messge received:  {"action":"update","deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","userAgent":"app","sequence":"1561893162744","ts":0,"params":{"switch":"on","partnerApikey":"ac0bcf93-23b8-4448-a3la-dc315498bkd9"},"tempRec":"10005XXXXX"}
[6/30/2019, 1:12:43 PM] [eWeLink] Updating recorded Characteristic.On for [Portail ] to [true]. No request will be sent to the device.
[6/30/2019, 1:12:43 PM] [eWeLink] Setting power state to [on] for device [Portail ]
[6/30/2019, 1:12:43 PM] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","sequence":"1561893163277"}
[6/30/2019, 1:12:44 PM] [eWeLink] WebSocket messge received:  {"action":"update","deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","userAgent":"device","ts":0,"params":{"switch":"off"},"from":"device"}
[6/30/2019, 1:12:44 PM] [eWeLink] Updating recorded Characteristic.On for [Portail ] to [false]. No request will be sent to the device.
[6/30/2019, 1:12:44 PM] [eWeLink] Setting power state to [off] for device [Portail ]
[6/30/2019, 1:12:44 PM] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","sequence":"1561893164010"}
[6/30/2019, 1:13:21 PM] [eWeLink] Requesting power state for [Portail ]
[6/30/2019, 1:13:22 PM] [eWeLink] API reported that [Portail ] is Off

Any idea of the problem ?

Thank you.

Jack

Use as Garage Door Opener

I am looking to use this to open my garage door. I have a sensor attached to the garage door that will allow to detect if the door is fully closed (off) or partially open (on). The issue I am having is that within 2 seconds of opening the door another request is sent to the device. This causes the garage door to stop opening.

I have attached a log below:

[3/17/2019, 2:12:17 PM] [Garage] Setting power state to [on] for device [Garage]
[3/17/2019, 2:12:17 PM] [Garage] WebSocket messge received:  {"error":0,"deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","sequence":"1552846337411"}
[3/17/2019, 2:12:18 PM] [Garage] WebSocket messge received:  {"action":"update","deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","userAgent":"device","ts":0,"params":{"switch":"off"},"from":"device"}
[3/17/2019, 2:12:18 PM] [Garage] Updating recorded Characteristic.On for [Garage] to [false]. No request will be sent to the device.
[3/17/2019, 2:12:18 PM] [Garage] Setting power state to [off] for device [Garage]
[3/17/2019, 2:12:19 PM] [Garage] WebSocket messge received:  {"action":"update","deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","userAgent":"device","ts":0,"params":{"switch":"off"},"from":"device"}
[3/17/2019, 2:12:19 PM] [Garage] Updating recorded Characteristic.On for [Garage] to [false]. No request will be sent to the device.
[3/17/2019, 2:12:19 PM] [Garage] Setting power state to [off] for device [Garage]
[3/17/2019, 2:12:19 PM] [Garage] WebSocket messge received:  {"error":0,"deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","sequence":"1552846338947"}
[3/17/2019, 2:12:20 PM] [Garage] WebSocket messge received:  {"error":0,"deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","sequence":"1552846339493"}
[3/17/2019, 2:12:20 PM] [Garage] WebSocket messge received:  {"action":"update","deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","userAgent":"device","ts":0,"params":{"switch":"on"},"from":"device"}
[3/17/2019, 2:12:20 PM] [Garage] Updating recorded Characteristic.On for [Garage] to [true]. No request will be sent to the device.
[3/17/2019, 2:12:20 PM] [Garage] Setting power state to [on] for device [Garage]
[3/17/2019, 2:12:20 PM] [Garage] WebSocket messge received:  {"error":0,"deviceid":"1000000000","apikey":"xxxx-xxxx-xxxx-xxxx-xxxx","sequence":"1552846340460"}

Has anyone else solved this problem? This is the specific device that I have: https://www.itead.cc/smart-home/inching-self-locking-wifi-wireless-switch.html

Sonoff T1 2c issue

Thanks for the awesome plugin.

I have an odd issue with the Sonoff T1 2 channel switch. It turns on/off properly through HomeKit, but I get very strange behaviour if I try to use it the switch itself. When I try to switch it on, it usually switches on and off a couple of times, and the same when I try to switch it off. It takes multiple attempts to switch it on or off. Strangely, it only happens with the second switch (ch2). I get the same behaviour with the EWeLink app and google home, so I’m guessing it has something to do with the way the plugin confirms if the switch is on/off.

I know you don’t have one of these switches, but is there any data I can provide to help?

Thanks!

James

"error":401,"info":"user is null in local"

I can't get past this error.

[eWeLink] Server did not response with an authentication token. Response was [{"error":401,"info":"user is null in local"}]

Running on a raspberry pi.

Anyone able to help ?

Trying to get a couple of wifi smart sockets working.
Both controllable in the iPhone app.
Tried logging out of the app.
Tried changing the app version number to match the phone (3.6.1).

thanks

T1 3CH Reported as offline

Hi Installed a T1 3CH switch, but the API returns that the devices is offline at all times.

[eWeLink] Device [Main Light Switch CH 3] was reported to be offline by the API

It is currently on Firmware version 3.3.0

Dimmer dosen't work

KING-M4 dimmer (PSF-BTA-GL) does not work as dimmer (I can only turn on/off). In Ewelink application everything is ok.

Console error:

[5/29/2019, 9:16:56 PM] [eWeLink] Updating recorded Characteristic.On for [Kvadrat dnevna soba] to [true]. No request will be sent to the device.
[5/29/2019, 9:16:56 PM] [eWeLink] Setting power state to [on] for device [Kvadrat dnevna soba]
[5/29/2019, 9:16:57 PM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"xxx","apikey":"xxx","sequence":"xxx"}
[5/29/2019, 9:16:57 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"xxx","apikey":"xxx","userAgent":"device","ts":0,"params":{"
switch":"on","bright":75},"from":"device"}

Slow update

My eWelink Max takes too much time to update the status of 4 switches.
Makes home App show No response for all devices because status doesn't update on time.
Using eve App it waits for each switch showing everything is ok.
Can you help? Home App gets all confused with the delay.
Thanks in advance!

Screenshot 2019-10-15 15 43 46

WebSocket messge received: {"action":"sysmsg","deviceid":"10004f975c"

[10/15/2019, 8:34:22 PM] [eWeLink] WebSocket messge received: {"action":"sysmsg","deviceid":"10004f975c","apikey":"2dad1e2c-a60c-45a8-acde-25bf81b4ccdd","ts":0,"params":{"online":false}}
[10/15/2019, 8:34:29 PM] [eWeLink] WebSocket messge received: {"action":"sysmsg","deviceid":"10004f975c","apikey":"32debf16-4f3b-475d-810c-ddce2a804c02","ts":0,"params":{"online":true}}
[10/15/2019, 8:34:29 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10004f975c","apikey":"2dad1e2c-a60c-45a8-acde-25bf81b4ccdd","userAgent":"device","d_seq":11,"ts":0,"params":{"sledOnline":"on"},"from":"device"}
[10/15/2019, 8:34:29 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10004f975c","apikey":"2dad1e2c-a60c-45a8-acde-25bf81b4ccdd","userAgent":"device","ts":0,"params":{"switch":"on","fwVersion":"3.0.1","rssi":-60,"staMac":"CC:50:E3:02:44:D2","startup":"stay","init":1,"pulse":"off","pulseWidth":500},"from":"device"}
[10/15/2019, 8:34:29 PM] [eWeLink] Updating recorded Characteristic.On for [Bedroom Corridor Light] to [true]. No request will be sent to the device.
[10/15/2019, 8:34:29 PM] [eWeLink] Setting power state to [on] for device [Bedroom Corridor Light]
[10/15/2019, 8:34:29 PM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"10004f975c","apikey":"2dad1e2c-a60c-45a8-acde-25bf81b4ccdd","sequence":"1571142869297"}
[10/15/2019, 8:35:06 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"1000667ea5","apikey":"2dad1e2c-a60c-45a8-acde-25bf81b4ccdd","userAgent":"device","ts":0,"params":{"sensorType":"ERROR_TYPE","currentHumidity":"unavailable","currentTemperature":"unavailable"},"from":"device"}
[10/15/2019, 8:35:06 PM] [eWeLink] Updating recorded Characteristic.CurrentTemperature for [Tv] to [unavailable]. No request will be sent to the device.
[10/15/2019, 8:35:06 PM] [eWeLink] Updating recorded Characteristic.CurrentRelativeHuniditgy for [Tv] to [unavailable]. No request will be sent to the device.
[10/15/2019, 8:35:06 PM] [eWeLink] setting temperature: 0

503 Service Temporarily Unavailable

Dear people,

I got the following errors since yesterday evening. Is it a problem of my configuration or is it a problem on ewelink servers?

Regards

[2019-11-14 13:40:50] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body=

<title>503 Service Temporarily Unavailable</title>

503 Service Temporarily Unavailable


openresty ] [2019-11-14 13:40:50] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body= <title>503 Service Temporarily Unavailable</title>

503 Service Temporarily Unavailable


openresty ] [2019-11-14 13:40:50] [eWeLink] An error was encountered while requesting a list of devices while interrogating power status. Error was [Error: Parsing error : Unexpected token < in JSON at position 0, body= <title>503 Service Temporarily Unavailable</title>

503 Service Temporarily Unavailable


openresty ]

Problem inverter blind

I added this plugin recently, in the App ewelink I only have three shutter switches, these appear as a switch therefore on up and off lowers the shutter, but not through stopping at other midpoints, the physical switch in the same way not Let me stop at cuerta height, when pausing is going directamnte to where HomeKit send, ON/OFF

Cannot read property 'pollerperiod' error

Why is it giving me pollerperiod error? Even if I do add pollerperiod with value in as "0" or "1", it still complain. My config is as per example.

Load homebridge-blynk.Blynk [9/3/2019, 8:14:10 AM] TypeError: Cannot read property 'pollerperiod' of null at new Blynk (/usr/lib/node_modules/homebridge-blynk/dist/index.js:72:40) at Server._loadDynamicPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:358:30) at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:92:8) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:59:10) at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Initialization Skipped

Hi guys,

Getting this error while booting up
[2019-5-25 10:01:23] [homebridge-eWeLink.eWeLink] Initialization skipped. Missing configuration data. Setup Payload: X-HM://0023NJY59N94F

I ran the code sudo npm -g install homebridge-ewelink-max then changed my config file to whats below, any ideas? Might look a mess on here but jsonlint verifies it as valid.

{
  "bridge": {
    "name": "Toms Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "111-22-333"
  },
  
  "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
  "ports": {
    "start": 52100,
    "end": 52500,
    "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
  },

  "platforms": [
    {
	"platform": "Camera-ffmpeg",
	"cameras": [{
		"name": "Drive Camera",
		"videoConfig": {
			"source": "-rtsp_transport tcp -re -i rtsp://192.168.1.240:554/user=admin&password=&channel=1&stream=0.sdp?",
			"maxStreams": 2,
			"maxWidth": 1280,
			"maxHeight": 720,
			"maxFPS": 20
		}
              },
                {
                    "name": "Garage Camera",
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://192.168.1.240:554/user=admin&password=&channel=3&stream=0.sdp?",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 20
		}
              },
            {            
            "platform" : "eWeLink",
            "name" : "eWeLink",
            "email" : "HIDDENEMAIL",
            "password" : "HIDDENPW",
            "imei" : "136E1790-E312-466D-AAD1-50F861F94F6E"
               }
	]
}
  ]
} 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.