#my frigate has frigate to many false messages but in the frigate UI its ok
1 messages Β· Page 1 of 1 (latest)
i will share some things
i'm using the latest frigate beta with frigate +
i know i must report that it isn't a person on the telegram examples
but that isn't the problem
my frigate UI looks ok
when i go to the looking glass page:
here i see it doesn't show the event here
i think i could find the solution in my automation
alias: Notify of events
triggers:
- topic: frigate/events
trigger: mqtt
conditions:
- condition: template
value_template: "{{ trigger.payload_json[\"type\"] == \"new\" }}"
- condition: template
value_template: |
{{ trigger.payload_json["before"]["stationary"] == false }}
actions:
- data_template:
message: A {{trigger.payload_json["after"]["label"]}} was detected.
data:
photo:
- url: >-
http://myip:myport/api/events/{{trigger.payload_json["after"]["id"]}}/snapshot.jpg
caption: >-
A {{trigger.payload_json["after"]["label"]}} was detected on {{
trigger.payload_json["after"]["camera"] }} camera
action: notify.telegram_alex
anyone with the solution? π
i think its in the condition
The best way to get started with notifications for Frigate is to use the Blueprint. You can use the yaml generated from the Blueprint as a starting point and customize from there.
The reviews topic is recommended instead of events
If i just change the events to reviews in my automation it doesnt work
Could someone help me with a working automation for telegram π
i think its not some easy thing π
anyone has a automation for telegram that works? π
i don't find much on google
not for telegram, I made a tip in general on how to use the reviews topic in an automation
i have it almost maybe you have the last puzzle peace π
gonne post my telegram message and my code for 2 examples
alias: Update Frigate Notifications
triggers:
- topic: frigate/reviews
payload: alert
value_template: "{{ value_json['after']['severity'] }}"
trigger: mqtt
actions:
- data_template:
message: >-
A {{trigger.payload_json["after"]["data"]["objects"] | sort | join(", ")
| title}} was detected.
data:
photo:
- url: >-
http://myip:5000/api/events/{{trigger.payload_json["after"]["data"]["detections"][0]}}/thumbnail.jpg
caption: >-
A {{trigger.payload_json["after"]["label"]}} was detected on {{
trigger.payload_json["after"]["camera"] }} camera
action: notify.telegram_alex
i changed the "label" to "id" now
now giving this:
i didn't used this :
entity_id: camera.{{trigger.payload_json["after"]["camera"] | replace("-","_") | lower}}
check the debug trace, what is the json?
if i put it back on label i think and then look for traces?
either way
Is this a bug?
Seems like it should be working, but also seems very unlikely to be a bug
Normally it should say a car is detected or person
Now it only says a
I get the screenshots but not the correct message txt
If you want nick i could pm you access so we could help people in the future with the same thing
There's no reason it shouldn't be working I have a similar automation
I'd suggest just trying to use the field without any of the operators
alias: NEW EINDE 2024 Update Frigate Notifications
triggers:
- topic: frigate/reviews
payload: alert
value_template: "{{ value_json['after']['severity'] }}"
trigger: mqtt
actions:
- data_template:
message: >-
A {{trigger.payload_json["after"]["data"]["objects"] | sort | join(", ")
| title}} was detected.
data:
photo:
- url: >-
http://192.168.2.60:5000/api/events/{{trigger.payload_json["after"]["data"]["detections"][0]}}/thumbnail.jpg
caption: >-
A {{trigger.payload_json["after"]["label"]}} was detected on {{
trigger.payload_json["after"]["camera"] }} camera
action: notify.telegram_alex
mode: single
this is what i have now
i don't know what you mean
hm what should i put inthere to get A "car" detected
or A "person" detected ? π
i now changed to:
alias: NEW EINDE 2024 Update Frigate Notifications
triggers:
- topic: frigate/reviews
payload: alert
value_template: "{{ value_json['after']['severity'] }}"
trigger: mqtt
actions:
- data_template:
message: A {{trigger.payload_json["after"]["label"]}} was detected.
data:
photo:
- url: >-
http://192.168.2.60:5000/api/events/{{trigger.payload_json["after"]["data"]["detections"][0]}}/thumbnail.jpg
caption: >-
A {{trigger.payload_json["after"]["label"]}} was detected on {{
trigger.payload_json["after"]["camera"] }} camera
action: notify.telegram_alex
mode: single
still the same
i'm sorry for my frustration i'm allready trying for 3 days π
You need to figure out if caption or message is the one setting it
I doubt that itβs both
What you had for message before was correct
@dim cedar I was having similar issues and had a long discussion about it on GitHub. I ended up switching to the /events topic and you can see my automation yaml there. I'm filtering to just person detections. I was still getting false positive triggers so needed to add multiple other conditions to get it working as expected.
https://github.com/blakeblackshear/frigate-hass-integration/issues/662#issuecomment-2359595095
by the way, if you would also like to see improvements made to the Frigate occupancy sensors in HA, please add your feedback in a comment in the GitHub thread too.
Thanks for the info
I think more people have issues with this
But i like the reviews topic it shows directly the motion
I think there should be a way to get the correct detection label in the telegram
So we see if its a person or car