diff --git a/ha-automation.yaml b/ha-automation.yaml new file mode 100644 index 0000000..57a63bb --- /dev/null +++ b/ha-automation.yaml @@ -0,0 +1,20 @@ +alias: Notify - Doorbell Person Detected +description: "" +mode: single +triggers: + - topic: frigate/events + value_template: > + {{ value_json['type'] == 'new' and value_json['after']['label'] == + 'person' and value_json['after']['camera'] == 'front' }} + trigger: mqtt +conditions: [] +actions: + - data: + message: 🚪 Someone is at the door + data: + image: >- + http://192.168.0.5:5341/api/events/{{trigger.payload_json['after']['id']}}/snapshot.jpg + url: homeassistant://navigate/dashboard-camera/0 + action: notify.household_phones + - delay: + seconds: 30 \ No newline at end of file