Hi all,
I have the problem to add an image to a mail notification
This is the YAML. I send a mail to my Gmail account on an IOS device. The mail is received, but without attachment. I checked, and the file is saved in the correct location. What I’m doing wrong?
alias: Nieuwe automatisering
description: “”
trigger:
- platform: state
entity_id:- binary_sensor.ip_camera_field_detection
from: null
to: “on”
condition:
action:
- binary_sensor.ip_camera_field_detection
- service: camera.snapshot
data:
filename: /config/www/tmp/voordeur.jpg
enabled: true
target:
entity_id: camera.192_168_0_12 - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
enabled: true - service: notify.xxxxxx_gmail_com
metadata: {}
data:
message: test
title: test
target: xxxxxxx@gmail.com
data:
image: /config/local/tmp/voordeur.jpg
mode: single
1 post - 1 participant