Back to guides

Holiday Lights NFC Shortcut: Tap a Tag to Switch On the Tree

Tap an NFC tag with your iPhone and a Shortcuts automation switches a smart plug on or off. Here is the setup for holiday lights, with the prompt and locked-screen settings explained.

Published

Tap once, lights on

You can switch holiday lights on and off by tapping an NFC tag with your iPhone. A Shortcuts personal automation watches for the tag and tells a smart plug (already added to the Home app) to turn on or off. No app opens and there's no menu hunting. Below is the full setup, plus the two settings that decide whether it feels instant or annoying.

What you need

You need three things:

  • An iPhone with the Shortcuts app.
  • A smart plug that already shows up in the Home app, with your tree or window lights plugged into it.
  • One blank NFC tag. 9to5Mac's HomeKit guide put tags at under $10 for a pack of 12 in 2022, and the same guide notes that existing HomeKit accessories work without changes.

If you are unsure which sticker to buy, our guide to tag sale pack sizes and shapes covers what fits. For this job the tag's contents don't matter. The automation only needs the iPhone to recognize that specific tag.

Create the NFC automation

The steps below follow the 9to5Mac HomeKit Weekly walkthrough:

  1. Open Shortcuts and tap the Automation tab.
  2. Choose Create Personal Automation, then pick When I tap an NFC tag.
  3. Tap Scan and hold the tag to your iPhone. On an iPhone 13 the guide says the tag goes near the camera. Name the automation after what it does, such as "Tree lights".
  4. Tap Add Action, open the Apps tab, choose Home, then Take Control of Your Home.
  5. Tap Set Scenes and Accessories, find your plug or a scene, and set it to on or off.
  6. Finish, then tap the tag to test.

The automation above sets the plug to one state, so on/off needs a little planning. The simplest version is two tags: one marked "On" beside the tree, one marked "Off" by the front door. If you want a single tag to toggle, build a shortcut that checks the plug's state first. That's a separate Shortcuts exercise, in the same spirit as another Shortcuts NFC automation we walked through for Wi-Fi.

Skip the confirmation prompt

Some automations ask before running, which adds a banner and a tap to every scan. The 9to5Mac author says they turn off Ask Before Running for the vast majority of automations. Apple's Shortcuts guide agrees that some personal automations can run without asking for confirmation when triggered.

You can also let it run on a locked phone. Apple's steps: open the shortcut, tap Edit, tap the Info button, tap Privacy, then enable Allow Running When Locked. Apple adds that the automation will not notify you when it is triggered.

Pause before you flip that last setting. Anyone who holds your phone to the tag can run it, even when it is locked. For tree lights that is harmless. For anything that unlocks a door, keep the prompt on.

Where to put the tag

Placement is most of the design.

  • By the door. An "Off" tag at eye level means the last person out kills the lights. A tag stuck behind a picture frame or under a shelf edge works too.
  • At the tree. An "On" tag on the skirt or the wall behind it, tapped when you walk in.
  • On an AirTag. 9to5Mac reported that an AirTag can act as the NFC tag for a Shortcuts automation, and its normal NFC function (Lost Mode and viewing the serial number) is separate. Handy if you already own one, though a sticker costs far less.

Metal surfaces can weaken NFC reads, so test on the actual spot before you peel the backing. If you want a different tag-triggered holiday idea, see our tag-triggered reminder for menorah nights.

If you prefer to inspect or rewrite a tag before you build on it, NFCore on the App Store reads and writes tags on iPhone, and NFCore on Google Play does the same on Android. The Shortcuts NFC trigger itself is an iPhone feature.

Troubleshooting

  • Nothing happens. Re-scan the tag inside the automation to make sure it was captured, and confirm the plug works from the Home app.
  • Phone asks every time. Turn off Ask Before Running.
  • Wrong action fires. If you reused a tag, the old shortcut still runs after you erase a tag. Delete the old automation.

The short version

One tag, one personal automation, one Home action. Turn off the prompt so it feels instant, decide whether a locked phone may trigger it, and put an "On" and an "Off" tag where hands naturally go. Test it all before the lights go up for the season.

Frequently Asked Questions

Can an NFC tag turn on holiday lights without an app?

Yes. A Shortcuts personal automation with the NFC trigger runs when you tap the tag, so no separate app needs to be open. The plug must be set up in the Home app first.

Can I use an AirTag instead of a sticker?

9to5Mac reported that an AirTag works as an NFC trigger in Shortcuts. Its normal NFC function is for Lost Mode and viewing the serial number.

Why does my iPhone ask before running?

Some automations ask for confirmation by default. Turn off Ask Before Running in the automation's settings, and enable Allow Running When Locked if you want it to run on a locked phone.