In my previous post, I mentioned the long waited release from Unifi Protect on the G4 Pro Doorbell.
Having seen a few videos online people using webhook to have Home Assistant to work using Webhook with Unifi Protect, I believe Homey Pro will be able to do something similar.
However, Webhook is new to me and it took me awhile with some help in Homey forum. Finally I managed to have that integration completed.
First you need to prepare a few things:
1. Homey Cloud ID
It is under Settings, General and Cloud section.
2. You need to have a event name to be capture in Homey Flow Webhook Logic card. If you mouse over the information icon, you will see the screenshot below with the delivery URL to be use in Unifi Protect app.
What we need to change is the <my_event> a name which you will be using to recognize the Webhook event call. The other is a <tag_name> if send a state. In my case, I am using fingerprint and I want to make sure all registered fingerprint in Unifi Protect via G4 Pro doorbell, will send a "yes". It will then looks something like this:
https://webhook.homey.app/xxxxxx/fingerprint?tag=yes
The flow will looks like below.
What happen here is whenever a registered fingerprint is triggered on Unifi G4 Pro Doorbell, an alarm is created with the Webhook URL with a POST containing an even name "fingerprint" and a tag name, "yes".
A separate alarm with Webhook URL with a tag name, "no" was also create to define the different. That only a message is send.
No comments:
Post a Comment
Comment will be published once confirmed not advertisements.