I can edit it and when i try to safe it it says "meassage malformed: device unknown ‘false’
My system is version 2023.11.2
Interestingly, while poking around just now i found that i have 2 frigate notification blueprints??!!, one without a version number and one with 0.12.0.1. Something seems to be odd
I’ve found one issue preventing the initial action from working which is probably why you are seeing variations. Will try to fix it tonight.
If you want to do it though edit the blueprint and on line 938 there are 3 places it uses the key entered_zones. this needs to change to enteredzones with no underscore
here is the complete section with the fix
- alias: "Custom Action Auto"
choose:
- conditions:
- "{{ custom_action_auto |length > 0 }}"
- "{{ not zone_only or (not zone_multi and zones|select('in', enteredzones)|list|length > 0) or (zone_multi and enteredzones|length > 0 and zones |reject('in', enteredzones) |list |length == 0) }}"
- "{{ not initial_home }}"
- "{{ not state_only or states(input_entity) in states_filter }}"
Hello, i tried that one on the beta but did not change a thing.
It lets me save as soon i put a device name in but was using group name before. Hope that leads u in samo direction.
Is there actually a practical way to debug and single stepping like in regular sdk’s?
Correct, use a device and a group. it will behave as if you only use a group as per the group description.
The traces usually offer answers as you can see where things are failing, but only if the automation starts, until you add a device it wont be working.
HA 2023.11 enforces a new validation on the device input that they did not previously, hence it now being mandatory.
I was now able to jump in Front of the camera and guess what.
Another issue
My group for notifications is called “notificationgroup” and after frigate saw me and triggered the event i got this in traces:
"Stopped because an error was encountered at November 15, 2023 at 21:14:51 (runtime: 0.02 seconds)
Not sure where it gets the trailing _ from but i tried to find it in the code and u have a replace function in line 890 adding _ for blanks.
Commented that out but it still adds the _
Any idea?
Had to move over the }}’ to the 889 line, was my first mistake when i said it did not work…
Looks like u r trying to get empty spaces out of the group name…but leading or trailing spaces are corrected with this as well.
I would suggest either to not allow spaces (which isnt normally allowed in most script/programming languages anyway) or restrict your function to in between strings, not leading or trailing
But awesome beta…well done and great work…thx for your efforts
Amazing! thanks for the update, were you able to update blueprint and if so how should i update ? by deleting and re-importing? (beta or stable) sorry for the delayed response, but after my last post. i have been getting mostly notifications in zone but then on and off notifications being completely outside of zone. i am assuming the above fixes that or whether the actions run or both? lol thanks for all the help on this.
Yes unfortunately there is no way to update blueprints automatically.
If you copy the text from github you can overwrite the existing file in your HA install, otherwise delete and reimport also works. Make sure you reload automations afterwards.
When imported, HA messes up most of the multi line descriptions so yeah it doesnt line up properly with the original files i’m editing. but glad you found it.
did you update the blueprint? if so should i delete and re add or i should i not bother since i made the change manually? also, should i keep both actions in the auto loop and auto ?
great. i just got a false positive from the notification. the automation got triggered but not because of a person entering zone but i checked the camera events on frigate and it does the person was in the zone…was not… but when i went to camera debug there was a red and green box around the time seconds moving… i wonder if that caused it… any idea how to get rid of that? i downloaded the trace file right after the false trigger. should that i send that over and if so how can i attach it.