with the purchase of an American Flag
Flipping a switch at dusk to light your flagpole, then remembering to shut it off before sunrise, gets old by the second week. Wire the light into an outdoor-rated smart plug and build one Alexa routine, and the flag lights itself from sunset to sunrise in 2026 without you touching a switch again.
- An outdoor Wi-Fi smart plug plus two Alexa routines runs flagpole lights on autopilot from sunset to sunrise.
- Electric fixtures like the Sentinel Plus and beacon lights work with a smart plug and Alexa; solar-powered flagpole lights don't need one.
- Pair the smart plug on 2.4GHz Wi-Fi only — most outdoor plugs refuse to connect on 5GHz networks.
- Title 4 US Code Section 6(a) calls for illuminating a flag flown after dark, which is the entire reason this setup exists.
- Two Alexa routines — one at sunset, one at sunrise — replace manual switching for good.
Why this matters
Federal law doesn't require you to fly the flag 24 hours a day, but if you do, Title 4 US Code Section 6(a) says it should be illuminated during darkness. That's the practical reason electric flagpole lights exist, and it's also the reason a smart plug and an Alexa routine make sense: the light needs to turn on every night and off every morning, forever, without anyone remembering to do it.
The Sentinel Plus Flagpole Top Light and similar plug-in fixtures from Federal Flags run on standard household power, which means they plug into an outlet the same way a lamp does. That's exactly the kind of device a smart plug controls. Solar flagpole lights charge and fire on their own schedule and skip this whole setup — more on that trade-off below.
Before you start
- An outdoor-rated Wi-Fi smart plug that supports Alexa. Amazon Smart Plug, Kasa, and Wyze all make weatherproof outdoor models. Check the plug's amp rating against your light's wattage before wiring it in — most residential smart plugs cap out around 15A.
- A GFCI-protected outdoor outlet near the flagpole base, rated for continuous overnight load, not just occasional use.
- The gotcha: almost every consumer smart plug only connects on a 2.4GHz Wi-Fi band. If your router broadcasts a combined or 5GHz-only network near the flagpole, the plug will show up in the Alexa app and then drop offline within a day. Set up a dedicated 2.4GHz network name before you start pairing, not after.
Set up your smart plug and Wi-Fi connection
- Plug the smart plug into the outdoor GFCI outlet at the flagpole base.
- Open the Alexa app, tap Devices, then the + icon, then Add Device.
- Select Plug from the device category list, choose your plug's brand, and follow the pairing prompts — usually holding a button until the LED blinks in a specific pattern.
- When prompted to choose a Wi-Fi network, connect only to the 2.4GHz network.
Expected result: the plug appears as Online in the Alexa app's device list within a minute or two of pairing.
Wire the flagpole light into the plug
This step applies whether you're running a pole with an internal halyard or an external one. If your flagpole uses an external rope halyard, the flagpole beacon light is the plug-in fixture built for that setup.
- Connect the flagpole light's power cord to the smart plug.
- Plug the smart plug into the outdoor outlet.
- Open the Alexa app and tap the plug's device tile to toggle it on and off manually.
Expected result: tapping the tile turns the flagpole light on and off within a few seconds, confirming the wiring is good before you automate anything.
Build the Alexa routine
- In the Alexa app, tap More, then Routines, then the + icon.
- Under When this happens, tap Schedule, then choose Sunset. Alexa calculates local sunset time from the address saved in your account.
- Under Add action, tap Smart Home, select the flagpole light plug, and set the action to Turn on.
- Save the routine and name it something clear, like "Flag Light On."
- Repeat steps 1-4 with Sunrise as the trigger and Turn off as the action. Name it "Flag Light Off."
Expected result: both routines appear under the Routines tab, each showing an Enabled status. The light turns on at dusk and off at dawn without any further input from you.
Trigger the light by voice command instead of a schedule
A fixed schedule works for most households, but if you want manual override for a late arrival home or an early departure, add a voice trigger alongside the schedule rather than instead of it.
- Create a new routine and under When this happens, select Voice.
- Enter a custom phrase, such as "Alexa, light the flag."
- Under Add action, select the same smart plug and set it to Turn on.
- Save and name the routine separately from your scheduled ones.
Expected result: saying the phrase turns the light on immediately, independent of the sunset/sunrise schedule already running.
Comparing flagpole light types for smart plug setups
Not every flagpole light plugs into anything. Here's how the main types stack up for this workflow:
| Light | Power source | Works with a smart plug | Best for |
|---|---|---|---|
| Sentinel Plus Flagpole Top Light | Plug-in electric | Yes | Internal halyard poles, 20-50 ft |
| Flagpole Beacon Light | Plug-in electric | Yes | External halyard poles, 20-50 ft |
| Wall-Mounted Flagpole Light | Plug-in electric | Yes | Wall-mounted residential poles |
| Solar-Powered Flagpole Spot Light | Solar/battery | No | Poles without a nearby outlet |
Verdict: if your pole already sits near an outdoor outlet, an electric fixture and a smart plug give you full Alexa control. If running power to the pole isn't realistic, a solar-powered light is the simpler buy — skip the smart plug entirely.
“If the smart plug isn't on the 2.4GHz network before you start pairing, the routine will look fine for a day and then quietly stop firing.”
Troubleshooting
- Routine doesn't fire at sunset. The Alexa app is usually pulling the wrong location. Check Settings > Device Location and confirm the saved address matches where the flagpole actually stands.
- Smart plug goes offline randomly. This is almost always a 5GHz connection attempt. Move the plug's Wi-Fi profile to a dedicated 2.4GHz SSID and re-pair.
- GFCI outlet trips when the light turns on. Moisture at the cord connection is the common cause outdoors. Use a weatherproof in-use cover over the plug-and-cord junction.
- Alexa reports "device not responding." Flagpoles often sit at the edge of a home's Wi-Fi range. A mesh node or extender near the flagpole fixes this faster than troubleshooting the plug itself.
- Light stays on past sunrise. Alexa's sunset/sunrise calculation can run a few minutes off from what you'd expect. Most routines let you add a time offset (before or after sunrise/sunset) — set a 10-15 minute buffer if this keeps happening.
Customize your workflow
Once the sunset-to-sunrise routine is running reliably in 2026, there's room to build on it. Add a "guest mode" routine that keeps the light on later during holiday weekends, or link it to a separate Alexa group if you're running lights on more than one pole on the property. Owners weighing whether to skip the wiring altogether and go solar instead should compare fixture types before buying — that's a separate decision from the Alexa setup itself.
FAQ
What's the best smart plug for flagpole lights in 2026?
Any outdoor-rated Wi-Fi smart plug that supports Alexa and connects on a 2.4GHz network works, including Amazon Smart Plug, Kasa, and Wyze outdoor models. Check the plug's amp rating against your light's wattage before wiring it in.
Can Alexa turn flagpole lights on at sunset automatically?
Yes. An Alexa routine with a Sunset trigger and a Turn On action fires automatically at your local sunset time every night, calculated from the address saved in your Alexa account.
Do solar-powered flagpole lights need a smart plug?
No. Solar-powered flagpole lights like the Solar-Powered Flagpole Spot Light charge and switch on their own schedule and don't connect to household power, so a smart plug has nothing to control.
Is a flagpole light legally required at night?
Title 4 US Code Section 6(a) states a flag flown after dark should be illuminated. It's guidance under the flag code, not an enforced penalty, but it's the standard reason owners add a light to a flagpole flown around the clock.
What Wi-Fi band do smart plugs need for outdoor flagpole setups?
Most consumer smart plugs only pair on 2.4GHz Wi-Fi, not 5GHz. Set up or confirm a 2.4GHz network name before starting the pairing process to avoid a plug that drops offline after a day.
Can I control flagpole lights with a voice command instead of a schedule?
Yes. Add an Alexa routine with a Voice trigger and a custom phrase, set alongside your scheduled sunset/sunrise routines rather than replacing them, for manual override when needed.
Why does my Alexa routine skip sunset some nights?
The most common cause is a wrong saved address in the Alexa app, which throws off the sunset calculation. Confirm the device location under Settings matches where the flagpole actually stands.
Are smart plugs safe for outdoor flagpole light use?
An outdoor-rated smart plug plugged into a GFCI-protected outlet and paired with a weatherproof in-use cover is the standard safe setup. Indoor-rated plugs are not built for exposure and shouldn't be used outside.
One last thing
The single biggest point of failure in this whole setup isn't the Alexa app or the routine logic — it's the Wi-Fi band. Every troubleshooting thread about flagpole smart plugs going offline traces back to a plug that quietly reconnected to a 5GHz network after a router reboot. Lock the plug to a 2.4GHz-only SSID from day one and the rest of this workflow runs itself through 2026 and beyond.