Many onvif cameras have configurable “day / night / general” profiles that can be configured with settings to get the most out of the camera at night or day. These profiles are usually handled by the “NVR” at certain preset times rather than by the camera sensing day or night, (I would suspect this is because even though the camera can detect night time, when it’s IR illuminator is on it might have trouble detecting morning time if ir is bouncing off a nearby wall etc).
The way the camera changes these profiles is through an onvif call (or api request)
Below is the “link” I can use to change my camera’s profile (dahua/amcrest)
http://username:[email protected]/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=2 the =2 at the end is either 0 1 or 2 based on the 3 profiles the camera can have.
I’ve tried to add this as an rest_command in configuration but as I quickly discovered, the rest_command does not support digest authentication. Short of using an middleman application I figured I would reach out to the feature request part of the onvif community. I reached out here because I think this is a standard onvif thing, if it isn’t I could try my luck with the amcrest integration portion of homeassisntant feature request. Anyway, thanks for the help!