I have tried following a few guides with regards to taking a snapshot of my cameras, but I have been unsucessful thus far.
In my configuration.yaml I have:
camera:
- platform: ffmpeg
input: rtsp://192.168.0.104/user=admin_password=******_channel=1_stream=0.sdp
name: BackDoorCamera
- platform: ffmpeg
input: rtsp://192.168.0.102/user=admin_password=******_channel=1_stream=0.sdp
name: FrontDoorCamera
I can use the above RTSP URL in VLC and I am able to view a live camera feed.
In my automations.yaml I have:
- id: '1542837260543'
alias: Camera
trigger:
- entity_id: binary_sensor.0x00158d000238c7ca
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: camera.BackDoorCamera
filename: /config/www/snapshot.jpg
service: camera.snapshot
The above scripts creates a āsnapshot.jpgā in the directory, but it is a 0kb empty file.
Any ideas as to what I am doing wrong please?
I also have motionEye installed and I am able to view the cameras through this add on.