I am trying to send images from my security camera using email and I can’t get them to attach. Emails without attachments are working, so the issue is not the gmail notifier.
If I do the same basic thing but send the image via ios notification the images work.
Can anyone see something I am missing?
For reference when I attach an image in the ios notification it works by using: url: 'http://192.168.0.104/snap.jpeg'
For the email I have tried using: images: 'file:///192.168.0.104/snap.jpeg' images: 'http://192.168.0.104/snap.jpeg' images: '192.168.0.104/snap.jpeg'
But without success.
An example error from my log:
2020-08-09 07:45:48 WARNING (SyncWorker_1) [homeassistant.components.smtp.notify] Attachment i not found. Skipping
2020-08-09 07:45:48 WARNING (SyncWorker_1) [homeassistant.components.smtp.notify] Attachment l not found. Skipping
2020-08-09 07:45:48 WARNING (SyncWorker_1) [homeassistant.components.smtp.notify] Attachment e not found. Skipping
2020-08-09 07:45:48 WARNING (SyncWorker_1) [homeassistant.components.smtp.notify] Attachment : not found. Skipping
So it’s trying to attach each character as an image? (see that its starting to spell "FILE)?
I tried using “image” as opposed to “images” in he syntax - which results in the email going through but no attachment as I suspect its simply ignoring that unknown syntax.
It won’t work though if you aren’t connected to local wifi, you should probably download the image yourself in host it in /local/ or get the entity_picture.
Yes I am using the SMTP integration. I tried the above and it results in:
[homeassistant.components.smtp.notify] Attachment file:///192.168.0.104/snap.jpeg not found. Skipping```
I tried this with 3x slashes, 2x slashes, quotes and no quotes. Same result.
This is the closest I have got (thanks!). I can see an image was attached, but it’s broken.
I would have thought as I am on my local network when sending the image it would work and when testing I am also on the same network. As well as the fact that the ios notification works.
Do you have any links/info for me to investigate downloading the image myself? and/or using the entity_picture?
This is my first week using HomeAssistant, so I am definitely still a noob, but am progressing
My SMTP notification works when sending only text.
This works:
{
“title”: “Beweging voordeur”,
“message”: “Beweging voordeur”
}
But now I want to attach an image. I tried several examples.
What am I doing wrong?
What should I add tothe JSON editor to send for example this image:
/config/tmp/snapshot_camera_voordeur.jpg
I have the same problem and it still not works for me with all the solutions tried.
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: