Send picture with notification on motion detection

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?

after some more finageling, it kind of works.

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: /config/www/tmp/motion.jpg
    target:
      device_id: ec24d0ea5093e97a74abc7169421e320
  - service: notify.mobile_app_motorola_pro
    data:
      message: Motion detected
      title: Garden
      data:
        image: http://local-ip.35:8123/local/tmp/motion.jpg
        actions:
          - action: URI
            title: Open Camera
            uri: /lovelace/garden
          - action: SWITCH_LIGHT
            title: switch light
mode: single

first of all, i would like to not make my server open to the public, i am running an nginx inside the HA.

And I dont see how i get a motion trail, and on the same time prevent the disc from being filled up.

So I now need a way to store it on the host of my container, I do have the smb integration running, but how do I send it there?

Then, how do I make the file name camera spzific and add a time stamp?

And then, how do I make it being vailable from outside for my phone only without starting a VPN session every time?

Should i just send it via the signal bot?

Has this been solved yet?
I also want to get a message using Signal, when I am not home, to know who is at my door.
I picture of the situation would be nice, a video would be perfect.
I use Unifi Protect with Dream Machine.
Is there any solutions for this?

nope, its still an issue, have motion, but cant get it on my phones companion when im outside of local network.