#Automation trigger time is delayed on cameras

1 messages · Page 1 of 1 (latest)

dark vessel
#

My dad has an automation setup that we can't get to work well. The camera has a front-on view of the driveway, and the automation is only triggering once the car gets almost to the garage door, even when driving slow.

alias: Outside - Driveway - Frigate Event - Car Seen
description: Triggers when a new car is detected in the Driveway_People zone
triggers:
  - topic: frigate/events
    value_template: "{{ value_json['after']['label'] }}"
    payload: car
    variables:
      after_zones: "{{ trigger.payload_json['after']['entered_zones'] }}"
      camera: "{{ trigger.payload_json['after']['camera'] }}"
      id: "{{ trigger.payload_json['after']['id'] }}"
      label: "{{ trigger.payload_json['after']['label'] }}"
      score: "{{ trigger.payload_json['after']['score'] }}"
      type: "{{ trigger.payload_json['type'] }}"
    trigger: mqtt
conditions:
  - condition: template
    value_template: |
      {{ "Driveway_People" in after_zones and type == "new" }}
  - condition: time
    after: "21:00:00"
    before: "05:45:00"
actions:
  - target:
      entity_id: scene.white_w_motion
    action: scene.turn_on
    data: {}
mode: parallel
max: 10

weary heron
#

There is nothing that would make the automation slow. So that would mean the trigger + condition is only met at that moment thus the camera is slow. Did you watch the MQTT messages with something like MQTT Explorer?

dark vessel
#

We have another automation (the frigate notifications one) that is working well and its using frigate/reviews for the topics instead of frigate/events so I tried using reviews instead, now it's not working at all

#

https://github.com/SgtBatten/HA_blueprints/tree/main/Frigate_Camera_Notifications this blueprint is working perfectly fine, so I modified ours and now it's not triggering at all. New one is...

alias: Outside - Driveway - Frigate Event - Car Seen
description: Triggers when a new car is detected in the Driveway_People zone
triggers:
  - topic: frigate/reviews
    value_template: "{{ value_json['after']['label'] }}"
    payload: new
    variables:
      after_zones: "{{ trigger.payload_json['after']['entered_zones'] }}"
      camera: "{{ trigger.payload_json['after']['camera'] }}"
      id: "{{ trigger.payload_json['after']['id'] }}"
      label: "{{ trigger.payload_json['after']['label'] }}"
      score: "{{ trigger.payload_json['after']['score'] }}"
      type: "{{ trigger.payload_json['type'] }}"
    trigger: mqtt
conditions:
  - condition: template
    value_template: |
      {{ "Driveway_People" in after_zones and type == "new" }}
  - condition: time
    after: "21:00:00"
    before: "05:45:00"
actions:
  - target:
      entity_id: scene.white_w_motion
    action: scene.turn_on
    data: {}
mode: parallel
max: 10

GitHub

Somewhere to store automation blueprints. Contribute to SgtBatten/HA_blueprints development by creating an account on GitHub.