Hi all,
I currently have an automation that takes a picture with my security camera as soon as someone rings the doorbell. That picture is sent to my phone as a notification.
The problem is that this only works when I am inside my own network (connected to wifi). As soon as I leave the network and connect to 5G I am able to receive the notification but the picture is not attached.
I am using the “www” folder as described here: Standard Attachments | Home Assistant Companion Docs
Am I using the “www” correct or am I making a rookie mistake?
Below you can see the script I currently use:
alias: Deurbel met camera
description: ""
trigger:
- type: turned_on
platform: device
device_id: 7d90672c883785a22e323164d4e68a2e
entity_id: 024a11b16f0a17c8054aab2e42b20e81
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/snapshots/snapshot.jpg
target:
entity_id: camera.c3x_e75103453
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: notify.mobile_app_galaxy_s24_ultra
data:
message: Er staat iemand voor de deur
data:
image: /local/snapshots/snapshot.jpg
mode: single
Thanks in advance!