I just installed a Blink doorbell. Through home assistant, I can see the camera, and have access to all sorts of sensors, like wi-fi strength, temperature, motion sensing, whether the motion sensor was turned on or off, even battery life (it’s a wired doorbell) BUT there seems to be no way to trigger an automation if someone actually pressed the button on the doorbell.
Does Blink not support this? It seems like a no-brainer.
I think HA is just treating my doorbell like any other Blink camera.
That’s a bummer. Like i said, it seems like a no-brainer from an automation point of view. It’s unfortunate that there is no way to capture this event.
I thought I’d share a useful Home Assistant automation I created. This automation captures a snapshot from my doorbell camera and sends it to me via Telegram and as a push notification to my iPhone whenever someone presses the doorbell. It’s simple, fast, and super handy when I’m not near the intercom.
Here’s the YAML code with comments to help you adapt it for your own setup:
alias: Doorbell - Send Photo to Telegram and iPhone
# Trigger: reacts when the camera's last_record attribute changes (i.e., new recording triggered by motion or doorbell press)
triggers:
- entity_id: camera.doorbell
attribute: last_record
trigger: state
actions:
# Step 1: Capture a snapshot from the doorbell camera
- alias: Take snapshot from doorbell
action: camera.snapshot
data:
entity_id: camera.doorbell
filename: /config/www/doorbell.jpg # Saved in www so it can be accessed externally
# Step 2: Wait 2 seconds to make sure the file is written
- alias: Wait for file to be saved
delay: "00:00:02"
# Step 3: Send the snapshot via Telegram bot
- alias: Send photo to Telegram
action: telegram_bot.send_photo
data:
target: 1234567 # Replace with your actual Telegram chat ID
file: /config/www/doorbell.jpg
caption: 🚪 Someone just rang the doorbell!
# Step 4: Send iPhone push notification with the image
- alias: Push notification to iPhone with image
action: notify.mobile_app_myiPhone # Update with your mobile app name
data:
title: Doorbell Alert
message: Someone is at the door.
data:
image: http://Home_Assistant_local_address:8123/local/doorbell.jpg # Replace with your HA IP or hostname
push:
sound: default # Optional: customize the push sound
Let me know if you use this or improve it further.
When I run this automation by executing it manually then it works and I get a picture as notification.
But when I press the button on the doorbell then the doorbell becomes busy as it seems it’s recording for a defined period… so the automation is not triggered at that time and would only trigger when the doorbell is not busy anymore.
Of course that’s too late as the person is already gone then …
I tried other approaches using Alexa routine + node red but the outcome is the same…
I followed instructions given by @iZork , so the purely software solution.
I don’t find any instruction about what to change in the Blink config … maybe this is only related to the ‘harware’ solution.
As said, to receive a simple notification the software / automation solution within HA works great … but getting a snapshot fails as by pressing on the bell physical button will make the bell coming into a busy status because, I suppose, it is recording video.
During that time I’m unable to take a snapshot.