Solving Motion Activated Lighting Between Sunset and Sunrise

I’ve recently been experimenting with setting up motion-activated lighting in my home, and I wanted to share my experience and some tips for anyone looking to do the same. My goal was to have lights turn on when motion is detected between sunset and sunrise, stay on for 90 seconds after the last detected motion, and then turn off automatically. This seemed like a straightforward task, but it involved a bit of trial and error to get everything working smoothly.

The Setup

I’m using an Everspring HSP02 motion detector paired with a Fibaro dimmer insert. The system is controlled through the Automation tab in my smart home platform, avoiding the need for more complex coding solutions. Here’s how I approached it:

  1. Motion Detection: The Everspring HSP02 motion detector was the first piece of the puzzle. It’s a reliable sensor that detects both heat and motion, making it ideal for my needs.

  2. Light Control: The Fibaro dimmer insert allows me to control the lights precisely, ensuring they turn on and off as intended. It’s been a great addition to my setup.

  3. Automation Rules: The key challenge was setting up the automation rules to activate only between sunset and sunrise. I created two scenes: one to turn the lights on when motion is detected and another to turn them off after a period of inactivity.

The Challenges

The main hurdle was integrating the time-based automation. I initially struggled with understanding how to wrap the motion-activated scenes within a schedule that only operates between sunset and sunrise. After some research and experimentation, I discovered that using built-in sunset and sunrise events was the way to go.

The Solution

Here’s how I structured it:

  • On Scene: This scene is triggered by motion detection. It turns the lights on and sets a timer for 90 seconds. If motion is detected again within this period, the timer resets.
  • Off Scene: This scene turns the lights off after 90 seconds of no detected motion. It’s crucial for conserving energy and ensuring the lights don’t remain on unnecessarily.
  • Time-Based Schedule: Both scenes are wrapped within a schedule that activates at sunset and deactivates at sunrise. This ensures the system only runs during the desired time frame.

Tips for Success

  1. Test Thoroughly: Before finalizing your setup, test each component individually to ensure they’re working as expected. This helps identify and fix any issues early on.

  2. Adjust Timings: The 90-second delay can be adjusted based on your specific needs. If you find the lights turning off too quickly or staying on too long, tweak the timer to suit your lifestyle.

  3. Location Awareness: Ensure your smart home platform has accurate sunset and sunrise times for your location. This can usually be set in the platform’s settings.

  4. Combine with Other Sensors: If you have multiple motion sensors, consider combining them into a single automation rule. This can enhance reliability and coverage.

Final Thoughts

Setting up motion-activated lighting between sunset and sunrise was a rewarding project. It enhances security and convenience while being energy-efficient. With the right components and a bit of trial and error, it’s a project anyone can undertake. If you’re considering something similar, start small, test each part, and build up your system gradually. Happy automating!