Can anyone that is still running the utility version check their utility log and see if you are having the same issue - I have had no reason to look at the log because I can tell my cameras have gone to night settings or day settings thanks to running LPR.
Tonight I was on the machine when sunset should occur and noticed my cameras hadn't changed yet, so I pull up the log and it shows it tries the sunrise first and goes thru each camera and then repeats sunrise until about a half hour later and then runs the sunset, so it is only delayed by about 30 minutes, but I can't figure out why it is doing this. Sunrise the next morning is fine. I deleted all the attempts below for simplicity, but I noticed it has been doing this since February, but worked fine previously up to that point.
I am guessing there is possibly some time code issue like what had happened before that was fixed in an update.
12/4/2022 5:18:34 PM TriggerSunsetActions
12/5/2022 8:14:14 AM TriggerSunriseActions
12/5/2022 4:47:14 PM TriggerSunriseActions
12/5/2022 5:17:10 PM TriggerSunriseActions
12/5/2022 5:17:10 PM Cancelled web request () due to the next event time being reached.
12/5/2022 5:18:13 PM Cancelled web request () due to the next event time being reached.
12/5/2022 5:18:28 PM TriggerSunsetActions
Took me a few months mostly because I haven't looked at it.
But setup all your profiles
0 is day
1 night
2 general etc
I use the profiles day/night for different settings, but night and general are the same, except the light is set to manual 100%.
Once you have done your profile setup, Save, and then change to self adaptive, and save again.
Now you can run
for day
Code:
curl -s -g --digest -u user:pass "http://ip/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0"
night
Code:
curl -s -g --digest -u user:pass "http://ip/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1"
night with illuminator
Code:
curl -s -g --digest -u user:pass "http://ip/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=2"
This works for all my Dahua cams on Web 5.0 running as Shell Commands from Home Assistant. Profile switching will not work via api if you are not in self adaptive mode., but you cant setup the profiles in self adaptive, so set them up first then switch to self adaptive. Here it is on my 4kt180 when I come into view dahua integration sends a human trigger to home assistant, home assistant then switches profile to general turning on the light.
View attachment 1000004084.mp4
Last edited: