Frigate Mobile App Notifications 2.0

How to trigger / test the automation? How could I simulate an event to trigger the automation?
When I just run the automation, then nothing is notified. Because of the conditions.
It looks like I need to simulate this kind of condition

alias: Frigate Event
conditions:
  - condition: trigger
    id: frigate-event
  - '{{ is_state(this.entity_id, ''on'') }}'
  - >-
    {{ not this.attributes.last_triggered or (now() -
    this.attributes.last_triggered).seconds > cooldown }}
  - >-
    {{ not disable_times|length or not now().hour in
    disable_times|map('int')|list }}

but how?
or are there other ways to simulate?

2 ways. Walk outside and make an event, or publish an Mqtt message or messages that suitably representative event.

This works great. is there a way to integrate this with the reolink (or any) doorbell when the doorbell is actually pressed, it alerts and brings up the camera.person event?

You can use it as a condition but not the trigger.

Is there a way to make it a trigger?

I tried to use an MQTT recorder / replay, but the recorder did not work well. Then I used some parts from inside a trace.

I just wanted to evaluate, why it can notify the HA app, but not additionally telegram. And I found that telegram needs other data.

Are you using the telegram branch for your telegram attempt? It’s a bit out of date but I attempted it for people to give feedback on

When I click “View Clip” in the notification, it takes me to safari. Not sure how to fix this one, because I guess it will normally take me to HA app to view the clip there insted of the web browser. I can’t get Live View to work either. Using iOS 17.2.1 if that matters.

Another thing which I don’t really know how to add is multiple devices to the same automation, so I don’t have to use 2 of the same automation but change the devices, there must be a way to group devices, but idk how
? :slight_smile:

Try not using a baseurl.

You make a device group somewhere in your yaml config and use it in the group field.

I didn’t use base url, so that’s not the issue, it works fine on my android. The device group worked great, i used this below, maybe will help someone else.

notify:
  - name: all_phones
    platform: group
    services:
      - service: mobile_app_my_phone
      - service: mobile_app_wife_phone

In that case it’s just iOS doing iOS things. There are a number of long term GitHub issues I can’t work out how to fix because it’s just iOS problems

I found a Reddit thread that could be the fix, I haven’t tried it yet but it seems like there is something to do with h.265 cameras. I’ll test it tomorrow and see if it works, seems like -tag:v hvc1 is the issue, not even sure what it does, but if it works then that’s awesome. :grinning:

ffmpeg:
  hwaccel_args: preset-vaapi
  input_args: -tag:v hvc1 
  output_args:
    record: preset-record-generic-audio-aac

https://www.reddit.com/r/homeassistant/comments/158bbq4/frigate_cant_send_clips_from_notifications/

Oh yeah I assumed it worked normally. Most mobile browsers can’t do h.265

I would not recommend this, this is overwriting all of the necessary input args that frigate has as default

Well it solved the issue, what do you reckon it breaks?

So i’m having an issue with Device Group. I get the message Message malformed: Unknown device ''

This happens when I leave “Mobile Device” empty and
Notification Group as “phonegroup”

my configuration.yaml has

notify:
- name: phonegroup
    platform: group
    services:
      - service: mobile_app_myandroidphone
      - service: mobile_app_wifeiphone

Thanks.

You can’t leave device empty any more.

It will only send to the group still.

Hi, i have 5 cameras, and this blueprints sends notification on my android phone for 4 of them, except one.

Frigate is an addon of Home Assistant, and I can see the snapshots and the recordings of all the cameras in the frigate part of HA, even the problematic one.
When I listen to the MQTT topic frigate/events, I even get this (“chemin” is the problematic camera)

Message 6 reçu sur frigate/events à 14:58 :
{"before": {"id": "1705749125.598494-aemttl", "camera": "chemin", "frame_time": 1705759131.586227, "snapshot_time": 1705759129.181055, "label": "person", "sub_label": null, "top_score": 0.75390625, "false_positive": false, "start_time": 1705759125.597494, "end_time": null, "score": 0.6640625, "box": [575, 221, 616, 317], "area": 3936, "ratio": 0.4270833333333333, "region": [376, 97, 704, 425], "stationary": false, "motionless_count": 0, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true}, "after": {"id": "1705759125.597494-aemttl", "camera": "chemin", "frame_time": 1705759131.586227, "snapshot_time": 1705759129.181055, "label": "person", "sub_label": null, "top_score": 0.75390625, "false_positive": false, "start_time": 1705759125.597494, "end_time": 1705759136.775147, "score": 0.6640625, "box": [575, 221, 616, 317], "area": 3936, "ratio": 0.4270833333333333, "region": [376, 97, 704, 425], "stationary": false, "motionless_count": 0, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true}, "type": "end"}
QoS: 0 - Retain: false

And when I create an automation by myself, it works, a notification message is send.
This camera is called camera.chemin_2 and works with wifi. All the others are wired.
Where could be the problem ?

The issues is the _2

Can you rename the entity in home assistant?

Alternatively simply delete the _2 from the automation in yaml mode.

Oh thanks, it is working now :grinning:. And thank you for your great work !