Folks,
I followed a this guid Attach photo to notification - #3 by aceindy
but what ever i try, it does not even create a logbook entry.
well, i did just run the motion trigger, worked after i created it thought the ui.
then i tried to hard code the picture path, well the jpg showes up after I created the www/tmp folder… so i thought im fine. well im not.
what ever I try I cant make it show up on my cellphone notification…
This is my current affair:
alias: Cam Send a snapshot on movement
description: ""
trigger:
- type: motion
platform: device
device_id: ec24d0ea5093e97a74abc7169421e320
entity_id: b8ea3ef9a43802104193498a3cd37938
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
data:
filename: "{{ snapshot_create_file_path }}"
target:
device_id: ec24d0ea5093e97a74abc7169421e320
- service: notify.mobile_app_motorola_pro
data:
title: "{{ notification_title }}"
message: "{{ notification_message }}"
data:
attachment:
content-type: jpeg
url: "{{ snapshot_access_file_path }}"
push:
sound:
name: default
critical: 1
volume: 1
mode: single
variables:
binary_sensor: binary_sensor.garden_motion
binary_sensor_name: "{{ states[binary_sensor].name }}"
notification_title: Movement detected
notification_message: "{{ binary_sensor_name }} was activated!"
snapshot_create_file_path: /config/www/tmp/snapshot_{{ states[camera].object_id }}.jpg
snapshot_access_file_path: "{{ snapshot_create_file_path | replace('/config/www','/local') }}"
what am i missing?