Here is my automation to record camera instead of snapshot: This automation will send 30 seconds video (mp4) thru gmail. Iām only sending 30 sec video only to minimize the size of the file. You can adjust the camera resolution also to make file size smaller. Also I set the Yolink motion sensor to trigger motion every 15 minutes and I have 45 sec delay before sending the file.
- Iām using different trigger like Yolink outside motion sensor, Garage door alarm switch, Eufy Video Door.
- Iām using various Amcrest camera.
- I setup SMTP integration with Google.
- Optional, Iām using Alarmo integration from HACS for āconditionā in case if Iām working in the yard not to trigger the automation.
id: ā1658460748134ā
alias: āNotify: Driveway Camera Recordā
description: Camera Notification thru Gmail
trigger:
- platform: state
entity_id:- binary_sensor.driveway_motion_sensor_motion
to: āonā
condition:
- binary_sensor.driveway_motion_sensor_motion
- condition: device
device_id: a6a81ded68d8f61855eba5f210e47dc1
domain: alarm_control_panel
entity_id: alarm_control_panel.outside_motion
type: is_armed_away
action: - service: camera.record
data:
filename: /config/www/tmp/record/driveway.mp4
duration: 30
target:
device_id: 0ee57ec95412bc287f53167def4fc936 - delay:
hours: 0
minutes: 0
seconds: 45
milliseconds: 0 - service: notify.google_mail
data:
message: āCamera: Driveway Camera Motion Recordā
data:
images:
- /config/www/tmp/record/driveway.mp4
title: āCamera: Driveway Camera Motion Recordā
mode: single