Scott Hanselman's Blog

Using Home Assistant to integrate a Unifi Protect G4 Doorbell and Amazon Alexa to announce visitors

Home Assistant is a versatile home automation platform that enables extensive control over connected devices, including people, lights, and appliances. It operates locally, providing privacy and independence from cloud services. Running Home Assistant on a Raspberry Pi with Power over Ethernet is recommended for ease of setup. Integrations allow Home Assistant to connect with various devices, including security systems like Unifi Protect Doorbell. Third-party integrations can extend functionality and enable custom automations. To create an announcement when the Unifi Protect Doorbell is pressed, install Home Assistant Community Store and the UniFi Protect and Alexa Media Player integrations. Configure both integrations and create an Alexa "Everywhere" speaker group. In Home Assistant's Developer Tools, verify that Alexa TTS (text-to-speech) is working. Then, create an automation that triggers when the doorbell's state changes to "on" and sends a notification to the Alexa "Everywhere" group. The automation can be defined both through the user interface and in the Automations.yaml file. The "to: 'on'" trigger prevents double announcements during state changes. Home Assistant offers numerous possibilities for automation, providing convenience and enhanced control over the connected home.
favicon
feeds.hanselman.com
feeds.hanselman.com
Create attached notes ...