- id: '1764940364873'
  alias: Frigate Any Detection Alert (Email)
  description: Send an email when Frigate detects anything
  triggers:
  - event_type: frigate_event
    event_data:
      type: end
    trigger: event
  actions:
  - device_id: a695c9ad16dafaf40dca4bf7de3d3002
    domain: mobile_app
    type: notify
    message: Motion Detection
    data:
      title: Frigate Alert - {{ trigger.event['after']['label'] }} detected
      message: 'Camera {{ trigger.event[''after''][''camera''] }} detected a {{ trigger.event[''after''][''label'']
        }}

        '
      data:
        image: /api/frigate/notifications/{{ trigger.event['after']['id'] }}/snapshot.jpg
  - action: notify.notify
    metadata: {}
    data:
      message: motion detected
  mode: single
