judge / homebridge-hikconnect

A Homebridge plugin to communicate with Hikvision smart doorbells via Hik-Connect cloud and allows lock to be unlocked. It exposes doorbell locks as a lock accessories to Homekit.
MIT License
18 stars 2 forks source link

All locks unresponsive #18

Closed jonathan337 closed 1 year ago

jonathan337 commented 1 year ago

Hi there!

Firstly, thanks for your work on this plug-in. I have been using this for months.

All of a sudden, around 2-3 days ago both my locks stopped responding. Nothing was changed on the rasberry pi. I have:

"Error: Login failed, wrong account or password

at HikConnectPlatform._loginToHikConnect (/var/lib/homebridge/node_modules/homebridge-hikconnect/src/index.js:49:13)

at processTicksAndRejections (node:internal/process/task_queues:95:5)

at HikConnectPlatform.discoverDevices (/var/lib/homebridge/node_modules/homebridge-hikconnect/src/index.js:30:7)"


I'm extremely confused because this has been working flawlessly for almost two months and all these issues popped up out of the blue. Any help will be really appreciated.

I can provide any required logs, just let me know

I am also available on discord @jonathan_337

judge commented 1 year ago

Hi Jonathan! Do you see anything in the homebridge logs when you try to trigger the unlock in the Home app?

jonathan337 commented 1 year ago

Unfortunately I don't see anything whenever I trigger the unlocks in the logs. For some reason, it started back working last night and just stopped again today and says "no response". The logs pretty much stay looking like the attached photo.

Screenshot 2023-01-10 at 1 53 11 PM
jonathan337 commented 1 year ago

After some more testing, the locks work fine via the “Accessory” tab on Homebridge directly but they are unresponsive within HomeKit itself.

judge commented 1 year ago

It seems to me it's a HomeKit issue, not homebridge or the plugin. Are you able to unlock it when you are home? Did you maybe upgraded to the "new architecture" of HomeKit? I heard people have lot of issues since then.

jonathan337 commented 1 year ago

I believe I have found the issue! I am not sure if Amazon did an upgrade to the Eeros or what changed - but it seems that the ports were being blocked. I have the Amazon Eero mesh system. I opened the port for Homebridge using the server's IP address and Homebridge's ports and so far, it has been working as it should all day.

I believe port forwarding needed to be done! Thanks so much for your time.

jonathan337 commented 1 year ago

Ok so update - the locks became non-responsive again but only within HomeKit, it works fine in HomeBridge. Any tips on fixing this? It seems to fix itself every time I reboot my internet for a shortly period then goes back unresponsive.

judge commented 1 year ago

What about other devices connected through Hombridge? Do they get unresponsive or is it only the locks? It is very much likely that your network do this.

jonathan337 commented 1 year ago

I believe I was able to identify the issue. I downgraded NodeJS from v19 to v18 and that seems to have solved the problem. I have no idea why that was causing it, but thankfully it's been stable for the last few days.

judge commented 1 year ago

I'm glad that it worked out for you! Is it still working? If yes, then I need to check the plugin with Node19. :)

eumanecs commented 1 year ago

Hi i dont see the Hikvision lock as accessory after installing plugin and providing credentials, doe the plugin support acces control device DS-K1T501SF?

judge commented 1 year ago

Hello, please follow this guide so I can see your device's reponses: debugging guide

gytislaz commented 10 months ago

@jonathan337 is it still stable for you? I have exactly the same issue with hikconnect working through homekit for some time only when i restart my raspberry. Then it stops being responsive until next restart.

I currently use Node.js Version: v18.16.0, can you specify yours?