Giter VIP home page Giter VIP logo

homebridge-hikconnect's Introduction

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.

verified-by-homebridge

Buy Me A Coffee

Features

  • For now only unlock a lock connected to Hikvision outdoor station.

This plugin does not add Camera entity with live view from Hikvision stations (yet).

Troubleshooting

Unable to login

Please make sure you added account and password fields to the config. There is a user interface for adding this info if you are using Homebridge, for HOOBS you need to adjust the configuration manually.

If you added the correct account and password and you still cannot login, you can try to set the API URL to one of the following URL:

homebridge-hikconnect's People

Contributors

judge avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

dotomore

homebridge-hikconnect's Issues

Doorbeell DS-KB8112-IM

I have a question if this doorbell model will work with this plugin? After installing the plugin, the system login correctly, unfortunately I do not see an accessory in homebridge and homekit.

Error: Login Failed

Hi, I'm getting the error Login Failed all of a sudden. I am able to successfully login to www.hik-connect.com manually so am unsure as to why this has just started occurring;

[3/31/2022, 6:06:01 PM] [HikConnect] Error: Error: Login failed, wrong account or password
at HikConnectPlatform._loginToHikConnect (/homebridge/node_modules/homebridge-hikconnect/src/index.js:49:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at HikConnectPlatform.discoverDevices (/homebridge/node_modules/homebridge-hikconnect/src/index.js:30:7)

I'm happy to send further logs if needed and noticed that there was an issue raised for this late last year and have tried what is suggested there to resolve, but no luck

Unable to login

Hello,

I'm getting the below error when trying to connect my Hik system.

Error: Error: Login failed, wrong account or password
at HikConnectPlatform._loginToHikConnect (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/homebridge-hikconnect/src/index.js:49:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at HikConnectPlatform.discoverDevices (/var/lib/homebridge/node_modules/.pnpm/[email protected]/node_modules/homebridge-hikconnect/src/index.js:30:7)

My credentials work at https://www.hik-connect.com/devices/page

Can you help?

All locks unresponsive

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:

  • Restarted the Rasberry Pi

  • Restarted the HikVision Intercom

  • Logged out of the HikConnect account via homebridge and logged back in. The locks are immediately exposed but still unresponsive

  • Tried API URL : "https://www.hik-connectru.com" and “ https://ius.hik-connect.com/” instead of leaving it blank. I receive the below error with those URLs (no error if API URL is blank)

"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

Other types of devices

Hello. Is it possible to add other types of devices connected to the hikconnect cloud to your project? I am very interested in the security panel and the sensors connected to it. I have an AX Pro hub to which I connect leak detectors and door open sensors, as well as a relay, it would be great to throw it all into the Homekit. There is also a calling panel to which I would like to see in the Home app. Thanks for your work.

Can't see lock in Homekit

Hi Judge, thanks for making this plugin. I've been renovating a property and put in a Hikconnect intercom. Before we moved in, I installed the plug in on the Hoobs set up in our old house, and the lock appeared straight away. I couldn't move the Hoobs bridge in HomeKit to the new house, so reset it and started again.

Now, the plugin appears to be logging in to hikconnect ok (there are no errors in the log), but I can't see the lock in HomeKit. I've copied my config over from a back up I had of it.

I must be doing something working, but can't figure out what. Any help would be greatly appreciated!

Thanks

John

DS-KV6113-WPE1 Unresponding

Hi Judge

Thanks for this work.

Sorry to disturb,
I'm trying to configure a DS-KV6113-WPE1 doorbell. My doorbell is Online on https://ieu.hik-connect.com.
The lock/unlock is working well from the Hikconnect app.
image

I install your plugin on homebridge (V1.6), and my doorbell is found with this serv https://ieu.hik-connect.com
image

But it is unresponding, from Home App, and from Homebridge Accessories.

I don't understand what i'm doing wrong. An idea ?
Thanks a lot

One Lock showing out of two

Hey I thought this is a better place to present the issue.

I have one lock of the two working but more showing from my gen 2 intercom as well as multiple other locks which seem to match the number of cameras I have in my nvr ie 9.

Wondering what I need to do to make the second lock work. Thanks
Screen Shot 2021-11-08 at 10 59 37 am
s

No locks showing on Hik outdoor Gen 1

Hey mate,
I am not sure if this supposed to work on the gen 1.
The login is successful. The logs says initialising and there are no errors. However it picks up no accessories which there should be 2 if it works.
I have sent the output from the url as before to reddit via dm
Thanks!

ABUS Link Station

Hi,
I know it’s not really an issue but does anyone know if this is working with Hikvision OEM doorbells (ABUS, Grundig, Annke, etc) as well?
If yes, what could be the api url for these brands?
Thanks

Error: Login failed

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": "[email protected]", ---- my email login hikconnect
"password": "xxxxxx",  ----  my passw hikconnect
"_bridge": {
    "username": "0E:88:CE:41:48:1A",
    "port": 51096
},
"platform": "HikConnect"

different cloud address

I’m able to connect to https://www.hik-connect.com with my login/pwd but there is no any device connected there in the cloud.
We have in Russia different cloud address. It is https://www.hik-connectru.com and when I’m entering there I can see my device (KH-6320WTE) with it serial no. and IP.
I suppose on this reason I don’t have any accessory in homebridge and in Homekit.

[1/18/2022, 5:52:49 PM] [HikConnect] Initializing HikConnect platform...
[1/18/2022, 5:52:49 PM] [HikConnect] Initializing child bridge 0E:F8:4B:9E:2C:3C
[1/18/2022, 5:52:50 PM] [homebridge-hikconnect] Launched child bridge with PID 25151
[1/18/2022, 5:52:50 PM] Registering platform 'homebridge-hikconnect.HikConnect'
[1/18/2022, 5:52:50 PM] [homebridge-hikconnect] Loaded homebridge-hikconnect v1.1.1 child bridge successfully
[1/18/2022, 5:52:50 PM] Loaded 0 cached accessories from cachedAccessories.0EF84B9E2C3C.
[1/18/2022, 5:52:51 PM] Homebridge v1.3.9 (HAP v0.9.8) (homebridge-hikconnect) is running on port 45908.

I tried to register another account on EU address but there is no possibility to share device from one cloud to another.
Is it possible to modify your plugin with ability of the cloud address changing?
Thank you.

Ins't possible migrate the new Hikvision Doorbell add-on from HA to Homebridge?

At February 9th, HomeAssistant developers seems to discovered a lot of new possibilities to integrate Hikvision doorbells to HomeAssistant. Isn't it possible to migrate to HomeBridge like HikConnect too? Or at least detect when a button was pressed to trigger a webhook from Scrypted to make the doorbell rings?

https://community.home-assistant.io/t/hikvision-doorbell-videointercom-integration/532796

Tks and good job, HikConnect has saved my live!

Error: HikConnect needs account and password specified in config

how to configure username and password
there is no spot for username and password, should i add it manually ?

Thank you in advance

5/2/2022, 5:54:03 PMHikconnect BridgeHikConnectERRORError: HikConnect needs account and password specified in config
5/2/2022, 5:54:03 PMHikconnect BridgeBridge is running on port 51846.
5/2/2022, 6:07:02 PMHikconnect Bridge stopping
5/2/2022, 6:07:02 PMHikconnect BridgeERRORdnsmasq: no process found
5/2/2022, 6:07:04 PMHikconnect BridgeERRORdnsmasq: no process found
5/2/2022, 6:30:16 PMbroadlinkrmprobridge stopping
5/2/2022, 6:30:22 PMBroadlink Rm Pro Bridge starting
5/2/2022, 6:38:22 PMeWeLink Bridge stopping
5/2/2022, 6:38:22 PMBroadlink Rm Pro Bridge stopping
5/2/2022, 6:38:32 PMWARNINGservice restart command received
5/2/2022, 6:38:43 PMhub is running on port 80
5/2/2022, 6:45:34 PMWARNINGdevice shutdown command received
5/2/2022, 6:54:27 PMhub is running on port 80
5/2/2022, 7:06:20 PMHikconnect Bridge starting
5/2/2022, 7:06:41 PMHikconnect BridgeLoaded plugin 'homebridge-hikconnect'
5/2/2022, 7:06:41 PMHikconnect BridgeLoading 1 platforms...
5/2/2022, 7:06:41 PMHikconnect BridgeHikConnectERRORError: HikConnect needs account and password specified in config
5/2/2022, 7:06:42 PMHikconnect BridgeBridge is running on port 51826.

Call doorbell on local network instead going through the hikconnect cloud

Hi,

thanks for the great module, I recently bought a Hikvision doorbell and integrating the buzzer into HK is a great possibility for me (i can remove the shelly that has been proxying the relay signal from doorbell to the outside-gate 🙂 )

However i just discovered you are calling the remote hikvision api to control the doorbell relay. And I found a command that can be used to do the same action - but via local network 🙂 (btw my outdoor station is DS-KV6113-WPE1)

 curl -i --digest -u admin:pass -X PUT -d '<RemoteControlDoor><cmd>open</cmd></RemoteControlDoor>' http://192.168.0.117/ISAPI/AccessControl/RemoteControl/door/1
HTTP/1.1 401 Unauthorized
Date: Wed, 01 Dec 2021 23:57:40 GMT
Server: webs
Content-Length: 235
Connection: close
X-Frame-Options: SAMEORIGIN
Cache-Control: no-store
Pragma: no-cache
WWW-Authenticate: Digest qop="auth", realm="DS-25EA0C7A", nonce="xxxx=", stale="false", opaque="", domain="::"
Content-Type: application/xml


HTTP/1.1 200 OK
Date: Wed, 01 Dec 2021 23:57:40 GMT
Server: webs
Content-Length: 295
Connection: close
X-Frame-Options: SAMEORIGIN
Cache-Control: no-store
Pragma: no-cache
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8"?>
<ResponseStatus version="1.0" xmlns="http://www.std-cgi.com/ver10/XMLSchema">
<requestURL>/ISAPI/AccessControl/RemoteControl/door/1</requestURL>
<statusCode>1</statusCode>
<statusString>OK</statusString>
<subStatusCode>ok</subStatusCode>
</ResponseStatus>

My idea of a smarthome is not to be dependent on an internet connection - without internet, remote control is obviously lost, but when you are at home, everything should work as usual.

So this is more like a feature idea/proposal, how to make your module better. PLus i've read in another issue that you are calling some undocumented reverse-engineered api - so they can change it anytime and this module will break :/

I haven't developed anything for HB yet, but if i find some time, i will try to help and send you a PR 🙂

Not added to the Home App

I can see the door lock in Homebridge (and it works if I click on it), but it is not added to the Home App. I have already removed the bridge from the Home App and reinstalled the plugin.. I don't see it in the Home App
Снимок экрана 2022-07-02 в 18 05 42

Add ability to hide lock

By default doorbell exposes the lock, regardless it is used or not. So i have 2 lock while only 1 is real...
Any option to hide one?

Error: Failed to get devices

First of all, thank you for creating this plugin!
I'm having an issue where it says:
Error: Failed to get devices
at HikConnectClient.getDevices (/usr/local/lib/node_modules/homebridge-hikconnect/src/client/index.js:65:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at HikConnectPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-hikconnect/src/index.js:28:23)

DS-KB8113-IME1

Hi!
Can you add support of Hikvision DS-KB8113-IME1 doorbell? It has door lock functionality. Please see debug.

{"connectionInfos":{"J18155657":{"localIp":"10.0.1.85","netIp":"185.169.101.85","localRtspPort":0,"netRtspPort":0,"localCmdPort":9010,"netCmdPort":0,"localStreamPort":9020,"netHttpPort":0,"localHttpPort":0,"netStreamPort":0,"netType":3,"wanIp":"185.169.101.85","upnp":false}},"cameraInfos":[{"cameraId":"5f3dc009914f457c8bf6a0951b995f8f","cameraName":"Main Door Station","channelNo":1,"cameraCover":"https://irus.ezvizru.com/assets/imgs/public/homeDevice.jpeg","deviceSerial":"J18155657","isShow":1,"videoLevel":0,"videoQualityInfos":[{"streamType":2,"videoLevel":0},{"streamType":1,"videoLevel":2}],"streamBizUrl":"biz=1","vtmInfo":{"domain":"vtmrushw.ezvizru.com","externalIp":"vtmrushw.ezvizru.com","internalIp":null,"port":10554,"forceStreamType":0,"isBackup":0},"deviceChannelInfo":{"channelDeviceSerial":null,"channelNo":1,"privacyStatus":0,"powerStatus":0,"globalStatus":0,"signalStatus":1},"cameraShareInfo":{"isShared":1,"permission":-1,"inviterName":"jzmola"}}],"p2pInfos":{"J18155657":[{"ip":"162.62.18.46","port":6000}]},"alarmNodisturbInfos":{"J18155657":{"alarmEnable":0,"callingEnable":0}},"kmsInfos":{"J18155657":{"secretKey":"2af7653315ad7ecdebfe2217266a9d0f369e5c324c77a8a34c14c6a50aec7afd","version":"101"}},"timePlanInfos":{"J18155657":[{"deviceSerial":"J18155657","channelNo":0,"type":2,"enable":0,"weekPlans":[{"weekDay":"0","timePlan":[]},{"weekDay":"1","timePlan":[]},{"weekDay":"2","timePlan":[]},{"weekDay":"3","timePlan":[]},{"weekDay":"4","timePlan":[]},{"weekDay":"5","timePlan":[]},{"weekDay":"6","timePlan":[]}]},{"deviceSerial":"J18155657","channelNo":0,"type":4,"enable":-1,"weekPlans":[{"weekDay":"0","timePlan":[{"startTime":"-1:65","endTime":"-1:65"}]},{"weekDay":"1","timePlan":[]},{"weekDay":"2","timePlan":[]},{"weekDay":"3","timePlan":[]},{"weekDay":"4","timePlan":[]},{"weekDay":"5","timePlan":[]},{"weekDay":"6","timePlan":[]}]},{"deviceSerial":"J18155657","channelNo":0,"type":5,"enable":-1,"weekPlans":[{"weekDay":"0","timePlan":[]},{"weekDay":"1","timePlan":[]},{"weekDay":"2","timePlan":[]},{"weekDay":"3","timePlan":[]},{"weekDay":"4","timePlan":[]},{"weekDay":"5","timePlan":[]},{"weekDay":"6","timePlan":[]}]},{"deviceSerial":"J18155657","channelNo":0,"type":7,"enable":-1,"weekPlans":[{"weekDay":"0","timePlan":[]},{"weekDay":"1","timePlan":[]},{"weekDay":"2","timePlan":[]},{"weekDay":"3","timePlan":[]},{"weekDay":"4","timePlan":[]},{"weekDay":"5","timePlan":[]},{"weekDay":"6","timePlan":[]}]},{"deviceSerial":"J18155657","channelNo":0,"type":200,"enable":-1,"weekPlans":[{"weekDay":"0,1,2,3,4,5,6","timePlan":[]}]}]},"statusExtInfos":{"J18155657":{"upgradeAvailable":0}},"meta":{"code":200,"message":"操作成功","moreInfo":{}},"page":{"offset":0,"limit":100,"totalResults":0,"hasNext":false},"statusInfos":{"J18155657":{"diskNum":1,"diskState":"0---------------","globalStatus":1,"pirStatus":0,"isEncrypt":0,"upgradeAvailable":0,"upgradeProcess":0,"upgradeStatus":-1,"alarmSoundMode":0,"optionals":{"latestUnbandTime":"1658847519032","Remind_Way":"-1","BodyDetectTimeInterval":"-1","AlgorithmInfo":"[{"SubType":"0","channel":1,"Value":"3"}]","Auto_night_vision":"-1","wanIp":"185.169.101.85","CustomVoice":"[]","Route_LinkageStatus":"0","hfullViewURL":"","daylightSavingTime":"0","Battery_WorkStatus":"{"KeepAlive":0,"WorkTime":0}","Alarm_DetectHumanCar":"{ "type": 0 }","tzCode":"146","CustomVoice_Volume":"{ "volume": 0 }","diskHealth":"-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1","httpPort":"0","OnlineStatus":"2","timeZone":"UTC+05:00","cmdPort":"0","ROI":"{ "xCoord": "-1.00", "yCoord": "-1.00", "width": "-1.00", "height": "-1.00" }","upnpMappingMode":"0","diskCapacity":"32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1","Temperature_Threshold":"-1","Alarm_Interval":"-1","domain":"J18155657","talkMode":"{ "mode": 1 }","NightVision_Model":"{ "graphicType": -1, "luminance": -1 }","timeFormat":"1","ICR":"1","superState":"0","voiceIndex":"0","latestUnbindTime":"1658847519032"}}},"wifiInfos":{"J18155657":{"netName":"","netType":null,"address":null,"mask":null,"gateway":null,"signal":0,"ssid":null}},"switchStatusInfos":{"J18155657":[{"deviceSerial":"J18155657","channelNo":0,"type":2,"enable":true},{"deviceSerial":"J18155657","channelNo":0,"type":7,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":10,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":15,"enable":true},{"deviceSerial":"J18155657","channelNo":0,"type":22,"enable":true},{"deviceSerial":"J18155657","channelNo":0,"type":200,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":202,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":300,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":301,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":302,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":303,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":304,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":305,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":602,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":603,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":604,"enable":false},{"deviceSerial":"J18155657","channelNo":0,"type":700,"enable":false}]},"deviceInfos":[{"name":"Домофон","deviceSerial":"J18155657","fullSerial":"DS-KB8113-IME10120211203RRJ18155657","deviceType":"DS-KB8113-IME1","devicePicPrefix":"https://devpic.ezvizlife.com/device/image/DVR/","version":"V2.2.51 build 220507","supportExt":"{"45":"1","46":"1","69":"1","26":"4","191":"1","192":"1","350":"1","154":"0","232":"0","233":"0","234":1,"333":"0","30":"0","52":"2","31":"0","97":"1","10":"1","77":"1","78":"1","13":"0","59":"1","241":"1","165":"1","1":"1","2":"1","145":"1","288":"0","3":"0","400":"1","5":"0","401":"1","6":"0","7":"0","8":"0","9":"0","61":"1","84":"1"}","status":1,"userDeviceCreateTime":"2022-07-26 14:59:36","casIp":"cas.ezvizru.com","casPort":6500,"channelNumber":1,"hik":true,"deviceCategory":"COMMON","deviceSubCategory":"VIS","ezDeviceCapability":"{"262":"1","175":"1","263":"0","264":"1","232":"0","265":"1","233":"0","266":"0","234":1,"267":"1","289":"1","30":"0","31":"0"}","customType":"DS-KB8113-IME1","offlineTime":"2022-09-19 17:14:37","offlineNotify":0,"accessPlatform":true,"deviceDomain":"J18155657","instructionBook":"http://devpic.ezvizlife.com/device/image/DS-KB8113-IME1/instruction.jpeg","deviceShareInfo":{"isShared":1,"permission":1,"inviterName":"jzmola"},"feature":null,"riskLevel":0,"offlineTimestamp":1663607677000}]}

Camera

Hi, you say you have not added camera (yet)
So you think it's possible? We also use the API in home assistant , but I checked the Hikconnect protocol, and couldn't find any API/command to retrieve the camera feed...

I have only found options to indeed unlock, or call history or send ISAPi commands trough Hikconnect or abort/cancel/answer call... But no camera feed...

Have you found something then?

Problem with entering account/password

Hi, i’ve added the plugin into hoobs, but as per the log I did not enter the account and password into the config correctly, so that the lock will not appear in homekit.
Can sb advise (preferably in detail) how to enter the account and password within the config?

Thanks in advance.
PS: I am sure there is no other issue, because I already got it working, but after a problem with my himebridge I had to remove the bridge and setup all plugins again and currently I don’t recall how I managed to config the account/password within the hikconnect plugin anymore :/

Expose Hik lock as garage/gate

Hey guys,
Wondering if anyone has been able to expose the locks so that it automatically shows up in CarPlay when approaching home like a normal garage/gate accessory.
If it doesnt I am not sure whether Siri allows control of an accessory verbally if you are using CarPlay at the time.
Thanks

Two Homebridge with same Hik connect intercom locks

Hey mate,
Just a question.

If I setup to separate Homes in Apple with their own separate instances of homebridge, should I be able use the plugin to control the same hikconnect account and locks.
Hm just thinking as I type, maybe its better to share the lock with a second hik account for the second home.

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.