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