I’m new with HA, and still learning. This is my first post.
I’m trying to send a picture from local folder (RP3) to pushbullet using notification.
The title & message were successfully sent & I could see them in pushbullet.
But the picture is not sent/attached to pushbullet. I’ve tried various combination, but still cannot get it to work.
My code is as below:
action:
- service: notify.mypushbullet
data:
title: “Test”
message: “See attached picture”
data:
file: /home/homeassistant/.homeassistant/picture1.jpg
Hi, could you please elaborate? Does this only work on the “dev branch”? and what is the absolute path for /tmp, does this folder reside in the same location as configuration.yaml?
Additionally, do you know if whitelist_external_dirs: is a recent addition, I’m still at 0.47, and cannot upgrade. I get the following error when adding
Whitelist_external_dirs:
– /tmp
(MainThread) [homeassistant.config] Invalid config for [homeassistant]: [whitelist_external_dirs] is an invalid option for [homeassistant]. Check: homeassistant->whitelist_external_dirs. (See /home/homeassistant/.homeassistant/configuration.yaml, line 3).
I got this mostly working on my build. I’m using Hassio AIO installer. I’m trying to send a message and picture to my device and an email. I can send just a message to both, and a picture to just my device, but I can’t send a picture and message to both. When I try I just get two messages to my device. Any ideas?? Here is my automation:
Based on the error it sounds like either the file path is not valid (so obviously make sure that it’s correct). I don’t have that filepath. I’m running HASSIO all in one installer, and the file tree is a bit different.
homeassistant:
whitelist_external_dirs (Optional): List of folders that can be used as sources for sending files.
I haven’t used this before. I’m pretty new with HA. I’d assume that you just enter the file path there not in quotes. So I’d probably try something like this in my config file under your “homeassistant”: