#Notification Hiccups

1 messages · Page 1 of 1 (latest)

strong steeple
#

I have an automation using MQTT in HA to send me a notification when there is a person detected in a zone. Once in a while, I get a notification and there's nobody there. When I open Frigate, I also don't see any events logged.

The automation fires immediately because we are using this as a sort of doorbell. Is there a way to almost wait like, just 3 frames or something, to confirm the detection before notification?

agile grove
#

just add a filter for has_snapshot: true

strong steeple
# agile grove just add a filter for `has_snapshot: true`

Ok, have added the last condition, is that what you meant?

condition:
  - condition: or
    conditions:
      - condition: template
        value_template: "{{ trigger.payload_json['type'] == 'new' }}"
      - condition: template
        value_template: "{{ before_zones | length == 0 }}"
  - condition: template
    value_template: "{{ trigger.payload_json[\"after\"][\"entered_zones\"]|length > 0 }}"
  - condition: template
    value_template: "{{ [\"door\"] | select(\"in\", after_zones) | list | length > 0 }}"
    alias: Object is at front door
  - condition: template
    value_template: "{{ trigger.payload_json[\"after\"][\"label\"] == \"person\" }}"
  - condition: template
    value_template: "{{ trigger.payload_json[\"after\"][\"has_snapshot\"] == True }}"