Hi. I’m trying to use Home Assistant to replace the terrible user experience that comes with Unifi’s Protect camera app. They’ve made a pretty good doorbell camera, but the related iOS notifications are useless. What good is a doorbell if you’ll never know someone is there?
Anyhow, I’ve finally gotten around to setting up an actionable notification that provides a useful notification sound, a live feed from the doorbell camera and an action that can open my driveway gate. This is great because it eliminates fumbling through multiple apps to accomplish the same thing. All I really need beyond that is a second action that can open the native Unifi Protect app. How does one open an app (that isn’t the HA companion app) via an Action?
Second question, getting to these actions requires a long press on the notification banner. A short press launches the companion app. For this use case, I don’t need to interact with the companion app directly. If it’s at all possible to call another another app from an action, is it also possible to replace the that same short press on the banner to call the same app? I’ve scoured the Internet and I can’t seem to find enough info to help me connect the dots on this.
You would need to see if you could find the iOS app url… there is no definitive list of all apps but it would be something like unifiprotectblahblah://
I have been trying to find the one for Amcrest View Pro with no luck… even some scripts exist to pull it from the app but most are outdated.
Then you would link that like you would any link and iOS should open the app… getting specific cameras in said app is a whole-nother can of worms unless you are familiar with dissecting the code of iOS apps
Also it’s easier to test with an iOS shortcut for open url and you will know if it works for the app without modifying and resending your HA notification each time
Also after your reminder of looking for the Url I did some more googling and apparently not all apps have one… please keep me updated if you have any luck finding it…
Found it. Luckily, Unifi has a link. I’m posting my configs here to help anyone searching for this solution down the road. Just FYI, I’m using a doorbell camera as gate sentry device, vs. some legacy keypad, telephony, or camera system.
This is what does:
Upon a Unifi Protect G4 Doorbell press, an automation is triggered to send an iOS actionable notification. The doorbell press gets you a new notification in your iOS notification center. And a long press on that notification gets you:
A live feed from your camera. The Unfi Protect integration is required (available via HACS). Also, you could capture an image snap if you don’t want the live feed.
Two actionable buttons under the camera image. One triggers another automation. In my setup, it’s opening a MyQ cover that controls a gate. The other button will launch your iOS Unifi Protect app. This is kinda important as you’ll often need to use the microphone to communicate with the probably unwanted doorbell presser.
I am struggling with having a camera stream in my actionable notifications since days.
it does work with a still image from my unifi camera but it doesn’t work with providing a stream.
What’s the purpose of the first line with url: unifi-protect:// ?
Or is it a placeholder for your camera stream?
Hi. The first URL statement lets a press on the actual iOS notification launch Unifi Protect instead of the default HA companion app. Under the “data” section of the automation YAML, you’ll need to point to the actual camera entity in HA to get an active feed from the camera. In my setup, I think it’s only getting 1 or 2 frames per second from the camera in this mode, so I guess it’s not exactly live. But it’s good enough to see what’s going on.
I know this is probably stating the obvious, but the Protect integration via the HACS store is needed to get this working. I wish our friends at HA would do a native integration. I only mention the integration as I suppose there are a variety of automations where you’d want to grab an image snap via a URL without the need of leveraging the the integrated entity.
Ah. I guess that makes sense. Not really sure about HA’s notification features on Android. Related to all this, I think I saw a Protect release note somewhere that indicated Ubiquiti is monkeying with notifications in their upcoming 1.20ish release. I’m not brave enough to try a beta version, but perhaps they’ve taken a shot at implementing configurable alerts.
It’s both the Protect app and the Protect system. What I’m referring to is a vague part of the release notes for the latest Protect app. We’ll probably end up with no meaningful modifications, but ohmygod do they need to make notifications better. Especially for the G4 doorbell. Otherwise, it’s a good product. Here’s the note:
I see. Unfortunately the protect app is unusable for me. as long as they don’t add direct connect via ip address to the unifi controller. I don’t want to use their cloud service nor do I have all my devices on the same subnet.
Therefore I use my protect cams via HA directly, which does work very well.
Hi,
Do you happen to know if it’s possible to get an actionable notification URI that opens the Protect app and plays back the recording at the time of the notification?
Regards
As far as I know, this is still not possible and there’s no known way to specially call up cameras via an interface. So getting to a specific on spot in a camera’s feed would be even less do-able. But I haven’t looked into this in some time, so perhaps things have changed.
Depending on how badly you want this capability, it may be possible outside of the Protect system, by using an alternative DVR. Haven’t researched that. The Protect app and ecosystem is decent these days. Best of luck!
Thank you for the comment. The thing is that it makes sense to use my Unifi equipment as a NVR, at least for video recording, given it’s just sitting there and as you say the Protect ecosystem is pretty decent.
I’m trying to find a way to launch the Reolink app on my iPhone from an actionable notification. I’ve managed to extract below info from the IPA file but I’m unsure what the notification should look like. Would appreciate some hints.
As far as I know, you’ll need an addressable link to the actual app on your phone, and I’m not sure the one you have there is correct. Not sure though. If Reolink has a community forum, you may find it there. Otherwise, you’ll need to talk with one of their developers … which I think would be pretty hard to do.