I am trying to use the new camera.snapshot service in 0.57.1 initially using the development Service Tool. It keeps erroring with - Can’t write [my filename], no access to path!
EDIT: never mind, my error is the same as yours. Didn’t work in 0.57.0 and still doesn’t work in 0.57.1. I thought I got a permissions issue, but that was something else. I get the “no access to path!” error when calling the camera.snapshot service. I run a docker container for what it’s worth.
Thank you - finally got it working now, not sure what I was doing wrong but its saving screenshots into the right folder now!
My new question is about calling the service as part of my automations. I’ve managed to set up telegram to send me a push notification of my picture, but I can’t work out how to actually take a photo as part of this sequence.
I’m can use developer services to take a photo manually
The bit Im missing the the first - service: in the sequence. Any pointers on what to put here? I see you have a python script to take photos with timestamps… I did originally test this, again working with developer services, but I figured it would be too hard to upload using telegram notifications as I wouldn’t know what the file name would be if that makes sense?
This is what is now working for me. Captures a photo from my catflap camera and uploads to telegram when I trigger with a light turning on. (this will be change to a sensor on the catflap once I wire it in… probably a reed switch. Thanks for the help guys I appreciate it.
- alias: 'Catflap Camera Snapshot'
trigger:
- platform: state
entity_id: light.lamp
to: 'on'
action:
- service: camera.snapshot
data:
entity_id: camera.catflap_camera
filename: /config/camera_snapshot/catflap.jpg
- service: notify.telegram
data:
title: one
message: two
data:
photo:
- file: /config/camera_snapshot/catflap.jpg
capture: Catflap Capture
Hello all, How my cam can take a snapshot while motion detection. I can only see the cam view. I want to push notification with pictures when motion detect. I have Dahua cam DH-IPC-HDBW4433R-S in my setup. I make a folder
config/camera_snapshot
Component -platform: generic i must click on the card for view cam, but platform: ffmpeg i can see the view without a click on the card.
i use motion detection with component binary_sensor:
Invalid config for [automation]: expected str for dictionary value @ data[‘trigger’][0][‘to’]. Got None. (See /config/configuration.yaml, line 89). Please check the docs at https://home-assistant.io/components/automation/`