Hi all
This is my first post so apologies if this is submitted to the wrong area!
I have an automation which fires when motion is detected on the drive. The action is configured to send a notification to my mobile device with an image snapshot from my security camera. All pretty straight forward and works well. The notifications send in real time, but the image it sends can be from up to 12 hours before the event that triggered it.
When the snapshot is saved it overrights the previous image so only one is every kept on the server, and this image appears to be right and of the time the event triggers, so I’m not sure what’s happening. The YAML for the action is below:
alias: Motion | Drive
description: “”
trigger:
- type: motion
platform: device
device_id: 90f3fb6880cf28868dafc66c2e0298fc
entity_id: 30daac596c46c582c22092f4833be94e
domain: binary_sensor
id: Drive
condition:
action: - choose:
- conditions:
- condition: trigger
id:- Drive
sequence:
- Drive
- service: camera.snapshot
data:
filename: /config/www/tmp/snapshot-driveway.jpg
target:
entity_id: camera.driveway_mainstream - service: notify.mobile_app_mobile
data:
message: Motion Detected on the Drive.
title: Motion Detected
data:
image: >-
https://homeassistant.local/local/tmp/snapshot-driveway.jpg
entity_id: camera.driveway
actions:
- action: URI
title: View Camera
uri: https://homeassistant.local/dashboard-mobile/security
mode:
- condition: trigger
- conditions:
Does anyone know what might be happening?