- alias: NEW IMAGE
trigger:
platform: event
event_type: folder_watcher
event_data:
event_type: created
action:
service: persistent_notification.create
data:
message: 'Created {{trigger.event.data.file}} in {{trigger.event.data.folder}}'
title: "Custom subject"
#action:
# data_template:
# entity_id: camera.dummy
# file_path: ' {{ trigger.event.data.path }} '
# service: camera.local_file_update_file_path
I am trying to achieve the above(commented out) but this wasnt working so i created a notification instead… the notification is showing as "trigger.event.data.path " rather than the actual path. Played around with the syntax but have never managed