If you are using Home Assistant Cloud, this is already set up for you.
If this is not setup correctly, the actionable notifications and attachments will not appear in the notifications.
You do not need your whole Home Assistant to be publicly accessible. Only the paths /api/unifiprotect/* and /api/webhook/* need to be accessible outside of your network.
Doorbell Ring Notifications
Requires a G4 Doorbell or G4 Doorbell Pro
Features
Receive notifications when someone rings your doorbell
Includes of a thumbnail from the camera at the moment it was rang
Optional features
Actionable notification to unlock the door / open a gate and play a TTS message
Actionable notification to respond to the person at the door
Actionable notification to mute further notifications for a configurable amount of time
Include a playback video leading up the doorbell ring. Note May significantly delay the receiving of the notification.
Smart Detections requires a G4, AI or G5 Series camera.
Receive notifications when motion or a smart detection event is trigger by one of your UniFi Protect cameras
Includes a thumbnail of the event from UniFi Protect
If you are using iOS, you can instead stream the camera directly to your device
Will automatically update the notification with a video clip of the event after it completes.
Optional features
Filter for device tracker to “not be home” before triggering
Actionable notification to mute further notifications for a configurable amount of time
Motion / Smart Detection Notifications
License Plate Smart Detection Notifications
Requires UniFi Protect v2.7+ and an AI series camera capable of License Plate detection (AI Bullet, AI Theta, or AI DSLR). This the same as the Smart Detection Notification blueprint above, but it is explictly for detecting and displaying License Plates detected by an AI series camera.
Huge thanks to @hunterjm who I got a lot of great inspiration from to really improve the blueprints a lot for his blueprints for Frigate. My blueprints were oringanly a mess and required like 6 different blueprints and I was able to get them all down to just 2 after looking at his.
Looking good! Glad to hear you were able to get some inspiration from my blueprint. I would recommend adding the optional presence filter to your notifications however. I didn’t have that in my blueprint initially and especially for people with interior cameras, the notifications become very noisy even with cooldown when you are home and walking around inside.
I will have to look at how your presence filter works then. I assumed that was something to do with Frigate. I did the Smart Detection filter, which I thought was the equivalent, but it does make sense if you are using actually occupancy entities instead.
It uses the timezone you set on your Home Assistant instance. So if it is coming through wrong, you probably have the wrong timezone selected globally.
Regarding the Doorbell notification for Companion App (Android), is there anything special to be done to get the camera image directly in the notification like in the screenshots?
Read the requirements in the blueprint. You have to configure a base image URL (should be your external URL or Nabu Casu URL). It must have a valid HTTPS cert and must be publicaly accessible from outside of your network. Blueprint gives details on specific paths.
This is a hard requirement since Apple/Google actually fetch the URLs for the images before sending them to your phone. Your phone does not hit the URLs directly.
Has anyone figured out how to get the URL redirect for tapping on a notification to open the UniFi Protect app AND navigate to that specific camera?
If there wasn’t a streaming delay for the camera feeds via HA, I’d stick with viewing through the HA app directly, but since the true live feed is available via the native app, I’d like to tap on it and have it open the UniFi protect app. Is this possible?
Updated for the HA Core release. Moved blueprints to their own repo since the HACS repo will be archived in the future.
Any links to the HA docs for the UniFi Protect integration will 404 until the stable release of 2022.2.0. Beta docs can be found at: UniFi Protect - Home Assistant
No changes to the blueprints themselves except adding a source_url, updating references to docs and using the unifiprotect__lcd_message device class for the Dynamic Doorbell Text Selector.
@AngellusMortis would it be possible to modify the Blueprint for the smart detections to be based on presence and time? (I’ve been tryign to ask for this repeatedly on the Unifi Forums, but the employees don’t listen, and it used to work before the protect redesign)
i.e.
I am home, but don’t want alerts 6am - 11pm but want alerts from 11pm to 6am.
I am away, I want all alerts.
Hello again, I am confused on the setup for the Smart Detection blueprint. I have a G4 Doorbell, G4 Pro and a G4 Bullet (all with the official integration) so I should have smart detections. But when I try to use the blueprint, i get “No matching entities found” in the “Smart Dection Entity” section.