Adding camera snapshots without public URL

Is there a way to send my camera snapshots to my mobile app alert without exposing the snapshots to the whole internet?

service: notify.mobile_app_xxx
data:
  message: Something happened at home!
  data:
    image: 'https://xxx.ui.nabu.casa/local/snapshot.jpg'

As above is the only way I was able to see the actual image but not great as that is accessible by anyone on the internet.

Also tried image: 'https://xxx.ui.nabu.casa/media/local/snapshot.jpg' as detailed here: https://companion.home-assistant.io/docs/notifications/notification-attachments/ but just keep getting authorization errors in the logs and no image in the notification.

Any one have any ideas on what might be incorrect?

Only if they know the exact filename. The local directory is not listable publicly.

So add a long random key to your filename that makes it difficult to guess. e.g.

image: 'https://xxx.ui.nabu.casa/local/wbrar3680nLfsw34hbs240bs25vex33v7_snapshot.jpg'

Actually if using image: /media/local/snapshot.jpg it saves it to the media folder which needs authorization and no need for public one at all :slight_smile:

You said that wasn’t working in your first post.

How did you overcome this issue?

Drop the first part of the url https://xxx.ui.nabu.casa
It is also different folder media instead of www

1 Like