-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Blueprint not working #185
Comments
Same issue. My old notifications based on the SgtBatten blueprint work fine. Doesn't make much sense given that they both fire on frigate/events |
I'm just now joining this adventure and same for m e. I tried the beta still not working. I tried the SGTBatten blueprint and I got a notification right away. First I thought maybe something was wrong with the HA app on my iPhone. |
Could someone with this issue post traces? |
I would love to, but I just installed two days ago and I've only run the new blueprint. As a result, my automation has never triggered. See below that the SgtBatten blueprint has triggered, and I'll post the trace for that. trace automation.frigate_notifications_0_12_0_4c 2025-01-27T22_09_09.569034+00_00.json Edit: on the off chance the issue was having both automations enabled at the same time and using the same trigger (mqtt frigate/events), I turned off the SgtBatten version and just ran the 1.3.7 blueprint. No luck there. |
I've never gotten it to actually run. When I do try to make it run I get this error in logs: Logger: homeassistant.components.automation.ai_event_summary_llm_vision_v1_3_7 Error rendering variables: UndefinedError: 'dict object' has no attribute 'payload_json' |
The issue is likely the updated frigate trigger: trigger: mqtt
topic: frigate/events
id: frigate_trigger
enabled: "{{mode == 'Frigate'}}" The |
Same thing here, i cant have trace because they never run. If you want to try something i can ! |
+1 |
I may troubleshoot based on this a bit. Did the MQTT payload trigger change in this version 1.3.7? It looks like SgtBatten listens for the event type "new," while LLM Vision listens for the event type "end." Wondering if that could be the issue. Will try that too. |
Sorry to keep updating, but could it be that "mode:" as a blueprint input variable is conflicting with HomeAssistant's "mode:" setting? |
Im not sure how i can do, but can we test a basic automation without the blueprint to see if is working ? |
You can do that under developer tools > actions |
Confirmed, in part. By removing any condition based on Here's what I changed it to: trigger:
- platform: mqtt
topic: frigate/events
id: frigate_trigger
- platform: state
entity_id: !input camera_entities
to: !input trigger_state
id: camera_trigger
- platform: state
entity_id: !input motion_sensors
to: "on"
id: motion_sensor_trigger
condition:
- condition: template
value_template: >
{{ trigger.payload_json["type"] == "new"
and ('camera.' + trigger.payload_json['after']['camera']|lower) in camera_entities_list
and ((object_types_list|length) == 0 or ((trigger.payload_json['after']['label']|lower) in object_types_list))
and (not required_zones_list or ((set(trigger.payload_json['after']['current_zones']).intersection(required_zones_list))))
and not (ignore_stationary and trigger.payload_json['after']['stationary'])
}} Note that it also wasn't triggering when type was set to |
I also have error in log Error rendering variables: UndefinedError: 'dict object' has no attribute 'payload_json' Even that automation was not triggered. |
Have you change it into the blueprint directly ? |
They have only example for camera mode not frigate :( |
I installed 2 days ago and first I made an automation triggred by a door open, and it works fine. Then I installed the blueprint because I wanted to use it with frigate, but it won't trigger... |
+1 have the same issue. Automation has not triggered since updating blueprint to 1.3.7. Beta blueprint also affected. Tried downgrading blueprint to 1.3.5 which restored trigger functionality, but instead errored when sending OpenAI api request. Could be that 1.3.5 is not compatible with the latest version of the integration? |
@valentinfrlch Does you need some info to investigate ? |
I also did what @tvofi did to no avail, except I'm using Ollama. Any idea what's happening? |
Yes. This is what causes the problem. |
I think I have found a way to solve this issue. The hotfix is live in the beta blueprint. Feedback is welcome! To install the beta blueprint, add this as source:
|
I tried it, while I'm not getting that error message I mentioned above, the automation still doesn't trigger. I'm attaching a trace trace automation.ai_event_summary_beta_test 2025-01-30T22_03_22.558344+00_00.json |
The beta blueprint is working for me |
Tried the beta, still seem to get the same error: Logger: homeassistant.components.automation.ai_event_summary_beta_test Error rendering variables: UndefinedError: 'dict object' has no attribute 'payload_json' |
I installed the new beta blueprint, but the automation still don't trigger |
Just to make sure as it's not been explicitly mentioned, you do have to create a new automation using the beta blueprint. |
Yeah, that's what I did. I deleted the old one and create a new automation based on beta blueprint |
Can you share all what you entered in to make the blueprint work for you? I've tried using required zones and not as well as object types. I'm only trying frigate and not camera |
I'm using frigate with a single camera, a single required zone and object type set to person. I have a single notify device, the remember option enabled and i'm sending to openAI. All other settings are left at default. |
|
I'm also having the error, even in the beta version. I tried removing the
multiple camera entities used for frigate to only use one camera but same
result.
… Message ID: ***@***.***>
|
I import the beta and create new automation. Automation are now trigger and look working fine with zone and object. Sometine i receive false positive and i got no snapshot or live preview. But the only thing remain is Ollama look like they doesnt answer. I only receive Dog seen or Person seen. I look into the log and i got this : |
I've tried again. Still same error for me. I have Frigate integration installed from HACS, version 5.7.0. Not sure if that matters or not. I use docker version of HA so I don't have add-ons. |
Hi! |
Well it did fire, otherwise you wouldn't see a trace. Did you add the camera to the blueprint? |
I added the frigate camera yes. It (the notification) does not fire. The only thing that fires is the trigger from the events MQTT. Some other template setting is consistently stopping it. |
Can you share a trace? The main issue (automation doesn't trigger) seems to be resolved however. |
I see the regular blueprint was updated recently. Both do not work and I'm still getting the same error. |
Please share traces if you want to report a bug. Also, unless you have exactly the same problem as someone else who has already created an issue, create a new issue. Posting different bugs in the same issue leads to confusion. |
I only came across this blueprint today, and hence have the latest of everything installed. I Spent last 2 hours chasing my tail but I cant get it to fire at all. Then I came across this and it sounds the same issue. The other Frigate Notifications blueprint is running fine, so I know I have Frigate and Mqtt etc etc all set up correctly. I have tried so much and finally needed to o a trace, which is new to me. I suspect I have the same as the lukaszzyla above. Here is some info - My mode is set to Frigate I figure all the rest is irrelevant as its not firing. In case the image does not work above, the first step is this - trigger: mqtt Then the next a/b is this - Executed: 8 February 2025 at 15:10:03 with this in the step config - condition: template Current Blueprint config if this helps (I have tried shedloads of different options - id: '1738990945520' Further to this, Id like to add - I tried the beta and it also did the exact same thing. I restarted HA after deleting the original and blueprint, I also set one cam, one zone, person like another post above - nothing works.. |
That’s a few of us then. |
For now I suggest switching to the camera mode. If you have the frigate integration installed you should see some occupancy sensors ( |
I messed with this all morning, and the camera / occupancy sensor thing does trigger now, and gets more down the trace, and while I thought it was not working for the sending, it in fact was working (just was not popping up on my iphone). On a side not, the latest version of frigate popped up (0.15) 30 mins ago, so I installed that, and it has all the AI stuff built into it so I am moving focus to that for now - it is working well and adding its own description to events. Notifications from that could make your blueprint obsolete I expect. I will come back to yours once the frigate stuff it again working. |
The blueprint has become complicated, and many people have had problems with it. I haven't upgraded Frigate to 0.15, but I think having the summaries in Frigate directly is easier to set up and use. I don't think it'll make the blueprint obsolete, but perhaps the "Frigate" mode is unnecessary now. |
Im looking to switch camera mode but quick question does i need to select the 4 binary create by home assistant for my specific camera ? Also in the trigger state is set for recording. But its look like when a event finish status stay at recording. |
You need to select one |
I would like to thank you for your help. I was able to do automation witj camera mode and binary sensor frigate. I have 2 last question. Is it possible to add a wait time before sending notification in the blueprint ? Why ? Because sometime they need a little delay to provide the summerrize or to the video be available. Also, i have a couple of camera and some camera looking at same place but different angle. Does the blueprint can detect that and summarize only one of them ? |
A beta for v1.4.0 of both the blueprint and the integration is out now. The blueprint has been restructured significantly to fix these issues. If you have feedback or suggestions, please join the discussion here: #213 |
Bug Description
Since update the blueprint to 1.3.7 nothing trigger the automation, but if i look into frigate, i got event
Version: 1.3.7
Service Call
Logs
Additional context
The text was updated successfully, but these errors were encountered: