I’ve seen this discussed before but am havign no luck. I’ve an automation that is supposed to email me a cam snapshot when a seperate motion sensor is triggered (I’ve tried the blueprint but it uses a push notification and I can’t see the photos as they are too small in the HA app notification and i can’t zoom in!).
My Automation tests Ok , just missing the photo! I get emails with nothing in them (except the text).
This is the automation:
alias: test shed motion email
description: ""
trigger:
- type: turned_on
platform: device
device_id: 5d7f041c91854e6ad552b92e13c06cd1
entity_id: binary_sensor.shed_motion_sensor_sensor_state_any
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
data:
filename: /tmp/snapshot.jpg
target:
entity_id: camera.nvr_sub_3
- service: notify.email_roger_gmail
data:
message: Motion Detected in Mail room
title: Motion Detected in Mail room
data:
images:
- /tmp/snapshot.jpeg
mode: single
I’ve also put this in configuration.yaml
homeassistant:
allowlist_external_dirs:
- "/tmp"`
Not sure how to troubleshoot this as I can’t tell if a snapshot file is being generated! don’t know where to look. The cam entity works fine - I have it on my dashboard