Hi there,
Just ran into Home Assistant and I was looking to do my first automation.
At home, I’m running an Unifi network, with a NVR with a few camera’s including the G4 doorbell.
Now, this doorbell is connected to a Honeywell chime (DC915) and this has been working pretty well. I also get the proper notifications when someone rings the bell in Unifi Protect.
I looked at these sources, but it doesn’t seem to work:
What am I missing?
However, I have been looking into the Unifi Protect integration, and when I’m integrated, I see the camera feeds, following the description about the RSTP feeds.
On the other hand, I don’t get the notification with a still frame or feed when I ring that bell, even when I import a blueprint for the doorbell.
So, do you get a binary sensor from the integration that turns on when you press the doorbell? That’s the one you can use to build an automation that notifies you.
Hi exxamalta,
I deleted every Unifi integration or automation, added it by using the ‘My button’. I’ve added the following sensors to my homepage to check:
G4 Doorbell Doorbell
G4 Doorbell Doorbell Message
G4 Doorbell Motion
G4 Doorbell High
When I change the message through HA, this works. The stream, ‘doorbell high’, does also work. It’s still when I’m on the homepage but when I open it, it is a livefeed.
Just hit the doorbell, and when I look at the logbook from the doorbell, it says ‘detected’ and shortly after that ‘nothing detected’. That was when I hit the doorbell.
So to me, it looks like the communication between HA and Protect works.
Great, so the entity named “G4 Doorbell Doorbell” is the one you then have to use to trigger automations that notify you.
For some inspiration, here is an automation that I implemented which shows an image on my TV. In my case the doorbell’s binary sensor is binary_sensor.doorbell
, and I happen to have an Android TV that I can check if playing (showing something) and to display a small notification:
alias: Doorbell notify TV
trigger:
- platform: state
entity_id: binary_sensor.doorbell
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: media_player.living_room_tv
state: playing
action:
- service: notify.living_room_tv
data:
data:
image:
url: http://<IP address of doorbell>/snap.jpeg
message: Doorbell pressed
mode: single
3 Likes