Hi, I have a G4 Pro Doorbell which i would like to use as a motion sensor when it detects a person, but only in a certain area of the camera's view. Unifi Protect itself has smart zones which i've configured, but it doesn't seem that the data of that zone is passed through to HA. I'm currently listening to the Person detected turned on, Motion started detecting motion and Object detected turned on events and just logging them, but the object doesn't contain any kind of attribute in the trigger variable, which is where i'd expect it to be unless i'm missing something? Is there anyone that's managed to do this successfully, if so, could you help me with it please? Thanks!
#Unifi Protect: Detect motion only from a certain smart motion zone?
1 messages · Page 1 of 1 (latest)
I'm not sure it's possible do do this with the data currently provided to HA. But in the "alarm manager" part of the Unifi Protect UI, you can create an alarm there which should meet all your requirements (you can select which objects and you can select which smart zones within each camera). Then for the action, create a custom webhook. The address will be specific to your HA instance (e.g. https://homeassistant.example.com/api/webhook/your-custom-webhook-ID-here).
Then in HA, create an automation with a webhook trigger that matches the one in Unifi, and go from there
ahh, didnt know that was possible! ill give that a go. thank you :]
i've just tried doing this, it doesn't seem to work. i've set it to a POST webhook in alarm manager, do i need any headers or anything?
should also mention i've tried it with a GET as well, also nothing
i tested it in Postman, i get a 200 ok response with POST when i send a request to the webhook url so it just seems HA isn't picking it up