Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Candy Corn Switch: How to Make a Halloween Light Trick

· 7 min read · Smart Home

In this article
  1. What You’ll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The "Candy Corn Switch" is a clever trick that uses a smart plug and a simple timer or routine to make a light blink in a red, orange, white sequence—simulating the classic Halloween candy—without needing special hardware. It’s purely a software-based illusion using timing, so the only requirement is a smart plug connected to a light (or lamp) and a compatible smart home app (like Google Home, Apple Home, or Samsung SmartThings). No physical modifications to the light or plug are needed.

What You’ll Need

  • A smart plug (e.g., TP-Link Kasa, Wyze, Meross, or Amazon Eufy)
  • A standard lamp or light bulb (incandescent, LED, or CFL—any plug-in light works)
  • A smartphone with the smart plug’s companion app installed (e.g., Kasa, Wyze, or Apple Home)
  • Wi-Fi access for the smart plug (must be online and paired)
  • A Google Account (if using Google Home Routines) or Apple HomeKit setup (if using iOS Automations)

Step-by-Step

  1. Set up the smart plug and light: Plug the lamp into the smart plug, then plug the smart plug into a wall outlet. Power on the lamp manually (if it has a physical switch, flip it on). Open the smart plug’s app and confirm the plug is online and controllable (try turning the light on/off from the app).
  2. Choose your control method: You’ll use either a repeating timer (if your app supports it, like Kasa Schedules) or a smart routine/automation (e.g., Google Home Routine or Apple Home Automation). For this guide, we’ll use the Kasa app as the primary example, but alternatives are noted where steps differ.
  3. Create a 3-step blinking cycle: In Kasa, tap your smart plug, then go to Schedule > Add Schedule > Repeat. Name it "Candy Corn." Set the first event: Turn ON at 12:00 AM. In the Actions section, add a Delay of 2 seconds, then Turn OFF. Add another Delay of 2 seconds, then Turn ON. Add another Delay of 2 seconds, then Turn OFF. Add a final Delay of 2 seconds, then Turn ON. This completes one red-orange-white blink cycle (ON = red/orange, OFF = white pause). Set the schedule to Repeat daily and save.
  4. Adjust timing for smoother illusion: The 2-second delay creates a 6-second full cycle. If the blinking feels too fast or too slow, edit the schedule and change the delay to 1.5 seconds for faster pulses (4.5-second cycle) or 3 seconds for a calmer 9-second cycle. Most people prefer 2 seconds—it mimics the candy’s tri-color sequence without being jarring.
  5. For Google Home users: Open Google Home, tap the + > Routine. Name it "Candy Corn Light." Under When, choose Every day and set a start time (e.g., 7:00 PM). Under Add action, enter: Turn on the lamp > Wait 2 seconds > Turn off the lamp > Wait 2 seconds > Turn on the lamp > Wait 2 seconds > Turn off the lamp > Wait 2 seconds > Turn on the lamp. Then add a Repeat loop: tap More options > Repeat actions and set to Repeat every 6 seconds until 8:00 AM (or your chosen end time). Save.
  6. For Apple HomeKit users (iOS/iPadOS): Open the Home app, tap the Automation tab > Create Automation > Choose a Room > select your smart plug’s room > tap Next. Choose When a Time Occurs > set daily start time > Next. Tap Add Action > Add to HomeKit > Turn on your lamp > Next. Tap Add Action again > Add to HomeKit > Wait > set to 2 seconds > Next. Continue adding: Turn off > Wait 2s > Turn on > Wait 2s > Turn off > Wait 2s > Turn on. Then, tap Next and choose Run Automatically > Done. Note: iOS Automations don’t natively loop, so this runs once per day at the start time. To make it continuous, use a third-party app like Home+ 5 or Controller for HomeKit that supports recurring loops.
  7. Test and refine: Trigger the schedule manually (via app or routine preview) and watch the light. It should blink: ON (red/orange) → OFF (white) → ON (red/orange) → OFF (white) in 2-sec intervals. If the sequence is off (e.g., it blinks only once), ensure all delays and actions are in the correct order and no actions are missing. If the light stays on steadily, double-check that OFF actions are included between ON events.

