UniFi Protect Blueprints

Unfortunately, I have the next problem again:

I have selected “google_translate_say” as the TTS service and get the following error message:

Logger: homeassistant.helpers.script
Source: helpers/script.py:661
First occurred: 19:48:22 (2 occurrences)
Last logged: 19:48:22

Error in 'choose[0]' evaluation: In 'template' condition: UndefinedError: 'dict object' has no attribute 'data'

And:

Logger: homeassistant.helpers.template
Source: helpers/template.py:1840
First occurred: 19:48:22 (2 occurrences)
Last logged: 19:48:22

Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (wait.trigger.event.data.action == unlock_action or wait.trigger.event.data.data.endswith(unlock_action)) and lock_entity_id != '' }}'
Template variable error: 'dict object' has no attribute 'data' when rendering '{{ (wait.trigger.event.data.action == silence_action or wait.trigger.event.data.data.endswith(silence_action)) }}'

Any ideas to fix this?

thanks

What type of Lovelace view are most people using for these blueprints?

A view with all of your cameras? Or hidden ones with an individual camera?

I’m trying to find a way to click into the notification and have it start playing the live feed without additional clicks. Curious what’s the preferred method for this.

Thanks for this! I was messing around with this. Would actually love to see links to blueprints like this on the integration page itself. I saves so much time searching for things like this.

I have a VPN set up which makes the app ignore the remote connection. Sadly, this only works if you’re connected via Wi-Fi. If you’re not connected via Wi-Fi it’ll use the remote connection regardless if it can access the local one. I’ve placed a request to get that fixed, but I’m not getting my hopes up.

I am missing a bit to send a notification to my speaker group announcing someone is at the door. I’m going to yam it in this one, but if people like the option I can try and update the blueprint with it.

I made one for the doorbell specifically. I set it up so it’ll start a live feed right away. I also added a small sound board for quick responses and a button to open the protect app in case I need to talk back.

If there isn’t a rush, I use the protect app to view since I’ll need the history most of the times to see what the dog did. :sweat:

1 Like

Interesting, thank you for sharing. Are you using the WEBRTC viewer or standard version for the live feed?

Looks great, is there any plan to support opening gate (cover entity) in addition to lock in the doorbell blueprint? That would be really useful for me.

Standard at the moment, but I’ll look into the webrtc since Alex makes it sound better to use. :joy:

Because the standard feed takes some time, I have a message I can send saying it takes a while for the stream to load. :wink:

I wasn’t referring to the one you made, but basically all blueprints related to this. Having a feed per tag and showing that on the page should be do-able right? The blueprint related to Hue could be shown on the Hue page, etc. Search for the correct blue print is more effort then it should be I believe. But that’s for an other tread I guess. :joy:

No I only need one URL. I mean I have a VPN for the ProtectApp because it’s slow. That by-passes the cloud and it’s really fast then. Hench why I have a link to it on my HA page for the doorbell. I setup a DNAT for the internal URL. That fixed the issue I have with sending the feed to my hub when I’m home.

I have it in a separate one now. But since the list of automations is becoming quite long I kind of want to group it all in one. Have a grouping option for scripts would help so I can just call them one by one in an automation. But have that long list at scripts. For instance one for updates. Since I can’t do them all at once if there are more then one, I’d need to plan time in between the options. :face_with_monocle:

If you don’t use locks it shouldn’t take much effort to swap the lock out with a cover option.

Hello, I am currently the smart detection notifications with 2 G4 Bullet and it works fine with the camera streams via nabu casa connection and notify via APP.
But the visualization of the stream is qute slow.
Is it possible to get a Snapshot of the camera in the notificaton instead of the camera stream?

