Hoping that someone could help me out.
I created an alarm rule in Unifi Protect, this alarm is triggered when a known face has been reconized. When it does it should trigger the webhook automation in Homeassistant.
But I cannot get it to work.
When triggering the automation by using the curl command it works flawless, the automation starts and the actions are being executed.
When a known face is beeing reconized the alarm rule in Unifi Protect detects it and send me an email.
So both worlds do what they should do.
The things is, my homeassistant is not secure for my local enivronment from the outside I use a certificate registered on my domain.
The domain from the outside is different then the one we use locally, locally I use the homeassistant.local domain.
So if I execute a curl command to the endpoint it will throw an exception
curl: (60) schannel: SNI or certificate check failed: SEC_E_WRONG_PRINCIPAL (0x80090322) - The target principal name is incorrect.
To fix this I just add -k to the curl command and the command is now ignoring the certificate error. This way the automation will be triggered.
From Unifi protect I cannot provide additional arguments to the post command. So I am assuming that when I do the same POST from Unifi Protect to HomeAssistant webhook that this is being blocked by the ssl exception.
Is there anyone that could help me out or point me in the right direction to get this working?