after some more finageling, it kind of works.
alias: Cam Send a snapshot on movement
description: ""
trigger:
- type: motion
platform: device
device_id: ec24d0ea5093e97a74abc7169421e320
entity_id: b8ea3ef9a43802104193498a3cd37938
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/tmp/motion.jpg
target:
device_id: ec24d0ea5093e97a74abc7169421e320
- service: notify.mobile_app_motorola_pro
data:
message: Motion detected
title: Garden
data:
image: http://local-ip.35:8123/local/tmp/motion.jpg
actions:
- action: URI
title: Open Camera
uri: /lovelace/garden
- action: SWITCH_LIGHT
title: switch light
mode: single
first of all, i would like to not make my server open to the public, i am running an nginx inside the HA.
And I dont see how i get a motion trail, and on the same time prevent the disc from being filled up.
So I now need a way to store it on the host of my container, I do have the smb integration running, but how do I send it there?
Then, how do I make the file name camera spzific and add a time stamp?
And then, how do I make it being vailable from outside for my phone only without starting a VPN session every time?
Should i just send it via the signal bot?