One way to think of the API calls is that the URL is nothing more then a container that is used to send information (commands) to the camera. In many cases, the difficult part is finding the correct code (URL) to activate the needed camera function. The HTTP API from Dahua is one tool that can assist.
The API for day/night mode change is already done as the desired URL can be placed into a browser, sent to the camera and that function activated.
The Hubitat Hub is nothing more than a microcomputer that provides the following functions:
1) Uses an HTTP GET command and sends a command to the camera
2) Built in local sunset/rise times with adjustable time offset
3) A Rules Machine to setup a time schedule to activate a rule
4) A simplified system to construct a lighting on/off rule
5) A way to edit and update apps and code
6) Ability to import and export code (apps)
7) Is functional without the need for internet connectivity
In order to be successful with the HUB, if would be good if that individual has some prior experience with the device. Otherwise, there would be a substantial issue with frustration as a first time user.
Other alternatives for these API functions could be the Raspberry PI, Windows Power Shell, Task Scheduler, etc.
Perhaps the current Web 4 Dahua Sunrise/Sunset Service Manager could be updated to include Web 5 cameras, as it is no longer supported.
As an alternative, consider engaging a developer in India as an idea. Most likely more bang for the buck.
Hire top Indian developers remotely! Discover cost-effective strategies, benefits, and the step-by-step process with Turing.com.
www.turing.com