diff --git a/automations/automation.yaml b/automations/automation.yaml deleted file mode 100644 index cdf80b4..0000000 --- a/automations/automation.yaml +++ /dev/null @@ -1,37 +0,0 @@ -alias: HassPyFrigate Alert -description: HassPyFrigate Object Detection Alerts Using Frigate -trigger: - - platform: mqtt - topic: frigate/events -condition: - - condition: template - value_template: '{{ trigger.payload_json["type"] == "end" }}' - - condition: template - value_template: |- - {{ trigger.payload_json["after"]["label"] == "person" or - trigger.payload_json["after"]["label"] == "car" or - trigger.payload_json["after"]["label"] == "bird" or - trigger.payload_json["after"]["label"] == "dog" or - trigger.payload_json["after"]["label"] == "cat" or - trigger.payload_json["after"]["label"] == "bear" or - trigger.payload_json["after"]["label"] == "horse" - }} -action: - - service: notify.mobile_app_sm_g986u1 - data: - message: '{{ trigger.payload_json["after"]["label"] | title }} Detected' - data: - notification_icon: mdi:cctv - ttl: 0 - priority: high - sticky: true - actions: - - action: URI - title: Snapshot - uri: >- - http://YOUR_SERVER/cgi-bin/hasspyfrigate.py?id={{trigger.payload_json['after']['id']}}&camera={{trigger.payload_json['after']['camera']}}&bbox=true&url=https://hass.jeandr.net/api/frigate/notifications/&time={{trigger.payload_json['after']['start_time']}}&css=../css/frigate.css# - image: >- - /api/frigate/notifications/{{trigger.payload_json['after']['id']}}/snapshot.jpg?bbox=1 - tag: '{{trigger.payload_json["after"]["id"]}}' - alert_once: true -mode: single