I have a problem with configuring doorbell notifications to show images. blueprint says:

  • A valid HTTPS certificate and public facing Home Assistant instance
    - If you do not have these, the actionable notifications and images will not appear in the notifications.
    - You do not need your whole Home Assistant to be publicly accessible. Only the paths /api/camera_proxy/* and /api/webhook/* need to be accessible outside of your network.

Could you please help me to understand how to do this configuration? (Currently HA instance is completely locked by pfsense)

Thank you.

Thank you, but I still get a video clip in my notification. I am using nabu casa cloud and iOS App.
Do I still need to make /api/camera_proxy/* and /api/webhook/* need to be accessible outside?
How can that be done?

In my HA media folder I find the clips but no snapshots. What am I doing wrong?

At “(Optional) Base Image URL” I put my nabu casa URL, right?

Hey Folks,

Struggling to find out why my G4 cameras are not configured for Detect Object sensor when they are configured in Unifi Protect with Smart Detections. I am hoping it’s something simple I haven’t enabled so I can take advantage of these great Unifi Protecf Blueprints. Any ideas??

Thanks

PJ

@AngellusMortis thanks for updating the blueprints!

2 observations that I’m working through with the change:

  1. Presence Filter appears no longer includes person entities - the previous automation I had setup used person.xyz to determine if someone is home since multiple devices were used. It appears this blueprint requires selecting one device. What would need to be changed to include person entities?

  2. iOS Notification no longer shows thumbnail - I’m getting an error in the thumbnail on iOS, but if I click into the notification it shows the video feed. Any pointers on how to restore the thumbnail image?

Thanks.

Correction - I think the iOS notification thumbnail issue was because I was forcing a trigger in the UI of the automation, but if it happens on its own the thumbnail comes through.

Thanks for the updates, will the doorbell text blueprint be coming back now that 2023.1.2 is out?

I think I am having similar issues to some of the ios users but on android/telegram. I get notifications but no thumbnails. in the old setup you had to tell the blueprint what your external url was but now you don’t? i am not quite sure if i am doing something wrong or this isn’t working 100% yet.

What an amazing blueprint - well done AngellusMortis!

I’m just a bit confused by the code since it is way more complicated than my old automation for sending images on motion :slight_smile:

One problem I have is that it doesn’t work too well consistently with my smart watch (Samsung Galaxy Watch 4 together with a Pixel 6). I can’t really put my finger on why but sometimes I don’t have an image in the notification on my watch despite having it on my phone. I guess it has to do with the mobile_app_notification_cleared, I can see the image initially when I get the notification but then in the next notification replacing the first one it is sometimes gone, but it is all very inconsistent.

Is there a way to simplify this so that the notification isn’t updated several times, my watch vibrates several times for each notification because of this.

Has anyone experienced the same?

Edit:
Been running in and out to trigger the cameras now (can I debug and test it somehow) and this is my finding:

  1. When the motion is triggered I get an image to my watch with the full image, so basically a snapshot from the camera. Image “1” below.
  2. When the motion event is over the notification seems to get updated with the small thumbnail zoomed in on the object causing the camera to go off together with a video clip (animated gif kind of style). Image “2” below.

#2 above causes the notification on my watch to update so that I only get the zommed in thumbnail as an icon for the notification, the actual image thatused to be shown below the message is gone, maybe because the watch can’t show the animated image.

I guess thie is related to my watch because on my phone it looks good. As long as I look at the watch before the first notification is replaced it’s all good. But if I miss it and look first after the notification has been updated then I get a very tiny image of what happened.

Not sure there is anything to do about it but if you have any thoughts or input @AngellusMortis please share :slight_smile:

1 Like

Hey @AngellusMortis, what an incredible blueprint. I’ve got nearly everything working with my G4 Pro.

Question for you: For TTS, I’ve got the google_translate_say service filled in; however, it never triggers the TTS to play when I unlock the door or press “Respond” from the HA actionable notification on my iPhone.

From the developer tools, if I do a ‘tts.google_translate_say’ service call to ‘media_player.front_door_speaker’, the audio plays with no problem on my doorbell. But the blueprint doesn’t call it. Could it be something with the naming of the media player?

Understood. It doesn’t look like the externally accessible webhook URL is the issue. To test, I setup a IFTTT trigger that plays TTS (via google_translate_say) through the doorbell when triggered–that works without issue. To be clear, I see the actionable notification with the video thumbnail. I am able to unlock the door using the notification, but the TTS script(s) doesn’t play through the doorbell.

Would it matter that the doorbell’s speaker is named: “media_player.front_door_speaker” and the doorbell’s binary sensor is “binary_sensor.front_door_doorbell”? (I don’t see anywhere in the blueprint where to specify the G4 doorbell’s media_player entity.