Recently, I faced a challenge with my garage door and outdoor lighting setup. I wanted to automate the lights to turn on when the garage door opens and off when it closes, but I also wanted the lights to respond to motion sensors. The issue was that the two systems were conflicting, causing the lights to flicker on and off repeatedly.After some research and experimentation, I found a solution using SmartThings. I set up a rule where the lights stay on when the garage door is open, regardless of motion. When the door closes, the lights then respond to motion, turning on only when movement is detected and turning off after a period of inactivity. This setup prevents the annoying flickering and ensures the lights are always on when needed.Here’s how I did it:1. Garage Door Sensor Integration: I connected my garage door sensor to the SmartThings hub. This allows the system to detect when the door is open or closed.2. Motion Sensor Setup: I placed a motion sensor near the garage to detect movement around the area.3. Rule Configuration: Using SmartThings, I created a rule that prioritizes the garage door state. When the door is open, the lights remain on. When it’s closed, the motion sensor takes over, turning the lights on and off based on detected movement.This setup has been working perfectly for me. It’s a great example of how automation can solve everyday problems and improve convenience. If anyone has similar issues or wants to enhance their setup, feel free to ask for more details!