elaborating.. as requested
this is a (simplified) node red flow to change the BW/Collor setting based on brightness of the moment
the left node reads the value of a light sensor, the second node (switch) sends values higher then 300lux to the Color request and lower values to BW
The 'deadband' is there to only let changed values pass. When a message is send to one of the '
WWW.request' then this node send the request to the camera
The rest of the nodes is purely for debugging
settings off the request node below:
In the dahua API reference you find all possible commands to control the camera.
And the sensor can oaso be a timer or sunrise/sunset calculation or even the online wheater reports .
for example, on a low traffic street you could send the command to zoom out completele for 10 seconds to get a overview of the area after detection of a plate. or play a dog barking sound when an unknown plate is seen during the night.
almost everything imaginable is possible
Peter