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 1 forks source link

Error: Login failed #3

Closed rbourg55 closed 2 years ago

rbourg55 commented 2 years ago

homebridge-hikconnect] Error: Error: Login failed, wrong account or password at HikConnectPlatform._loginToHikConnect (/usr/lib/node_modules/homebridge-hikconnect/src/index.js:46:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at HikConnectPlatform.discoverDevices (/usr/lib/node_modules/homebridge-hikconnect/src/index.js:27:7)

"account": "rxxxxx@yaxxxx.ru", ---- my email login hikconnect
"password": "xxxxxx",  ----  my passw hikconnect
"_bridge": {
    "username": "0E:88:CE:41:48:1A",
    "port": 51096
},
"platform": "HikConnect"
judge commented 2 years ago

Hello! Could you please check if you can login to hik-connect through the website? https://www.hik-connect.com Sometimes if there are too many login attempts then you'll end up getting a Captcha.

rbourg55 commented 2 years ago

Hi! I changed access to www.hik-connect.com/ but [24.11.2021, 14:58:00] Homebridge v1.3.8 (HAP v0.9.7) (homebridge-hikconnect) is running on port 40074. [DS-KV8113-WME1/1/0@@Model] characteristic value expected string and received undefined [DS-KV8113-WME1/1/0@@Firmware Revision] characteristic value expected string and received undefined [DS-KV8113-WME1/1/1@@Model] characteristic value expected string and received undefined [DS-KV8113-WME1/1/1@@Firmware Revision] characteristic value expected string and received undefined

judge commented 2 years ago

That is really strange. So it seems now the script is able to log in but there is something wrong with the data. Could you please help me debugging the issue?

hijacker123 commented 2 years ago

Is there a solution for the issue above available ?

I am receiving similar messages after start together with a Hikvision Doorbell DS-KV8113-WME.

[09/01/2022, 11:37:27] Homebridge v1.3.9 (HAP v0.9.8) (Homebridge ABB6) is running on port 51761
[09/01/2022, 11:37:29] [homebridge-hikconnect] Launched child bridge with PID 1702
[09/01/2022, 11:37:30] Registering platform 'homebridge-hikconnect.HikConnect'
[09/01/2022, 11:37:30] [homebridge-hikconnect] Loaded homebridge-hikconnect v1.1.0 child bridge successfully
[09/01/2022, 11:37:30] Loaded 1 cached accessories from cachedAccessories.0E32ADD5B6B3.
[09/01/2022, 11:37:30] Homebridge v1.3.9 (HAP v0.9.8) (homebridge-hikconnect) is running on port 57564.
[09/01/2022, 11:37:31] [homebridge-hikconnect] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://git.io/JtMGR for more info.
[09/01/2022, 11:37:31] [homebridge-hikconnect] This plugin generated a warning from the characteristic 'Firmware Revision': characteristic value expected string and received undefined. See https://git.io/JtMGR for more info.

'Model string' = DS-KV8213-WME1 'Firmware version string' = V2.2.53 build 210907

judge commented 2 years ago

Could you help me debugging this issue with the steps I described in the previous comment? I got no response from @rbourg55 :(

hijacker123 commented 2 years ago

Could you help me debugging this issue with the steps I described in the previous comment? I got no response from @rbourg55 :(

I would like to remove my personal serial information and IP-Adresses...is this OK, still suitable ?

judge commented 2 years ago

Thanks! I'll have a look soon!

judge commented 2 years ago

I just published a new version of the package, you should not see the warnings anymore. But it should have worked for you even with the warnings, so the question is, is the plugin working correctly for you?

hijacker123 commented 2 years ago

I just published a new version of the package, you should not see the warnings anymore. But it should have worked for you even with the warnings, so the question is, is the plugin working correctly for you?

I updated to v1.1.1

judge commented 2 years ago

That is strange. You only have 1 lock, right? I'll try to have a look soon with your JSON.

judge commented 2 years ago

I just checked the JSON and it seems to me you should have only 1 lock. Could you try remove the devices and restart homebridge? If you go the Homebridge Settings (on the UI) there is a section called "Manage Cached Accessories" and then "Remove Single Cached Accessory".

dbrownhill commented 2 years ago

I'm seeing the following single log message, however nothing ever seems to happen. No accessories are added, no additional log messages, nothing.

[2/11/2022, 9:24:32 AM] [HikConnect] Initializing HikConnect platform...

....I'll capture the JSON, and send it to you.

judge commented 2 years ago

Hi @dbrownhill ,

I checked the JSON and it is indeed no getting any locks, your JSON does not have any "lockNum" key which this plugin is searching for. Are you sure your devices have lock functionality?

judge commented 2 years ago

I'll close this, please open a new issue if needed.

dbrownhill commented 2 years ago

Yeah, still doesn’t work. Thanks though.

Best regards, David


From: Tamás Bíró @.> Sent: Wednesday, March 23, 2022 9:22:18 AM To: judge/homebridge-hikconnect @.> Cc: dbrownhill @.>; Mention @.> Subject: Re: [judge/homebridge-hikconnect] Error: Login failed (Issue #3)

Closed #3https://github.com/judge/homebridge-hikconnect/issues/3.

— Reply to this email directly, view it on GitHubhttps://github.com/judge/homebridge-hikconnect/issues/3#event-6292585514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARCX774GVDWUD5IHZ57FHR3VBMZKVANCNFSM5IVHRW2Q. You are receiving this because you were mentioned.Message ID: @.***>