Hi all,
I’m trying to get a snapshot picture once there is motion with a ring camera. The automation will wait for 2 minutes before taking the snapshot then place it locally.
Once we have the snapshot I would then like to view this in lovelace using a card which updates every time the snapshot updates
Ring in general seems to be broken at the moment only showing randomly so to get round this I’m trying the above though my issue is that I’m getting a little confused.
The snapshot part works relatively fine & places the image locally though the card (tried different onesI does not update. Also I’m not sure which entity to use in the card config.
Any pointers would be appreciated. Thanks
configuration.yaml
whitelist_external_dirs:
- /config/www
camera:
- platform: local_file
name: front
file_path: /config/www/snapshots/front_door.jpg
- platform: local_file
name: back
file_path: /config/www/snapshots/backyard.jpg
automations.yaml
- alias: 'Show snapshot when motion at front door'
trigger:
platform: state
entity_id: binary_sensor.front_door_motion
to: 'on'
action:
- delay:
minutes: 2
- service: camera.snapshot
entity_id: camera.front_door
data:
filename: "/config/www/snapshots/front_door.jpg"
- service: camera.local_file_update_file_path
- alias: 'Show snapshot when motion at backyard'
trigger:
platform: state
entity_id: binary_sensor.backyard_motion
to: 'on'
action:
- delay:
minutes: 2
- service: camera.snapshot
entity_id: camera.backyard
data:
filename: "/config/www/snapshots/backyard.jpg"
- service: camera.local_file_update_file_path