Hey everyone, I wanted to share a success story about setting up smart lighting automation using motion sensors. I’ve been working on this for a while and finally got it sorted out, so I thought I’d document the process in case others are facing similar challenges. The Setup I have two motion sensors placed in the ground floor and first-level hallways. My goal was to create a seamless lighting experience where the lights turn on as we move between floors and turn off when we’re no longer in a space. Sounds simple, right? But getting it to work smoothly was a bit of a journey. The Challenge Initially, I set up the sensors to trigger the lights in both locations. The idea was that when someone moves upstairs, the ground floor lights would turn off, and the upstairs lights would turn on, and vice versa. However, I ran into an issue where both sets of lights would turn off when they shouldn’t, or turn on at the wrong times. It was frustrating to say the least! The Solution After some research and trial and error, I realized the problem was with how the motion sensors were interacting with each other. The sensors were conflicting because they were both trying to control the same lights. To fix this, I adjusted the automation logic to ensure each sensor only controls its respective lights. Here’s a simplified version of what I did: - Ground Floor Sensor: Triggers the ground floor lights when motion is detected. If no motion is detected after 2 minutes, the lights turn off. - First-Level Sensor: Triggers the first-level lights when motion is detected. If no motion is detected after 2 minutes, the lights turn off. The key was to ensure that each sensor only affects its own area and doesn’t interfere with the other. I also added delays to prevent the lights from turning off immediately when moving between floors. The Result Now, the system works perfectly! When we go upstairs, the ground floor lights turn off after a short delay, and the upstairs lights turn on. The same happens in reverse when we come back down. It’s seamless and exactly what I was aiming for. Tips for Others If you’re setting up a similar system, here are a few tips: - Test Individually: Make sure each sensor and light setup works independently before trying to link them together. - Use Delays: Adding small delays can prevent unintended behavior, like lights turning off too quickly or multiple times. - Simplify Logic: Start with a basic setup and gradually add complexity. Overcomplicating things can lead to more issues. I hope this helps someone else out there who’s struggling with similar automation challenges. It’s a great feeling to finally get everything working smoothly! Happy automating! ![]()