#my frigate has frigate to many false messages but in the frigate UI its ok

1 messages Β· Page 1 of 1 (latest)

dim cedar
#

Hey my frigate has to many false messages but in the frigate UI its ok

#

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

vale river
#

The reviews topic is recommended instead of events

dim cedar
#

If i just change the events to reviews in my automation it doesnt work

dim cedar
#

Could someone help me with a working automation for telegram πŸ™‚

dim cedar
#

i think its not some easy thing πŸ™‚

#

anyone has a automation for telegram that works? πŸ™‚

#

i don't find much on google

livid scarab
#

not for telegram, I made a tip in general on how to use the reviews topic in an automation

dim cedar
#

hm

#

i think i almost have it

dim cedar
#

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}}

livid scarab
#

check the debug trace, what is the json?

dim cedar
#

if i put it back on label i think and then look for traces?

livid scarab
#

either way

dim cedar
#

Is this a bug?

livid scarab
#

Seems like it should be working, but also seems very unlikely to be a bug

dim cedar
#

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

dim cedar
#

If you want nick i could pm you access so we could help people in the future with the same thing

livid scarab
#

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

dim cedar
#
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

dim cedar
livid scarab
#

after["label"] does not exist

#

so that would explain what you are showing there

dim cedar
#

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

dim cedar
#

i'm sorry for my frustration i'm allready trying for 3 days πŸ™‚

livid scarab
#

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

next cosmos
#

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.

dim cedar
#

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