Common Mistakes

  • Skipping the OFF steps: The illusion relies on alternating ON and OFF states. If you only set ON delays, the light stays lit and no candy effect occurs.
  • Incorrect delay timing: Using 1-second delays makes the blink feel like a strobe; 5-second delays make it feel like a dying bulb. Stick to 1.5–3 seconds for best results.
  • Forgetting the physical lamp switch: If the lamp has a wall or cord switch, it must be in the ON position—the smart plug can only toggle power, not override a physically switched-off lamp.
  • Assuming color change: This trick uses a single light bulb, so the "red-orange-white" effect is a timing illusion. If you want actual color changes, you’d need a multi-color smart bulb (e.g., Philips Hue), but that’s a different setup and not the classic "Candy Corn Switch." i

Tips

  • Use a dimmable bulb on low: A soft-white bulb at 30–40% brightness mimics the candy’s pastel tones better than a bright white light.
  • Place the light strategically: Put the lamp behind a thin, semi-transparent pumpkin or in a window at night—the soft, rhythmic glow looks more magical when diffused.
  • Sync with Halloween decor: Use the same schedule across multiple smart plugs (e.g., one for each window) for a coordinated effect.
  • Stop during daytime: End the routine at 10:00 PM or 11:00 PM to avoid annoying neighbors or wasting energy. Most apps let you set an end time for the loop.
  • Backup your routine: Before updating your smart home hub or app, export your schedule (if supported) or note down the timing details—some updates reset automations.

Troubleshooting

If the light doesn’t blink as expected, follow these checks in order:

  • Is the smart plug online? Open the app and confirm the plug shows as "Online." If it’s offline, restart the plug (unplug for 10 seconds), check Wi-Fi, and re-pair if needed.
  • Are all actions in the schedule present? In Kasa or other apps, go to the schedule and verify: ON → Delay → OFF → Delay → ON → Delay → OFF → Delay → ON. Missing any step breaks the sequence.
  • Is the delay set correctly? Some apps require delays in whole seconds (e.g., 2s), while others accept decimals (e.g., 1.5s). If your app doesn’t support sub-second delays, use 2s for reliability.
  • Is the routine active and scheduled? In Google Home or Apple Home, ensure the routine is enabled (toggle on) and set to run daily. Look for a checkmark or active status icon.
  • Does the light bulb support dimming or color change? Standard bulbs can only turn on/off. If you want red/orange/white colors, you need an RGB smart bulb—but again, that’s not the traditional Candy Corn Switch.
  • App version outdated? Update the smart plug app and ensure your phone’s OS is current. Outdated apps sometimes misfire schedules.
  • Factory reset as last resort: If nothing works, reset the smart plug (hold button for 10+ seconds), re-pair it, and rebuild the schedule. Note: This deletes all custom schedules and names—you’ll need to recreate them.

Frequently Asked Questions

Can I use a smart bulb instead of a smart plug?

Yes, but only if the bulb is dimmable (to mimic the candy’s soft look) and your app supports precise delays. The steps are nearly identical—you just control the bulb directly instead of via a plug.

Does this work with Alexa Routines?

Not directly. Alexa doesn’t support sub-60-second delays in routines, so you can’t achieve the 2-second blink sequence with native Alexa. Use Google Home, Apple Home, or the smart plug’s own app instead.

Can I make it blink only on Halloween night?

Yes. In Kasa or similar apps, set the schedule to run only on October 31 (e.g., "Start: Oct 31, End: Oct 31"), or in Google Home/Apple Home, set the routine to run on a specific date range.

Why does the light blink once and stop?

Most likely, the routine only runs once instead of looping. In Google Home, ensure you enabled "Repeat every X seconds"; in Apple Home, use a third-party app for looping. In Kasa, check that "Repeat" is selected (not "One time").

Will this work during the day?

Yes—but it’s less visible. Most people run it from dusk to dawn (e.g., 6:00 PM to 11:00 PM). You can set start/end times in your schedule to limit runtime.

Is this safe for kids or pets?

Yes. It uses standard low-voltage lamps and smart plugs—no wiring or modifications. Just keep cords out of reach of curious toddlers or pets, as you would with any electrical device.