Exploring Node-RED for Home Automation

Hey everyone! I’ve been diving into the world of home automation and decided to give Node-RED a try for setting up some custom routines. It’s been a bit of a learning curve, but I’m really enjoying the flexibility it offers.

I started by trying to replicate some of the automations I had set up using YAML. Specifically, I wanted to create a system where my lights turn on automatically in the evening based on motion sensor inputs. Here’s a quick overview of what I’m working on:

  1. Motion Sensor Integration: I have two motion sensors in my living room that I want to use as triggers. The idea is that if both sensors detect motion within a certain time frame, the lights should turn on.
  2. Sunset and Sunrise Automation: I want this system to activate only during the evening and early morning hours. Specifically, I’m aiming for 30 minutes before sunset and sunrise.
  3. Light Control: Once the conditions are met, I want the lights to stay on for a set period unless motion is detected again.

I’ve been experimenting with different flows in Node-RED, but I’m still figuring out how to perfectly time the delays and ensure the system resets correctly when there’s no motion. If anyone has tips or suggestions, I’d love to hear them! :star2:

It’s amazing how much you can customize your home setup with the right tools. I’m really looking forward to expanding this project and maybe even integrating some voice controls in the future. Happy automating everyone! :rocket: