Here is my camera configuration. The stream works in my dashboard and I can view the snapshot url:
camera:
- platform: generic
name: garage
still_image_url: 'http://192.168.1.XXX/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=<user>&password=<password>'
stream_source: 'rtsp://<user>:<pw>@192.168.1.XXX/h264Preview_01_main'
And my automation:
alias: Mailbox Opened
description: ''
trigger:
- type: opened
platform: device
device_id: xxxxx
entity_id: binary_sensor.mailbox_sensor
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
target:
entity_id: camera.garage
data:
filename: /config/tmp/snapshot1.jpg
- delay: 5
- device_id: xxxxxx
domain: mobile_app
type: notify
message: Mailbox opened
title: ''
data:
photo:
- file: /config/tmp/snapshot1.jpg
capture: Snapshot
- device_id: xxxxx
domain: mobile_app
type: notify
title: ''
message: Mailbox opened
data:
photo:
- file: /config/tmp/snapshot1.jpg
capture: Snapshot
mode: single
I am able to trigger the sensor and get the push notification. The automation doesn’t create the snapshot or send it with the PN. Also I can’t get the push notification to send a random image either.