Hassio pushbullet: file not found

Hi guys,

I’m completely new to HA in general and hass.io in particular. I have a silly question, so forgive me: I get FileNotFoundError: [Errno 2] No such file or directory: ‘/var/local/IMG_0056.JPG’ with the following:

homeassistant:
whitelist_external_dirs:
- /var/local

notify:

  • name: pushbullet_robert
    platform: pushbullet
    api_key: o.xxx

script:
test_pushbullet:
alias: ‘test_pushbullet’
sequence:
- service: notify.pushbullet_robert
data:
target:
- email/[email protected]
title: test
message: test
data:
file: /var/local/IMG_0056.JPG

The file is definitely there, I can see it with Samba and an ssh shell. Can you please help?

(I cannot find the button for formatting text as code, any help with that too please? The formatting goes haywire, but I have attached a screenshot.)

Kind regards and thanks,
robert!
Capture|401x319

I found the mark down syntax. Sorry about that. Here are the relevant parts of my configuration.yaml:

homeassistant:
  whitelist_external_dirs:
    - /var/local
notify:
  - name: pushbullet_robert
    platform: pushbullet
    api_key: o.xxx
script:
  test_pushbullet:
    alias: 'test_pushbullet'
    sequence:
      - service: notify.pushbullet_robert
        data:
          target:
            - email/[email protected]
          title: test
          message: test
          data:
            file: /var/local/IMG_0056.JPG

and the last line of the error is:
FileNotFoundError: [Errno 2] No such file or directory: '/var/local/IMG_0056.JPG'

What are you using Hass.io or Hassbian ?

I’m using Hass.io

Copy image in config/www/IMG_0056.JPG folder and use /local/IMG_0056.JPG.

Hi Vlad,
I went to /config, there was no www directory so I created one, and placed the image there as you said. Then I used file: /local/IMG_0056.JPG in the configuration.yaml file. But the error I get is:

Filepath is not valid or allowed```
Kind regards,
robert

Post your configuration file, it is a syntax.
Or try use file: /config/www/IMG_0056.JPG instead of /local/IMG_0056.JPG

It worked at /config/www/IMG_0056.JPG directly. Thanks so much! :slight_smile: