Effortless Outdoor Lighting with Time-Based Scheduling

Hey everyone, I wanted to share my experience setting up a time-based outdoor lighting system. I’ve been working on this project for a friend, and it’s been a great learning experience!

The goal was to create a driveway light that turns on and off at specific times, adjusting as the seasons change. I decided to use an M5Stack Atom Lite paired with LED drivers and a simple WebUI for user-friendly adjustments. Here’s the setup I used:

yaml
wifi:
ap:
ssid: “DrivewayLEDs”
captive_portal: true
web_server:
port: 80
output:

  • platform: ledc
    pin: 22
    frequency: 850 hz
    id: pwm_output1
    inverted: false
  • platform: ledc
    pin: 21
    frequency: 850 hz
    id: pwm_output2
    inverted: false
    light:
  • platform: monochromatic
    output: pwm_output1
    gamma_correct: 1.0
    name: “DrivewayLED1”
    id: “DrivewayLED1”
  • platform: monochromatic
    output: pwm_output2
    gamma_correct: 1.0
    name: “DrivewayLED2”
    id: “DrivewayLED2”
    time:
  • platform: sntp
    id: sntp_time

The idea is to have the lights operate on a fixed schedule year-round, with the flexibility to adjust the timings a couple of times a year via the WebUI. I’ve tested this setup, and it’s been running smoothly!

I’d love to hear if anyone has similar projects or tips for improving this setup. Maybe there’s a more efficient way to handle the time adjustments or integrate additional features. Let’s chat!

Cheers,
[Your Name]