Lights That Follow the Sun: Sunrise and Sunset Rules
A porch light set to '6 p.m.' is wrong half the year — far too late in June, wastefully early in December. The better instruction is 'at sunset,' and the smart speakers all understand it: the time moves a little every day, all by itself. This shelf's lesson Schedules That Run the House: Thermostat and Light Timers You Set Once owns clock schedules and names the sun starters in passing; this lesson owns the sun rules themselves — the offsets, the location catch, and the jobs they suit.
Why the sun beats the clock
Sunset where you live slides by a minute or two a day, and by more than two hours between December and June. A clock rule cannot follow that; you end up editing it four times a year, or living with a dark porch in winter. A sunrise or sunset rule reads the real sun for your town, every day, including the daylight-saving jumps — set it once, and it is still right next Christmas.
The offset: the part that makes it yours
Every system lets you shift the sun a little, called an offset. The classic uses: porch and driveway lights 30 minutes before sunset, so the house is lit before it is dark; indoor lamps at sunset; garden lights off an hour after sunset rather than burning all night; a bedroom lamp easing on shortly before sunrise in winter. Alexa allows offsets up to an hour either way; Google Home and Apple Home offer the same before-and-after idea in their own wording. When you build the rule, the offset choice sits right beside Sunrise and Sunset — you cannot miss it, and you can change it later without rebuilding anything.
Building one: Alexa
- Open the Alexa app and go to More > Routines > +.
- Under 'When this happens' (Add event), choose Schedule, then Sunrise or Sunset.
- Pick the location and the offset — the app uses the address of the Echo you choose — then the days, then Next.
- Add the action: turn on the light, plug, or group (this shelf's lesson One Smart Plug, Five Jobs is the cheap way to give any lamp this talent). Save, and watch it work tonight.
Building one: Google Home
- Open the Google Home app and tap Automations (at the bottom), then + Add, and choose a Household routine.
- Under Starters, tap 'Add starter' and choose Sunrise or sunset. The app offers both: pick Sunset for the evening lights, Sunrise for the morning ones.
- Set the offset on the same screen — Google words it as a time before or after the sun ('30 minutes before sunset'), then tap Done. The sun times come from your home's saved location, the catch covered below.
- Under Actions, tap 'Add action' and choose Adjust home devices — pick the lamp, plug, or switch and what it should do (on, off). Save the routine, and it runs tonight.
Building one: Apple Home (HomeKit)
- Open the Home app and tap Automation at the bottom, then the + at the top, and choose Add Automation.
- Choose 'A Time of Day Occurs' — Apple's starter for clock and sun rules alike.
- Tap Sunset (or Sunrise) on the next screen, then set the offset: Apple lets you shift it by minutes or hours before or after the sun — '15 minutes before sunset' is the porch-light classic. Choose the days, then tap Next.
- Pick the lamp, plug, or scene it should control, set what it does, and tap Done. One Apple honest note: time-of-day automations need a home hub in the house — a HomePod, HomePod mini, or Apple TV — which most HomeKit homes already have, quietly doing this job.
Three apps, one shape: a sun starter, an offset beside it, and a lamp or plug as the action. Learn any one of them and the others read like dialects of the same language.
The location catch — read this if the times look wrong
A sun rule is only as smart as the address behind it. The app calculates sunset for the home address saved in the app — and if that address is an old house, a P.O. box, or the wrong town, your lights will fire by somebody else's sun, off by minutes or much more. If your sunset rule fires at a time that makes no sense, check the address first (in the Alexa app it rides with the Echo's Device Location; in Google Home and Apple Home it is the home's address). Wrong time zone does the same damage — it is set from that same address, so one fix cures both.
Good jobs, and one poor one
- Made for sun rules: porch, driveway, and path lights; living-room lamps for the evening welcome; holiday lights; closing motorized blinds at dusk.
- Not on its own: anything safety-critical. A sun rule depends on the internet and the app behaving; treat it as a tireless helper, not a guarantee, and keep a manual switch in the loop for anything that truly matters.
Words in this lesson
- Offset: a deliberate shift from the real sun — '30 minutes before sunset' — so the rule fires when you actually want it, not when the sun crosses the line.
- Routine / Automation: the apps' names for an automatic job: when this happens (sunset), do that (lights on).