Dahua camera presets how to?

Thanks Johnnyletrois, I just found your other post with the digest included in the curl command.
If I run those from my Windows command prompt they work, so thats another step closer :slight_smile:

I really have no idea where i should put the curl command and how to trigger them.

Is it possible to make an selection from a input_select and start an automation based on the input?

My preset curl command:
curl --digest -u “admin:password” “http://ipaddress/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0”

My input select:
input_select.dahua_ptz
options: Oprit,Voordeur,Tuin,Laagveen,Schoolsticht,Uitzicht
icon: mdi:cctv
friendly_name: Dahua SD6C225U-HNI Preset

Going to use the day and night mode commands for sunset/sunrise as well, thanks for sharing.