Hey everyone! I wanted to share my experience setting up a simple doorbell automation using Node-RED and Home Assistant. I work from home most of the time, often with noise-canceling headphones on, so I needed a way to be alerted when the doorbell rings without needing fancy features like a camera.
I decided to use my existing Home Assistant setup along with Node-RED, which I run in a Docker container on my Raspberry Pi. The goal was straightforward: flash the lights in my office whenever the doorbell rings. While I explored several options, Node-RED turned out to be the perfect tool for this task due to its visual flow-based programming approach.
Here’s a quick overview of how I set it up:
- Hardware Setup: I connected my smart doorbell to the Raspberry Pi’s GPIO pins. This allowed me to detect when the doorbell was pressed.
- Node-RED Flow: I created a flow in Node-RED that listens for the GPIO input. When the doorbell rings, it triggers an event.
- Home Assistant Integration: The Node-RED flow sends a signal to Home Assistant, which then triggers the smart lights in my office to flash.
- Automation: I added a simple automation in Home Assistant to reset the lights after a short delay, ensuring they return to their previous state.
The whole process was surprisingly straightforward, and I loved how Node-RED made it easy to visualize and test each part of the flow without restarting Home Assistant after every change. It’s been working perfectly for a few weeks now, and I couldn’t be happier with the result!
If anyone has questions or suggestions for improvement, I’d love to hear them. Happy automating! ![]()