Hello all - since Hikvision cameras are limited to a hard time set on a monthly basis, I'm trying to tie in the cameras into my smart home (Home Assistant) and using the curl command to change the scene from Normal to Low Illumination and vice versa. This way I'll be able to automate it around sunrise/sunset.
The command I'm trying:
But it's returning the following error saying invalid operation:
Any ideas on what I'm doing wrong?
Camera: Hikvision DS-2CD2087G2-L
The command I'm trying:
Code:
curl -k --silent -H "Content-Type:application/xml" -X PUT -d '<?xml version="1.0 encoding="UTF-8"?><MountingScenario><mode>lowIllumination</mode></MountingScenario>' http://CAMERA_IP/ISAPI/Image/channels/3/mountingScenario --digest -u user:pass
But it's returning the following error saying invalid operation:
Code:
stdout: |- <?xml version="1.0" encoding="UTF-8" ?> <ResponseStatus version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema"> <statusCode>4</statusCode> <statusString>Invalid Operation</statusString> <subStatusCode>notSupport</subStatusCode> </ResponseStatus> stderr: "" returncode: 0
Any ideas on what I'm doing wrong?
Camera: Hikvision DS-2CD2087G2-L