Frigate Mobile App Notifications 2.0

you were right, I had to update the docker image
cheers

With 0.14 only just having come out, when will 0.15 be?

Itā€™s going to be a smaller update

ok thanks. Just to clarify, with Frigate 0.15 will the snapshots then be available without having recording enabled?

Not in the review page, that behavior stays the same.

Iā€™m having issues the following issue show up in my logs on a non-regular cadence when the automation fires (it doesnā€™t happen every time, maybe a couple of times a day using my video doorbell which has constant activity of cars driving by):

Logger: py.warnings
Source: helpers/template.py:333
First occurred: 9:08:20 AM (3 occurrences)
Last logged: 9:08:20 AM

<unknown>:1: SyntaxWarning: invalid decimal literal

I can provide the full debug log if that helps, but it happens right when it fires.

Yeah Iā€™m not sure what to make of the error.

2024-08-30 09:08:20.955 DEBUG (MainThread) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'frigate/events', ...  (1310 bytes)
2024-08-30 09:08:20.955 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on frigate/events (qos=0): b'{"before": {"id": "1725034100.514825-0isech", "camera": "front_door", "frame_time": 1725034100.514825, "snapshot": null, "label": "car", "sub_label": null, "top_score": 0.0, "false_positive": true, "start_time": 1725034100.514825, "end_time": null, "score": 0.84375, "box": [600, 994, 922, 1112], "area": 37996, "ratio": 2.7288135593220337, "region": [432, 758, 1084, 1410], "stationary": false, "motionless_count": 0, "position_changes": 0, "current_zones": [], "entered_zones": [], "has_clip": false, "has_snapshot": false, "attributes": {}, "current_attributes": []}, "after": {"id": "1725034100.514825-0isech", "camera": "front_door", "frame_time": 1725034100.710479, "snapshot": {"frame_time": 1725034100.710479, "box": [472, 994, 762, 1105], "area": 32190, "region": [268, 729, 960, 1421], "score": 0.75390625, "attributes": []}, "label": "car", "sub_label": null, "top_score": 0.76171875, "false_positive": false, "start_time": 1725034100.514825, "end_time": null, "score": 0.75390625, "box": [472, 994, 762, 1105], "area": 32190, "ratio": 2.6126126126126126, "region": [268, 729, 960, 1421], "stationary": false, "motionless_count": 1, "position_changes": 0, "current_zones": [], "entered_zones": [], "has_clip": false, "has_snapshot": false, "attributes": {}, "current_attributes": []}, "type": "new"}'
2024-08-30 09:08:20.955 DEBUG (MainThread) [homeassistant.components.mqtt.models] Rendering incoming payload '{"before": {"id": "1725034100.514825-0isech", "camera": "front_door", "frame_time": 1725034100.514825, "snapshot": null, "label": "car", "sub_label": null, "top_score": 0.0, "false_positive": true, "start_time": 1725034100.514825, "end_time": null, "score": 0.84375, "box": [600, 994, 922, 1112], "area": 37996, "ratio": 2.7288135593220337, "region": [432, 758, 1084, 1410], "stationary": false, "motionless_count": 0, "position_changes": 0, "current_zones": [], "entered_zones": [], "has_clip": false, "has_snapshot": false, "attributes": {}, "current_attributes": []}, "after": {"id": "1725034100.514825-0isech", "camera": "front_door", "frame_time": 1725034100.710479, "snapshot": {"frame_time": 1725034100.710479, "box": [472, 994, 762, 1105], "area": 32190, "region": [268, 729, 960, 1421], "score": 0.75390625, "attributes": []}, "label": "car", "sub_label": null, "top_score": 0.76171875, "false_positive": false, "start_time": 1725034100.514825, "end_time": null, "score": 0.75390625, "box": [472, 994, 762, 1105], "area": 32190, "ratio": 2.6126126126126126, "region": [268, 729, 960, 1421], "stationary": false, "motionless_count": 1, "position_changes": 0, "current_zones": [], "entered_zones": [], "has_clip": false, "has_snapshot": false, "attributes": {}, "current_attributes": []}, "type": "new"}' with variables {} with default value 'default' and Template<template=({{ value_json['after']['camera'] | lower | replace('-','_') }}/{{ value_json['type']}}) renders=114>
2024-08-30 09:08:20.955 DEBUG (MainThread) [homeassistant.components.automation.front_door_alert_blueprint] Automation trigger 'None' triggered by mqtt topic frigate/events
2024-08-30 09:08:20.956 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=Front Door: Alert w/ Blueprint, entity_id=automation.front_door_alert_blueprint, source=mqtt topic frigate/events>
2024-08-30 09:08:20.956 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.front_door_alert_blueprint, old_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:19.395000-07:00, mode=parallel, current=0, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>, new_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=1, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>>
2024-08-30 09:08:20.956 INFO (MainThread) [homeassistant.components.automation.front_door_alert_blueprint] Front Door: Alert w/ Blueprint: Running automation actions
2024-08-30 09:08:20.958 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_reported[L]: entity_id=automation.front_door_alert_blueprint, old_last_reported=2024-08-30T09:08:20.956436-07:00, new_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=1, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>>
2024-08-30 09:08:20.958 INFO (MainThread) [homeassistant.components.automation.front_door_alert_blueprint] Front Door: Alert w/ Blueprint: Choose at step 1: Frigate Event: Running automation actions
2024-08-30 09:08:20.958 INFO (MainThread) [homeassistant.components.automation.front_door_alert_blueprint] Front Door: Alert w/ Blueprint: Choose at step 1: Frigate Event: Executing step setting variables
2024-08-30 09:08:20.959 WARNING (MainThread) [py.warnings] <unknown>:1: SyntaxWarning: invalid decimal literal

