Hello,
I run into problems when I want to save a camera picture to the www folder.
I am running hassio 70.1.
I get this error:
2018-06-06 12:32:35 ERROR (MainThread) [homeassistant.components.camera] Can't write /local/test.jpg, no access to path!
I read a lot on other posts, but I can`t get it to work, has someone an idea what I am doing wrong?
I have a camera set up in the configuration file:
The URL is to a snapshot of the current camera video.
camera:
- platform: mjpeg
name: dafang_picture
mjpeg_url: https://[IP-Address]/cgi-bin/currentpic.cgi
username: username
password: password
This automation should take a snapshot when a random 433MHz Code is received (just to trigger it simple):
- alias: notify_1_xiaomi_dafang_1_send_picture
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id:
- sensor.r433_mhz_random_code
action:
- service: camera.snapshot
data:
entity_id: camera.dafang_picture
filename: '/local/test.jpg'
I have also whitelisted the www folder like this:
homeassistant:
whitelist_external_dirs:
- /config/www