Sunset-aware backyard lights

A plug-in timer turned the 12V garden lights on at the same hour all year. An ESP8266 and a relay now follow the sun instead.

The problem

The backyard’s 12V landscape lights ran on a mechanical timer with fixed on/off times. In summer they lit up while it was still daylight; in winter they stayed on long after anyone was outside.

What I built

An ESP8266 with a relay replaces the timer. Home Assistant knows where the sun is, so the lights turn on shortly after sunset and switch off earlier in winter than in summer.

  • Hardware: ESP8266 + relay on the 12V lighting circuit.
  • Logic: sun position from Home Assistant, with seasonal off times.

The result

The lights are on when it’s actually dark and off when nobody’s out there, with no timer to re-set twice a year.

Your idea next

Have a gadget in mind?

Custom electronics on ESP32 and other microcontrollers, firmware, and 3D-printed enclosures. One-offs to small batches.

Get in touch