Hi,
I have a zigbee device which is triggered when someone press the door bell and this sends me a telegram message with a door bell alert.
However, I also have a blink camera at the same location which I also want to put to use.
The idea is to update an image of the blink camera and send this via telegram when the door bell alert is triggert.
Here is what I have so far in the automation.yaml:
- alias: 'Door Bell Alert'
trigger:
platform: state
entity_id: binary_sensor.openclose
from: 'on'
to: 'off'
action:
sequence:
- service: notify.telegram
data_template:
message: 'Door Bell Alert'
- service: blink.trigger_camera
data:
entity_id: camera.blink_front
- service: blink.blink_update
data: {}
- service: camera.snapshot
data:
entity_id: camera.blink_front
filename: /tmp/blink_front.jpg
- delay: 00:00:05
- service: notify.telegram
data_template:
title: 'Door Bell Alert'
message: 'Door Bell Alert'
data:
photo:
- file: /tmp/blink_front.jpg
caption: 'Door Bell Alert'
Unfortunately it does not work