Giter Club home page Giter Club logo

Comments (16)

judge avatar judge commented on July 18, 2024

Hello,
Did you add the account and password fields to the configuration of the plugin? If you are using Homebridge then a popup should appear on installation asking for these info. If you using HOOBS you need to add these to the configuration manually.

from homebridge-hikconnect.

djw8625 avatar djw8625 commented on July 18, 2024

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

Then everything should be fine on the plugin side. If you log in to hik-connect.com with your browser, can you access this URL? It should return a big JSON file.
If you can, could you paste your config file? But please remove the account/password values. :)

from homebridge-hikconnect.

djw8625 avatar djw8625 commented on July 18, 2024

Here you go :-)

{"connectionInfos":{"F35385585":{"localIp":"192.168.40.86","netIp":"82.19.164.15","localRtspPort":0,"netRtspPort":0,"localCmdPort":9010,"netCmdPort":9010,"localStreamPort":9020,"netHttpPort":0,"localHttpPort":0,"netStreamPort":9020,"netType":3,"wanIp":null,"upnp":false}},"cameraInfos":[],"p2pInfos":{"F35385585":[{"ip":"34.249.121.84","port":6000},{"ip":"52.30.47.10","port":6000}]},"alarmNodisturbInfos":{"F35385585":{"alarmEnable":0,"callingEnable":0}},"kmsInfos":{"F35385585":{"secretKey":"bca03532ca1d4d1b80aa54f0f330aa40921193d3ea04d951aff0daab425fb8af","version":"101"}},"timePlanInfos":{"F35385585":[{"deviceSerial":"F35385585","channelNo":0,"type":2,"enable":0,"weekPlans":[{"weekDay":"0","timePlan":[{"startTime":"00:00","endTime":"23:59"}]},{"weekDay":"1","timePlan":[{"startTime":"00:00","endTime":"23:59"}]},{"weekDay":"2","timePlan":[{"startTime":"00:00","endTime":"23:59"}]},{"weekDay":"3","timePlan":[{"startTime":"00:00","endTime":"23:59"}]},{"weekDay":"4","timePlan":[{"startTime":"00:00","endTime":"23:59"}]},{"weekDay":"5","timePlan":[{"startTime":"00:00","endTime":"23:59"}]},{"weekDay":"6","timePlan":[{"startTime":"00:00","endTime":"23:59"}]}]}]},"statusExtInfos":{"F35385585":{"upgradeAvailable":0}},"meta":{"code":200,"message":"操作成功","moreInfo":{}},"page":{"offset":0,"limit":100,"totalResults":0,"hasNext":false},"statusInfos":{"F35385585":{"diskNum":1,"diskState":"0---------------","globalStatus":1,"pirStatus":0,"isEncrypt":1,"encryptPwd":"6b835f7812ef4a4359af7d394037d520","upgradeAvailable":0,"upgradeProcess":100,"upgradeStatus":2,"alarmSoundMode":0,"optionals":{"latestUnbandTime":"1622474044794","updateCode":"0","diskHealth":"-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1","httpPort":"0","OnlineStatus":"2","cmdPort":"0","upnpMappingMode":"0","diskCapacity":"953869,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1","wanIp":"82.19.164.15","kms_version":"100","domain":"F35385585","superState":"0","latestUnbindTime":"1622474044794"}}},"wifiInfos":{"F35385585":{"netName":"eth0","netType":"wire","address":"192.168.40.86","mask":"255.255.255.0","gateway":"192.168.40.1","signal":0,"ssid":null}},"switchStatusInfos":{"F35385585":[{"deviceSerial":"F35385585","channelNo":0,"type":31,"enable":false}]},"deviceInfos":[{"name":"iHomeCCTV","deviceSerial":"F35385585","fullSerial":"DVR/DVS-12-A0420201230CCWRF35385585WCVU","deviceType":"DVR/DVS-12-A","devicePicPrefix":"https://devpic.ezvizlife.com/device/image/DVR-DVS-12-A/","version":"V4.20.001 build 190430","supportExt":"{"44":"1","26":"4","29":"1","175":"1","154":"1","232":"0","233":"0","234":12,"30":"1","31":"1","10":"1","11":"0","33":"1","99":"1","34":"1","13":"0","59":"1","1":"1","2":"1","3":"1","4":"1","5":"0","6":"0","7":"0","8":"0","9":"1"}","status":1,"userDeviceCreateTime":"2021-05-31 15:17:46","casIp":"eucas.ezvizlife.com","casPort":6500,"channelNumber":12,"hik":true,"deviceCategory":"COMMON","deviceSubCategory":"UNKNOWN","ezDeviceCapability":"{"264":"1","232":"0","265":"1","233":"0","266":"1","234":1,"268":"1","30":"0","31":"0","262":"1","175":"1","263":"0"}","customType":"DS-7204HUHI-K1/P","offlineTime":"2022-06-08 01:02:52","offlineNotify":0,"accessPlatform":true,"deviceDomain":"F35385585","instructionBook":"http://devpic.ezvizlife.com/device/image/DVR/DVS-12-A/instruction.jpeg","deviceShareInfo":null,"feature":null,"riskLevel":0,"offlineTimestamp":1654650172000}]}

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

