A house covered in spooky Halloween lights and decorations.

Maybe you love displaying flickering jack-o’-lanterns, glowing ghouls, and other spooky decorations every Halloween, but you're not so psyched about programming timers to turn them on each night. A smart plug can help: Plug one into a wall outlet, plug your lights into the device, and from your smartphone you can program them to turn on at dusk and switch off at dawn.

Prices range from $15 to about $65, and popular brands include GE, Leviton, Lutron, Philips Hue, TP-Link Kasa, and Wemo.

More on Smart Home

A smart plug is more convenient than a manual timer because it can automatically adjust to turn things on or off when the sun sets and rises each day. For example, at CR’s Yonkers, N.Y., headquarters, the sun sets 40 minutes later at the beginning of October than on Oct. 31. Manual timers with light sensors can also turn on at dusk and off at dawn, but they require an outlet with plenty of sun exposure and no nearby outdoor light fixtures.

Here’s how to set up your smart plug in three simple steps. Keep the plug handy for your other outdoor holiday decorations. You can also use it anytime for controlling household items like fans, lamps, or heaters.

The TP-Link Kasa Outdoor Smart Plug.
Some smart plugs, such as this TP-Link model, turn one outlet into two that you can control independently.

Step 1: Pick a Plug

If you’re using an indoor outlet, say, in the garage, any smart plug will do. Outdoor outlets require an outdoor smart plug. These tend to cost a bit more than indoor models and aren’t usually sold in stores, though they're easy to find online. And if you need an extension cord, make sure it's rated for outdoor use.

Whichever smart plug you get, make sure it has sunrise and sunset automation and uses WiFi. Models from Feit Electric, Leviton, Meross, TP-Link Kasa, and Wemo have both. Otherwise, you may have to buy an additional hub to connect a smart plug to WiFi. For example, Lutron smart plugs require an $80 bridge.

Step 2: Set Up the Smart Plug

Insert the smart plug into the outlet you want to use, download its smartphone app, and set up your account. Add the plug to your account and enter your WiFi credentials so that the plug can join your WiFi network.

Keep in mind, the app might ask for your address or access to your smartphone’s location, which you’ll need to provide in order for the plug to look up your local sunrise and sunset times. If your plug offers two-factor authentication, be sure to enable it for added security against hackers.

Step 3: Program the Plug

Look for the “rules” or “scheduling” feature in the app (it could also be called “routines,” “automations,” etc.). To set your holiday decorations to go on at sunset, choose “sunset” as the time for the plug to turn on. Then, set the plug to turn off at sunrise or a set time of your choosing (when the clock strikes 12).

See, that's not so scary!