Hi,
I try to start a Blink camera with an automation when the doorbell rings and then download the video/image. I have written 2 automations for this.
The transfer and sending of the photo works without any problems. The video is sometimes saved ( /config/www/bell_last_video.mp4 as well as /media/media/camera/house_bell_{{now().strftime(‘%Y-%m-%d_%H-%M-%S’)}}.mp4 ) sometimes not. Sometimes it is saved but the previous video is sent. Does anyone have any ideas on how I can improve the behavior? I tried to extend the waiting time (until 2:30) but it didn’t make any difference.
1st automation
alias: Alarm_Türklingel
description: ""
triggers:
- entity_id:
- switch.shellyuni_08f9e0445970_channel_1
to: "on"
trigger: state
from: null
conditions: []
actions:
- action: blink.trigger_camera
metadata: {}
data: {}
target:
entity_id: camera.camera_haustur
enabled: true
- action: camera.snapshot
target:
entity_id: camera.camera_haustur
data:
filename: /config/www/Klingel_letztes_Bild.jpg
enabled: true
- action: camera.snapshot
target:
entity_id: camera.camera_haustur
data:
filename: >-
/media/Medien/Kamera/Haustur/Klingel_{{
now().strftime('%Y-%m-%d_%H-%M-%S') }}.jpg
- action: blink.record
metadata: {}
data: {}
target:
device_id: 1ed8671fb744e05652cd421df10b838b
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
enabled: true
- action: telegram_bot.send_photo
metadata: {}
data:
authentication: digest
file: /config/www/Klingel_letztes_Bild.jpg
target: 1234567890
parse_mode: html
- delay:
hours: 0
minutes: 1
seconds: 30
milliseconds: 0
enabled: true
- action: blink.save_video
data:
filename: /config/www/Klingel_letztes_Video.mp4
target:
entity_id: camera.camera_haustur
enabled: true
- action: automation.trigger
target:
entity_id: automation.alarm_turklingel_2
data:
skip_condition: true
mode: single
2nd automation
alias: Alarm_Türklingel_2
description: ""
triggers: []
conditions: []
actions:
- delay:
hours: 0
minutes: 1
seconds: 30
milliseconds: 0
enabled: true
- action: telegram_bot.send_video
metadata: {}
data:
authentication: digest
target: 1234567890
parse_mode: html
file: /config/www/Klingel_letztes_Video.mp4
enabled: true
- action: blink.save_video
data:
filename: >-
/media/Medien/Kamera/Haustur/Klingel_{{
now().strftime('%Y-%m-%d_%H-%M-%S')}}.mp4
entity_id: camera.camera_haustur
enabled: true
mode: single
Gruss
Olaf