Camera - Send & Save snapshot to mobile device when motion is detected with Conditions. Now with Custom Triggers!

it isn’t clear. I too used the default /media/snapshots and can confirm an image is saved and as shown in my screenshot the blue print tries to load from /media/local/snapshots and fails, so i tried added in /local/ but then the blueprint tries to load from media/local/local/snapshots and fails

Hello Together,

Im trying to send a notification to 2 Iphone Devices. I am Using 2 Blueprints. Version 2.2.5 and 2.2.9. I Tried both but cant get it to work.

I read the starting post and created a group in configuration.yaml and added:

notify:

  • name: ALL_DEVICES
    platform: group
    services:
    • service: notify.mobile_app_1
    • service: notify.mobile_app_2

In the Automation i have the following code which currently only works with 1 Device:

alias: Snapshot bei Türklingel
description: ""
use_blueprint:
  path: TheRealFalseReality/send_snapshot_conditional.yaml
  input:
    camera: camera.doorbell
    sensor: binary_sensor.vto_doorbell
    notify_device: 1b90d8994a6a11f1edbe95967d4c90dd
    is_ios: true
    notification_title: Türklingel
    file: /media/snapshots/doorbell/last_motion.jpg
    archive_file: >-
      /media/snapshots/doorbell/archive/motion_{{
      now().strftime("%Y%m%d-%H%M%S") }}.jpg
    delay:
      hours: 0
      minutes: 0
      seconds: 0
    data_clickaction_url: /lovelace/door
    additional_actions_before:
      - metadata: {}
        data: {}
        target:
          device_id: 15d912c2fad18920632746fb35f8732
          entity_id: siren.flur_sirene
        action: siren.turn_on
    notification_sound: default
    notification_message: "{{ sensor_name }} : Es hat an der Tür geklingelt. {{ time }}."

I have no idea where i should add

      action:
        - service: notify.ALL_DEVICES

i keep getting a code error. Can someone help me with this one?

Thanks and cheers Steve

It must be something on your end. Try using the public folder, /www but replace /www with /local (if I remember).

Also, in Developer tools, try sending a snap to your phone using the corresponding notification action and an image in the /media/<FOLDER>/<FILE> folder, remember to add the /local so /media/local/<FOLDER>/<FILE>. If that works, likely the blueprint, if not, likely something with your instance preventing images from being sent via the secured folder, if so, try the /www/<FOLDER>/<FILE> folder, which is /local/<FOLDER>/<FILE>

Look for the Notify a Group or Android TV option under the Optional or Experimental Options collapsible section near the bottom of the blueprint. You will still need to have Device to notify filled but it should send using that slug. Also, last I checked, Home Assistant had an issue with this but I think it got resolved. See comments above, I think I linked the issue.

In .yaml:

    notify_group: all_devices

" HA needs to have /local after media"

but this doesn’t seem to be the case. because as i mentioned i removed the /local/ from the blueprint and the notification displays the image perfectly

Maybe the issue is on your end, using an older/legacy HA installation

Hey, great blueprint – thanks for sharing!
Just a quick question: Is there any chance that the images could be accessed without authentication from outside the local network? I want to make sure they’re not publicly accessible over the internet in any way. I’m not quite sure how to extract the image URL from the notification in order to test it myself

If you’re using the default file location in /media then it should be private. I believe the notification allows it to be sent outside the network, but if you try to access the link in a browser to a file in /media may error out.

Anything in /www is public and only in that folder.