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.

@TheRealFalseReality do you mind sharing your fork that works with LLM Vision? I’d like to give it a go!

Nice blueprint btw - works flawlessly on the first go :muscle:

here’s a link to the beta, we are merging into main soon:

Hello Together,

i still have a issue, that whenever i add “all_devices” into Notify a Group or Android TV section of the blueprint, that no one gets a notification.

I added the group in the config.yaml with:

notify:
  - platform: group
    name: all_devices
    services:
      - service: notify_mobile_app_iphone1
      - service: notify_mobile_app_iphone2

my yaml in the blueprint looks like this:

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: 15d912c2fad18920632746fb35f87192
          entity_id: siren.flur_sirene
        action: siren.turn_on
    notification_sound: default
    notification_message: "{{ sensor_name }} : Es hat an der Tür geklingelt. {{ time }}."
    notify_group: all_devices

What am i missing? Did i do something wrong?

Hello. Is someone able to setup the automation using a group of mobile devices? If so, can explain the details on how to do it please? I have created the notification group as explained but I don’t know how to continue as the group does not appear in the dropdown. Thanks in advance

you gotta type in the group name manually. But I am not sure if this feature is working, I had issues myself. I just had to create another blueprint.

is it working when you test it in actions? (Developer → Actions) try that and see if works

I’ll try to test this this weekend and get back to you, promise. You can also try our most current blueprint/integration using LLM, link above.

Reply to an old post, but are notification groups working in v2.3? I’m getting the same error as the post you replied to here. But I’m also not sure if I set up the notification group correctly.

In my configuration.yaml, I’ve added

notify:
  - name: ALL_DEVICES
    platform: group
    services:
      - action: mobile_app_pixel_8
      - action: mobile_app_pixel_7_pro

but I’m not sure if I have the name of the mobile devices right, or if I need to restart something to ingest these configuration.yaml changes.

And then I added notify.ALL_DEVICES to the notify_device in my blueprint, but get the malformed error seen here:

EDIT: After restarting HA I’m still seeing the same error as above.

Put it in notify_group, titled Notify a Group or Android TV in the Optional or Experimental Options section in the bottom

1 Like

Thank you! That was a lot easier than expected. :slight_smile:

Tested it and it seems like it’s all working, meaning I got the mobile device names right in the configuration.yaml!

1 Like

Do you have to set this automation up for each camera or can you do 1 automation that will just send whatever camera picks up the person from a list of cameras?

I’m pretty sure you can only set up 1 camera at a time and specifically only 1 type of event at a time. For example, I have a separate automation for each camera and each type of motion event I care about (Reolink cams).

1 Like

Thank you. I’ll set it up that way.

1 Like