2024-08-30 09:08:20.960 WARNING (MainThread) [py.warnings] <unknown>:1: SyntaxWarning: invalid decimal literal

2024-08-30 09:08:20.962 WARNING (MainThread) [py.warnings] <unknown>:1: SyntaxWarning: invalid decimal literal

2024-08-30 09:08:20.962 INFO (MainThread) [homeassistant.components.automation.front_door_alert_blueprint] Front Door: Alert w/ Blueprint: Choose at step 1: Frigate Event: Test condition Notifications enabled for object label: False
2024-08-30 09:08:20.963 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.front_door_alert_blueprint, old_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=1, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>, new_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=0, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>>
2024-08-30 09:08:20.963 DEBUG (MainThread) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'frigate/front_door/car', ...  (1 bytes)
2024-08-30 09:08:20.963 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on frigate/front_door/car (qos=0): b'3'
2024-08-30 09:08:20.963 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.front_door_car_count, old_state=<state sensor.front_door_car_count=2; unit_of_measurement=objects, icon=mdi:car, friendly_name=Front Door car count @ 2024-08-30T09:08:19.396575-07:00>, new_state=<state sensor.front_door_car_count=3; unit_of_measurement=objects, icon=mdi:car, friendly_name=Front Door car count @ 2024-08-30T09:08:20.963328-07:00>>
2024-08-30 09:08:20.963 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_reported[L]: entity_id=binary_sensor.front_door_car_occupancy, old_last_reported=2024-08-30T09:08:19.517029-07:00, new_state=<state binary_sensor.front_door_car_occupancy=on; device_class=occupancy, icon=mdi:car, friendly_name=Front Door car occupancy @ 2024-08-30T09:08:18.966296-07:00>>
2024-08-30 09:08:20.963 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: <Event automation_triggered[L]: name=Front Door: Alert w/ Blueprint, entity_id=automation.front_door_alert_blueprint, source=mqtt topic frigate/events>
2024-08-30 09:08:20.963 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: <Event state_changed[L]: entity_id=automation.front_door_alert_blueprint, old_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:19.395000-07:00, mode=parallel, current=0, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>, new_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=1, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>>
2024-08-30 09:08:20.964 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: <Event state_changed[L]: entity_id=automation.front_door_alert_blueprint, old_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=1, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>, new_state=<state automation.front_door_alert_blueprint=on; id=1724731961250, last_triggered=2024-08-30T09:08:20.956409-07:00, mode=parallel, current=0, max=10, friendly_name=Front Door: Alert w/ Blueprint @ 2024-08-30T08:35:20.211890-07:00>>
2024-08-30 09:08:20.964 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: <Event state_changed[L]: entity_id=sensor.front_door_car_count, old_state=<state sensor.front_door_car_count=2; unit_of_measurement=objects, icon=mdi:car, friendly_name=Front Door car count @ 2024-08-30T09:08:19.396575-07:00>, new_state=<state sensor.front_door_car_count=3; unit_of_measurement=objects, icon=mdi:car, friendly_name=Front Door car count @ 2024-08-30T09:08:20.963328-07:00>>
2024-08-30 09:08:20.964 DEBUG (MainThread) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'frigate/front_door/all', ...  (1 bytes)
2024-08-30 09:08:20.964 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on frigate/front_door/all (qos=0): b'3'
2024-08-30 09:08:20.964 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.front_door_all_count, old_state=<state sensor.front_door_all_count=2; unit_of_measurement=objects, icon=mdi:shield-alert, friendly_name=Front Door all count @ 2024-08-30T09:08:19.399614-07:00>, new_state=<state sensor.front_door_all_count=3; unit_of_measurement=objects, icon=mdi:shield-alert, friendly_name=Front Door all count @ 2024-08-30T09:08:20.964439-07:00>>
2024-08-30 09:08:20.964 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_reported[L]: entity_id=binary_sensor.front_door_all_occupancy, old_last_reported=2024-08-30T09:08:19.517451-07:00, new_state=<state binary_sensor.front_door_all_occupancy=on; device_class=occupancy, icon=mdi:home, friendly_name=Front Door all occupancy @ 2024-08-30T09:08:18.967604-07:00>>
2024-08-30 09:08:20.965 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: <Event state_changed[L]: entity_id=sensor.front_door_all_count, old_state=<state sensor.front_door_all_count=2; unit_of_measurement=objects, icon=mdi:shield-alert, friendly_name=Front Door all count @ 2024-08-30T09:08:19.399614-07:00>, new_state=<state sensor.front_door_all_count=3; unit_of_measurement=objects, icon=mdi:shield-alert, friendly_name=Front Door all count @ 2024-08-30T09:08:20.964439-07:00>>

