Skip to content

False positive MQTT messages #1261

Discussion options

You must be logged in to vote

It is working as expected. MQTT messages will fire for tracked objects regardless of which zone they have entered. You will want to use a condition to only alert on objects that have entered a zone of interest. Something like the following:

automation:
  - alias: When a person enters a zone named yard
    trigger:
      platform: mqtt
      topic: frigate/events
    condition:
      - "{{ trigger.payload_json['after']['label'] == 'person' }}"
      - "{{ 'yard' in trigger.payload_json['after']['entered_zones'] }}"
    action:
      - service: notify.mobile_app_pixel_3
        data_template:
          message: "A {{trigger.payload_json['after']['label']}} has entered the yard."
          data

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@anwik
Comment options

Answer selected by anwik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants