How to enable/disable Hikvision cameras via script

yojimbo

n3wb
Joined
Jul 19, 2020
Messages
1
Reaction score
0
Location
Russia
Hi!

I have a Hikvision NVR DS-N208P(B) and a few cameras outdoor and indoor. The indoor ones are DS-I114. All cameras are connected directly into NVR via PoE.
What I'm trying to do: to find any way how to disable indoor cameras when somebody is home. I mean not just to stop recording (like /ISAPI/ContentMgmt/record/control/manual/stop/track/), but to completely disable camera from viewing it.

Any curl request or ssh request will be suitable to be included in my Home Assistant automation.
Maybe you can suggest any way of disabling the camera?

At least I can see two approaches:
  1. Disable camera through NVR. Like changing its state or even temporarily changing its IP to fake one…
  2. Disable camera through its own web-interface. But this leads to two another subtasks:
    1. How to access camera web-interface? When its connected directly into NVR, it's not visible over the local network and has a different subnet address (192.168.254.0 instead of 192.168.1.0)
    2. In case I have an access to web-interface, how to disable/enable camera via script?
Any help will be appreciated.
Thank you!
 
Top