Frigate Mobile App Notifications 2.0

Did I miss some breaking change somewhere on HA or the Android Companion app? My notifications stopped sending the ‘A person was spotted on your camera’ text. I’ve tried changing it, saving, changing it back to default. I also tried manually entering things. And I even updated to the latest beta. Nothing seems to work.

All I can really suggest is focusing on getting frigate working 100% first. Then do a clean install of the integration.

I played with some changes to he beta yesterday so it could be messed up but stable definitely is fine.

What is your config for the automation?

After a clean install, with the right API url:
"ccab4aaf_frigate-fa:5000" (in stead of ccab4aaf_frigate:5000)
in place it all seems to work again. I can again see the snapshot notifications and open them for a bigger picture :slight_smile:

Ahh okay you installed a different version that’s why.

Glad it working.

I think it was actually user error. :thinking:

Okay, the original code did not work as planned. It responded correctly in the morning when the first door was opened after they had all been closed, but failed if a second door was later opened. I had to change the template code as follows

- binary_sensor:
  - name: Outside Doors Opened Recently
    state: >
      {# This is a sensor that determines if an outside door was opened or closed in the last 5 minutes #}
      {{ 
      ( expand('binary_sensor.outside_doors')
        
      | sort(reverse=true, attribute='last_changed')
      | map(attribute='last_changed')
      | list )[0] > (utcnow() - timedelta(minutes=5))
      }}

When clicking the “view snapshot” button on my android notification, I get taken to a blank black page. There are scroll bars which makes me think it’s taking me to a page… but it just won’t load the image.

Has anyone come across this / know how to resolve?

is it loading a GIANT image. try scrolling to the middle

Yes I have added it as a new automation and chose the latest version of the plugin. That is what you mean, right?

Yes a new automation.

Are there any traces at all? If yes, please screenshot the top half of the trace tree and provide it here.

If no, check frigate and mqtt are working properly and the frigate integration is installed

Hey @SgtBatten, thank you so much for putting this blueprint together. My Frigate notifications are 10x better than they were when I was freestyling it.

I wanted to throw out a feature idea I thought of: add a custom action button option to call a service. It would be really helpful if I could pull up the notification and choose to unlock the front door or arm the alarm.

Thanks @francesc0

There’s a branch on the GitHub repo with a custom action option allowing you to configure something individual.
Happy to have more people test it.

Ah perfect. My apologies for not seeing that first.

I just added blueprint 0.12.0.1g. If I understand this correctly, I need to enter a custom URL to get this working. I’m not familiar with custom URLs in HA yet, can you help me understand how I could do that?

Or is there a way to set a name for the notification action and then use that in a separate automation to call services?

In fairness the custom action branch is less advanced than the current beta. It has not got the latest few updates. It will all come up to speed when I merge it eventually.

But the easiest way is to go to the branch and copy the content of the blueprint, then paste it into a new yaml file in your blueprint directory within HA.

Template idea is to allow multiple cameras in ‘entity’, in my case I have several cameras with ‘private’ area of the house, so I want to have notification when something is detected in this private area.
So right now I need to duplicate the same automation (and only change the camera), would be good to allow multiple cameras . Thx

Hello, I appreciate all the work you did putting the blueprint together! I unfortunately haven’t been able to get the automation to fire.

I built a simple automation that uses the binary sensor from the frigate integration and that fires every time, but only contains text.

Here’s my automation file, does anyone see anything out of place?

- id: '1689887976581'
  alias: Blueprint Person Notification 
  description: ''
  use_blueprint:
    path: SgtBatten/Stable.yaml
    input:
      camera: camera.wyze_testcam_2
      notify_device: 9aa21c85451c84f4deeedf305f167991
      message: Person on the camera
      critical: 'true'
- id: '1689888116149'
  alias: Person on Camera Notification
  description: ''
  trigger:
  - platform: state
    entity_id:
    - binary_sensor.wyze_testcam_person_occupancy
  condition: []
  action:
  - service: notify.mobile_app_colin_phone
    data:
      message: Person on the Cam-Simple
  mode: single

Assuming your camera in frigate does not include _2 that is the issue. Edit the yaml of the automation to remove the _2 or use the beta version which strips them out. Hoping a future frigate update will bring a new parameter I can use to make it work for everyone.

I’ll try that out. I thought the _2 was strange but it matched the entity so I initially ruled it out.

I use the entity id to make it easier for people with the dropdown but the automation looks for a match with frigate, hence yours is not working.