This is pretty strange. According to this the plugin should not work because your device does not expose lock information. Does your device have lock functionality?

from homebridge-hikconnect.

djw8625 avatar djw8625 commented on July 18, 2024

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

Some of the HikVision cameras have lock functionality and this plugin exposes those locks to Homekit so you can unlock from Home app.
Currently the plugin does not display camera feeds, it only exposes locks.

from homebridge-hikconnect.

kellery82 avatar kellery82 commented on July 18, 2024

I’m having issues every now and again where I’m getting invalid login information and the lock does not work. I’m able to log in to Hik-Connect via a web browser ok, but just have to constantly restart homebridge to hopefully get the lock working again. Any ideas? I’m happy to post logs.
0DF706B2-5F63-4773-86F6-DD3F38C4617E

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

Honestly I have no idea, I'm also using the plugin constantly and I have no problems logging in.
When you try to log in through the web, do you get captcha? Because if so, you have to 'break' the captcha on the web and then the plugin can logs in.

from homebridge-hikconnect.

kellery82 avatar kellery82 commented on July 18, 2024

Honestly I have no idea, I'm also using the plugin constantly and I have no problems logging in.
When you try to log in through the web, do you get captcha? Because if so, you have to 'break' the captcha on the web and then the plugin can logs in.

Thanks for your reply Judge. No, when logging in it’s just username and password. I did have to accept some terms and conditions maybe a week or so ago, but now just logging in gets me straight into Hik-Connect. Maybe I’ll restart my synology which hosts homebridge.

from homebridge-hikconnect.

kellery82 avatar kellery82 commented on July 18, 2024

I just tried manually specifying the api and that seems to have worked

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

You mean if you set the API URL to https://api.hik-connect.com then it works? It's strange because the default url is also the same. :)

from homebridge-hikconnect.

kellery82 avatar kellery82 commented on July 18, 2024

You mean if you set the API URL to https://api.hik-connect.com then it works? It's strange because the default url is also the same. :)

I actually changed the URL to https://ius.hik-connect.com. Whether this is being ignored it seems to have fixed the issue. Has been working since doing this change. I tried removing, readding the plug-in, restarts prior and nothing seemed to work.

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

Can I ask which country are you from? It seems some countries have different API urls, like in Russia it's https://www.hik-connectru.com

from homebridge-hikconnect.

kellery82 avatar kellery82 commented on July 18, 2024

I'm in Australia which makes it strange. Still working like a treat without the need for reboots

from homebridge-hikconnect.

judge avatar judge commented on July 18, 2024

That is strange indeed. :)
Anyway, I'm happy that it works fine and I'll close this, I'll try to update the README with API URL recommendations including this.
Thanks!

from homebridge-hikconnect.

Related Issues (20)

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.