How to embed or attach a Camera Snapshot in an Email

Thanks to some hints in Attaching images to email notifications - #5 by AstroBBoy I’ve got it working by doing the following

  1. Add the following to Configuration.yaml
homeassistant:
  allowlist_external_dirs:
    - "/tmp"
  1. In the Automation → Actions section create 2 Actions

Action 1: Take a snapshot from the Camera

data:
  filename: /tmp/snapshot.jpeg
service: camera.snapshot
target:
  entity_id: camera.cellar_high

Action 2: Send the email with the Snapshot

service: notify.iot_mail
data:
  title: Cellar Motion
  message: Cellar Motion
  data:
    images:
      - /tmp/snapshot.jpeg

Thanks
Nathan

2 Likes