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

I have REO-LINK cameras that are currently integrated with HA. How would I set this BP up to work with them. It looks great!!

1 Like

Me too
I want to use it with my reolink cameras

1 Like

Each camera needs its own.

As long as HA recognizes the camera, so should this blueprint.

I found the snapshots do not work properly with Ring Doorbell cams. It doesnt force the Ring camera to take a new snapshot. It uses the last snapshot that the Ring itself took… which could be an hour old. I have not yet found a way to fix this.

If anyone knows how to fix for Ring Doorbell cams please LMK.

So I’ve been having this issue and it does not seem to be an issue creating a Snapshot, but either our devices or some intermediary (like Cloudflare) are caching the image. I tested it out based on another post adding a timestamp to the url. Changes in the YAML look like this:

    data: >-
      {% set timestamp = as_timestamp(now()) %} {% set android_data = {"image":
      snapshot_access_file_path ~ "?" ~ timestamp} %} {% set ios_data = {
        "attachment": {
          "url": snapshot_access_file_path ~ "?" ~ timestamp,
          "content_type": "JPEG"
        }
      } %} {{ ios_data if is_ios else android_data }}

Perhaps an anti-caching feature like this could be implemented into the Blueprint?

1 Like

I thought the BP pulls from a local source (drive/folder)?

It should be just HA trying to take a snapshot of the camera. It should not relay on Ring to take the snapshot

It doesn, from HA /media folder

Sure, I can look into this this weekend.

1 Like

Any ideas?

what did you need? The snapshots are stored in /media/snapshots on your device

The issue was caused by a major bug in HA Core handling of Ring cams…

oh! Sorry, I actually use Tapo cameras, not RING, never ran into this issue. If HA can’t take the snapshot, this blueprint will not either. Hopefully a fix will come.

I literally made an account on the forums just to say thank you. This works very well

2 Likes

Hi! Is it possible to use this without the notification bit in any way? I just want to the camera that is watching my boat to trigger every 20 seconds and then use the storage system in the blueprint to store the snaps. But when I try to save, it says ā€œmessage malformedā€ because there is no device to notify.

yea, there should be a Notify toggle in the blueprint

1 Like

Thank you, I’ll look for that!

1 Like

Silly question, so pardon the likely Layer 8 issue here.

I’m trying to have have the automation also create a persistent notification in the web GUI as part of the ā€œAdditional Actions Afterā€. My attempts are unsuccessful. I just get a broken link icon. I have tried it with and without adding /local into the file path.

Am I missing something stupid?

action: persistent_notification.create
data:
  message: Motion Detected in Storage Room at {{ now().strftime("%H:%M:%S on
   %d-%m-%Y") }}
   ![image-name](/media/local/snapshots/{{ states[camera].object_id }}/last_motion.jpg)
  title: Motion Detected in Storage Room
  notification_id: "1113"
1 Like

no, some added actions break the blueprint. I do not know why…