bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

HB - randomly No respone in homekit app #484

Open JacekKac opened 1 year ago

JacekKac commented 1 year ago

HB running with few plugins one of them is homebridge-ewelink v10.4.0. Few sonoff devices linked, everythink is running OK but randomly homekit app gives no responding for this accessories - in the same time they are working in web panel of homebride and i can use them. After restarting homebridge devices are once again responding and working ok also in homekit app.

Any ideas how to debug/fix this ?

p.s. at the same time other plugins are working fine in home app

Logs:

nothing special in the logs sonoff devices are up and running (reporting)

config: { "name": "eWeLink", "username": "...", "password": "...", "mode": "auto", "debug": false, "language": "en", "ignoredHomes": "6208df3c1882c9000992d8fb", "platform": "eWeLink" },

Environment OS: PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

Software: [v1.6.0]

Node:v14.21.3

npm: 6.14.18

Process Supervisor systemd

Themaster312 commented 1 year ago

Same here with Node 18.16

Themaster312 commented 1 year ago

I have Downgrade Homebridge to 1.5.1 than its works

JacekKac commented 1 year ago

@Themaster312 issues also with ewlink plugin ?

Themaster312 commented 1 year ago

Yes

Themaster312 commented 1 year ago

I have downgrade my Homebridge to 1.5.1 and it works

Themaster312 commented 1 year ago

if someone gets it running with 1.6 write here then I can do the update again

bwp91 commented 1 year ago

i am running homebridge 1.6 with the plugin fine šŸ˜„

Themaster312 commented 1 year ago

I'm running 1.6 for 2 hours or until a restart and 1.5.1 has been running for 2 days now

I just don't know why it's like that for me, there are no errors, nothing

bwp91 commented 1 year ago

can you post your config? please hash out %%% any emails and passwords etc

Themaster312 commented 1 year ago

{ "bridge": { "name": "Homebridge D734", "username": "0E:11:F7:75:D4:ED", "port": 51792, "pin": "435-22-266", "advertiser": "ciao" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8681, "auth": "form", "theme": "auto", "tempUnits": "c", "lang": "auto", "platform": "config" }, { "name": "eWeLink", "username": "ā€¦.", "password": ā€žā€¦ā€¦", "mode": "auto", "debug": false, "language": "en", "platform": "eWeLink" } ] }

bwp91 commented 1 year ago

oh so a pretty standard config šŸ§

Themaster312 commented 1 year ago

Yes and 39 devices are also loaded and either run for 2 hours or after a restart there is no response ,in Homebridge ist works but everything just doesn't work in the HomeKit app After Thies Time of a restart

bwp91 commented 1 year ago

the issue could be down to many reasons so what i suggest may work for one but not another. (disclosure!)

if you go to the homebridge settings what do you have as the mDNS advertiser?

Themaster312 commented 1 year ago

Ciao as advertiser

Themaster312 commented 1 year ago

and after a restart all are without response, if I empty the cache then everything goes again for the time x

JacekKac commented 1 year ago

i am using avahi, it could be connected to 1.6 code because i used < 1.6 it earlier without problems, not sure the exact dates of upgrade/problems but could be worth of checking

bwp91 commented 1 year ago

just wanted to initially check that you are using a different ewelink account credentials in the plugin compared to the ewelink app?

if you use the same in both places then stuff is gonna go wrong

JacekKac commented 1 year ago

As i said plugin is working in homebridge UI addon even if HomeKit shows No responding. In my case its not connected with configuration

bwp91 commented 1 year ago

yeah alright iā€™m just trying to rule stuff out first

monkeycatdog commented 9 months ago

Have something similar, Time to time success but there is an error in the logs

[9/12/2023, 12:07:58 AM] [eWeLink] [Kitchen lighting ] device update failed as request timeout [504] at default.sendUpdate (file:///usr/local/lib/node_modules/homebridge-ewelink/lib/connection/ws.js:334:19) at default.sendUpdate (file:///usr/local/lib/node_modules/homebridge-ewelink/lib/connection/ws.js:341:15)