Please help me understand this issue. I used this configuration IP Camera Snapshot Automation as template.
My configuration: front door camera motion detection -> send camera picture via pushbullet
Automation YAML:
- id: send_fd_cam_message
alias: Send FD Camera Message
trigger:
platform: state
entity_id: binary_sensor.fd_cam_motion
action:
service: homeassistant.turn_on
entity_id: script.send_fd_cam_msg
Script YAML:
send_fd_cam_msg:
alias: "Send FD camera jpg message"
sequence:
- service: camera.snapshot
data:
entity_id: camera.fd_cam
filename: "/home/homeassistant/.homeassistant/www/cam_images/fdcam_snapshot.jpg"
- service: notify.pushbullet
data:
title: "FD CAM Motion"
message: "Front Door Camera: Motion Detected"
data:
file: "/home/homeassistant/.homeassistant/www/cam_images/fdcam_snapshot.jpg"
target: "device/GP2"
- delay:
seconds: 5
It barely works when this script is invoked through automation. I get following message from Pushbullet:
FD CAM Motion
Front Door Camera:Motion Detected
/home/homeassistant/.homeassistant/www/cam_images/fdcam_snapshot.jpg
No Image
Please note that it ALWAYS works if I invoke that script manually.