Hello everyone,
I just set up a Discord bot to send notifications from a camera I set up on HA to my phone.
I can send snapshots when motion is detected successfully with the script below:
action:
- service: camera.snapshot
data:
filename: /tmp/test.jpg
target:
entity_id: camera.tapo_camera_hd
- service: notify.discord
data:
message: Motion Detected on Living Room
target:
- '12345678'
data:
images:
- /tmp/test.jpg
However, I was planning of creating a new automation that sends a video instead of an image using the Discord service, but it is not clear to me how to proceed after saving the video.
This is what I’ve got so far:
action:
- service: camera.record
target:
entity_id: camera.tapo_camera_hd
data:
filename: /tmp/video.mp4
duration: 10
- service: notify.discord
data:
message: Motion Detected on Living Room
target:
- '12345678'
data:
......