Smart Lighting Automation with Light Meter and Motion Detection

I’ve been experimenting with creating a smart lighting system that automatically adjusts based on ambient light and motion detection. The goal was to eliminate the hassle of manually adjusting timers for outdoor decorative lights, which often get thrown off by seasonal time changes or inconsistent sleep schedules. Here’s what I’ve learned and achieved so far!

Initially, I faced a challenge finding an affordable light meter that operates on the 433MHz band. Most budget-friendly options I found were simple on/off sensors, not providing actual lux measurements. After some research, I stumbled upon a clever hack to repurpose a 433MHz thermometer as a light meter. This solution not only saved me money but also provided the precise data I needed for my automation setup.

The automation I developed uses a combination of light level triggers and motion detection to control the outdoor lights. Here’s a breakdown of how it works:

  1. Light Level Triggers: I set up two main triggers based on lux values. If the ambient light drops below 12 lux, the lights turn on. If it rises above 20 lux, they turn off. This range allows for some tolerance to prevent unnecessary flickering.
  2. Motion Detection: To ensure the lights don’t turn on unnecessarily during the night, I integrated a motion sensor. If no motion is detected for 20 minutes after 10:30 PM, the lights switch off and stay off until sunrise.
  3. Sunrise Check: The system also checks for sunrise conditions. If the lights were off due to motion inactivity, they automatically turn back on at sunrise if the ambient light is still below the threshold.

This setup has been working beautifully for me, and I’ve noticed a significant reduction in manual adjustments. I’d love to hear if anyone has suggestions for improving this system or if they’ve implemented similar solutions!

For those interested in replicating this, I recommend checking out the hass-variables component for tracking off times and ensuring smooth transitions. Also, don’t hesitate to reach out if you’d like more details on the light meter hack or the automation rules!

Happy tinkering! :blush: