Trigger.event.data.path not retrieving path

 - 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

image

I think you need double quote around your message just like the folder watch example

Just noticed this is being returned
Error rendering message <homeassistant.helpers.template.Template object at 0x70113b30>: UndefinedError: ‘trigger’ is undefined

Service persistent_notification/dismiss called.

got it working by using data_template will try the camera thing now

Camera still not updating :frowning: