-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add COM1 and COM2 Relay Control for Indoor Station #25
Comments
@judge any chance this could be added? |
Hello, |
Thank you for getting back. |
@judge I opened a dev account at tpp.hikvision.com, but I still get the same 401 error when clicking your link. |
I checked it as well and it seems the method I described in the docs is not working anymore. You need to craft the requests by hand. :( I'll publish a new version of the plugin to help with debugging, I have an idea. |
I published a new version with debug logging. Could you please follow the updated https://github.com/judge/homebridge-hikconnect/blob/main/DEBUGGING.md docs? |
Log sent! |
@judge I was able to do a bit of reverse engineering by monitoring the traffic from my iPhone and the Hik-Connect app to control the Com1 port:
Would this help? |
Hmm it seems this is based on isapi, which is an API interface for hikvision devices. My plugin does not use that, but I also sniffed data between my device and phone app. I cannot enable isapi on my device because I live in a flat and my device is managed by someone else. :( |
Yes I have looked and interacted there. Unfortunately, for some reason status request through ISAPI does not work using reverse engineering (no documentation provided). Did the log I send help at all? |
Unfortunately, no, I cannot see any info about the relays in that payload. Maybe if I would have a device like that (with relays) I could reverse engineer it, but it seems it's ISAPI only. :( |
This requires fetching a bearerToken using AppKey and App secret with developer account on hik connect or hik partner pro. Then you can redo requests |
Thanks! The plugin uses the normal end-user hik-connect account, that way the communication is not going through isapi, so it's pretty limited what it can do. |
It does not seem they do any real verification on company info :) |
For Indoor Stations like the DS-KH6350 there are two relays on board (COM1 and COM2).
Page 10 here: https://assets.hikvision.com/prd/public/all/doc/m000056209/UD30790B-A_Network-Indoor-Station_Operation-Guide_V2.2.2_20240819.pdf
Could you please add these?
The plugin already pulls the paired door station locks from the indoor station, but adding the two relays would allow for full control.
The text was updated successfully, but these errors were encountered: