Thanks to some hints in Attaching images to email notifications - #5 by AstroBBoy I’ve got it working by doing the following
- Add the following to Configuration.yaml
homeassistant:
allowlist_external_dirs:
- "/tmp"
- 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