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.