-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frigate 0.14 #216
base: main
Are you sure you want to change the base?
Frigate 0.14 #216
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Testing with HenningL's change. Only get alerts IF zone filter switch is OFF. Can't have any zones or object filters as well or automation does not fire. When it does fire, I get alerts on my iWatch, but no snaps or video. Not sure if it helps, but error message from logs: Logger: homeassistant.helpers.template Template variable warning: 'new_snapshot' is undefined when rendering 'DEBUG (in loop): Send Notification: {{ custom_filter and not home and zone_filter and zone_multi_filter and state_true and (new_snapshot or presence_changed or zone_only_changed or entered_zones_changed ) }} Info: sublabel: {{sub_labels | join(', ')}}, image: "{{base_url}}/api/frigate{{client_id}}/notifications/{{events[0]}}/{{attachment}}" Title: {{title}} message: {{message}} iOS sound: {{'Critical' if critical else 'disabled by alert once' if alert_once else 'enabled'}}, Android Sound: {{'disabled by alert once' if alert_once else 'enabled'}}, iOS url: /api/frigate{{client_id}}/notifications/{{id}}/{{camera + '/clip.mp4' if video|length>0 and wait.trigger.payload_json['type'] == 'end' else attachment }} video: "{{video}}" critical: {{critical}}, Triggers: Presence Changed: {{presence_changed}}, Entered Zones Changed: {{'True' if event['before']['data']['zones'] != event['after']['data']['zones'] else 'False'}}{{' - Disabled' if not zone_only}}, Conditions: Filters: Zones: Zone Filter Enabled: {{zone_only}}, Multi Zone Enabled: {{zone_multi}}, Required Zones: {{input_zones}}, Last Zones: {{last_zones}}, Entered zones: {{enteredzones|list|length}} - {{enteredzones}}, TEST: {{'PASS' if not zone_only or (not zone_multi and zones|select('in', enteredzones)|list|length ) else 'PASS (Multi)' if zone_only and zone_multi and zone_multi_filter else 'FAIL (Multi)' if zone_only and zone_multi else 'FAIL' }}, Object Filter: Input: {{input_labels}}, TEST: {{'PASS' if not labels|length or object in labels else 'FAIL'}}, Presence entity (not home): Entity: {{presence_entity}}, TEST: {{'PASS' if not home else 'FAIL'}}, Time Filter: Disabled times: {{disable_times}}, TEST: {{'PASS' if now().hour not in disable_times else 'FAIL'}} State Filter: state filter toggle on: {{state_only}}, state filter entity: {{input_entity}}, required states: {{input_states}}, TEST: {{'PASS' if state_true else 'FAIL'}}, Custom Filter: {{'PASS' if custom_filter else 'FAIL'}},' Trying to view clip on iPhone, I get this message: |
There are some inconsistencies with the alerts;
|
Keep these coming, i appreciate it. Not much time so will update when i can. This is valuable though. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
minor refactors Removed loop for now to focus on core notifications, may be permanent. time will tell
refactor some of the code
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
Fixed this |
Pulled the latest changes. Working great so far |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
* unify android and IOS attachment options * Fix attachment input * refactoring * restore attachment for IOS * dont set content type test * try to fix content-type * big refactor * add comment * Update Beta * Reduce Description bloat * Update Beta
review id was missing
@ppetro08 It will handle it now |
Not sure how to improve this one. It is a list of unpredictable length ETA: is there a method to get the last element in the array? could reverse it maybe |
Fixed now mate |
Fixed |
If I could get a show of hands of the latest version working I think we are good enough to merge into beta. Please share your automation configs if experiencing issues and enable debug to share anything relevant. |
Installed the latest version today. So far so good! |
First of all, thank you so much @SgtBatten for all your hard work! The notifications seem to be coming through with an image for the scenario of an alert happening from an event that started as a detection. Config
Couple more issues that I've noticed, some may be the automation and some may be tweaks I need to make to my frigate config.
MQTT Payload
|
Should be fixed now.
Fixed, Thanks
Have you always only sent an image and not a video? I've always sent a video until now as we have the review gif. I tried rolling back and it didnt help. I tried removing the video key from the blueprint completely and it didn't help so it's not an issue with setting video to None specifically. |
Thanks for the quick fixes! I've always used snapshot for 2 reasons. One is because if I get a notification with a picture of nothing I want to know what the notification was sent for, in this instance I could look at frigate and see what the alert was for around that time period. And 2 is sometimes the gifs are lengthy and I just want to know who/what triggered the notification since I have the issue of cars on the street getting detected and extending the alert. The issue with the text sending with the image seems flaky sometimes it will work and sometimes I get just the image or just the text. Will the gif get attached to the notification before the "end" event is sent? Also I'd be happy to help debug the automation but I'm not sure how to go about it, I'm pretty green to Frigate and Home Automation. |
Agreed on the snapshot. Sometimes you get the box. Some times you don’t. Not really sure what’s driving this behaviour - I’ve just been assuming that the snapshot wasn’t available or something similar from frigate but it may be a bug in the automation? |
I typically get the first few frames up to a couple of seconds of the object in the initial notification, then the full gif after it is over. I'd consider a seperate input for the initial notification and the update loop maybe. Then you set snapshot initially and gif for any updates. |
It's odd. I have 100% success but setting the text in the title |
For testing, try an initial delay of 1-2 seconds. |
Already at 2 seconds initial delay. Updated to 5 and will test tomorrow :) |
be aware 2015.1.3
This automation references the following entities, which are unknown to
Home Assistant:
- input_text.tts_notifications
Andres Roepke
…On Mon, Jan 20, 2025 at 20:11 Ioannis Giannakas ***@***.***> wrote:
Sometimes you get the box. Some times you don’t.
For testing, try an initial delay of 1-2 seconds.
Already at 2 seconds initial delay. Updated to 5 and will test tomorrow :)
—
Reply to this email directly, view it on GitHub
<#216 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIOTKWUU6ZENNA7O2UG3YUT2LV7D3AVCNFSM6AAAAABIN47W4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBTGM2DGOJSGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Just had an interesting one today, I got a notification with text and image and my wife only got an image. lol I'll try out the gif to see how I like it now that I've gotten Frigate fine tuned to have less false positives. |
@igiannakas Have you updated to 0.14.0.2s yet? There was a fix in there for snapshots. |
Their issue is not getting bounding boxes. Which as far as I know are rendered in real time but possibly only during the event. So is there a chance your event is only a few seconds long when these go missing @igiannakas |
Please check the TTS error |
That’s quite possible. In any case this is by far not a deal breaker as the image does come through just not with the bounding box. @ppetro08 indeed I am on 0.2.s. Updating now to remove the TTS error too. |
TTS error is corrected in the latest commit. |
Bugs
Features
To Do:
Thoughts