If I have more that one camera, do I need to duplicate the Automation for each cameras, correct? there is no way to use a single automation to control more than one camera with this blueprint, thatā€™s corrert?

[quote=ā€œbremby, post:2101, topic:559732ā€]
do I need to duplicate the Automation for each cameras,
[/quote]Text

Yes currently you need to do one for each.

Hi
need your help after a days of struggling,
i just canā€™t make the automation triggerd.

frigate config:
image

in emqx:

if someone can help me to find the problem?

Iā€™m having the same issue. Unless I set Base URL which makes everything open in browser (which works fine, but isnā€™t that ā€œseamlessā€), everything will open in HA? Image will open super zoomed in / oversized and thereā€™s no way to zoom out. Is that the expected behaviour?

Not expected but all devices are different i guess.

Itā€™s much better with a baseurl, iā€™ve never used it without.

Not sure what you are trying to point out. need more info

If useing VPN - you donā€˜t Need it.

Hi
all on HA with integration and addon .
on frigate i see the alerts and the snapshots on media.
i habe only one camera right now.
the automation in on default settings,

i just donā€™t know where to look to find the problem.

what info you need?

I enabled both ā€œNotification Sound - iOS only (Optional)ā€ and ā€œAlert Once (Optional)ā€.
It should be noted that ā€œUpdate Image (Optional)ā€ is also enabled (not sure if this is relevant).
Here is the problem : When a person is detected, I am spammed with notifications.The phone beeps (notification sound) and vibrates maybe each second.
What would be the best way to get rid of this notification bombing ?
I do want the service to update the snapshot if it is a ā€œbetterā€ image (does is rely on the confidence score % ?), but I want my phone to stop going crazy. The detected object is the same person. This is like a notifications attack from the start of the detection until the (same) person disappears.
Is it related to a Frigate setting ? Or this blueprint ?

I may have an idea.

Can you reset the notification sound to whatever is there by default and see if anything is different.

If itā€™s not triggering at all (no traces) then the issue is either with the mqtt setup or the camera name not matching frigate.

Same. Unfortunately.
I now have the default beep obviously. But I still was sent 3 beeps within less than 10 seconds.
I do have one single notification on the iPhone (one single entry in the notifications feed), but I think it beeps/vibrates every time it refreshes that one notification with a ā€œbetterā€ image ?