I’ve been trying to avoid spamming it in hunterjms absence but yes, seeing as the blueprint from the OP doesn’t work with frigate 0.11 more and more people are popping in with issues.
Rather than post the links again, heres a link to a post i’ll maintain with the details.
Well i didn’t realise it when i added it but you can actually already do that using the critical notification options in the beta (not in stable).
instead of a boolean true or false it accepts a template, so you could have any combination of things determine if it is critical or not including the state of another entity.
Frigate is 0.10.1-83481AF, blueprint ui says Frigate Notification (0.10.0)
Frigate Notifications are turned on, per the Developers Tools → States tab.
I’m not quite sure what entity id means, but an example from Frigate Debug:
“cameras”: {
“camera1”: {
HA seems to proper-case all its entities (e.g. Camera1 Person), but I’ve tried entering camera1 and Camera1 into various alerts, none have ever fired.
In the Logbook tab, the only events I see are 'Camera1 person occupancy" detected occupancy and then cleared (no occupancy detected). I also see similar zone occupancy transitions. I don’t see other routine Frigate activity events. In reading the blueprint gist, I don’t see the string occupancy, so I’m wondering if my Frigate instance just isn’t creating the events that the blueprint looks for?
I’m not sure if it an actual issue or just a display issue for me currently but the quote symbols you have used above are not the right symbols and cause errors in the template editor when i pasted it into my own.
try copying this "{{'false' if is_state('input_boolean.night_mode', 'off') else 'true' }}"
You need to fix the fps_value line as discussed earlier in this thread or use my or any other fork which already has a fix applied. The blueprint works great in 0.11 still, it just has one little error.
I think mqtt add-on is set up, possibly even correctly. Everything else in the Frigate integration works fine, I can view new clips, etc.
From the logs, I’m getting an error in the automation script:
2022-11-17 17:51:04.746 ERROR (MainThread) [homeassistant.components.automation.frigate_notification_0_10_0_2] Error rendering variables: ValueError: Template error: int got invalid input 'unknown' when rendering template '{{ fps_value|int if is_number(fps_value) or 5 }}' but no default was specified
(Note my Hikvision cameras can only provide the motion feed at 6fps…)
A full transaction looks like:
2022-11-17 17:51:04.742 DEBUG (MainThread) [homeassistant.components.automation.frigate_notification_0_10_0_2] Automation trigger 'None' triggered by mqtt topic frigate/events
2022-11-17 17:51:04.746 ERROR (MainThread) [homeassistant.components.automation.frigate_notification_0_10_0_2] Error rendering variables: ValueError: Template error: int got invalid input 'unknown' when rendering template '{{ fps_value|int if is_number(fps_value) or 5 }}' but no default was specified
2022-11-17 17:51:04.754 DEBUG (MainThread) [homeassistant.components.automation.new_automation_any_camera_3] Automation trigger 'None' triggered by mqtt topic frigate/events
2022-11-17 17:51:04.762 ERROR (MainThread) [homeassistant.components.automation.new_automation_any_camera_3] Error rendering variables: ValueError: Template error: int got invalid input 'unknown' when rendering template '{{ fps_value|int if is_number(fps_value) or 5 }}' but no default was specified
2022-11-17 17:51:04.773 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on frigate/camera3/person: b'1'
2022-11-17 17:51:12.540 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on frigate/camera3/person: b'0'
[ and a binary message that I edited out ]
I now see others having the same issue on the github gist. Attempting to edit the yaml blueprint to avoid this error…
I just tested by setting cooldown to 300, walking in front of my cam, leaving and waiting 30 seconds then walking in front of it again and the second event was correctly not sent to my phone. Were you referring to a specific situation? I’ve not edited the cooldown code at all from original.