Smart Systems for Home

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

How to Use NFC Tags for Home Automation

· 5 min read · Home Automation

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

You can automate home routines by tapping an NFC tag with your smartphone. This method requires no complex wiring or hubs; it simply uses your phone’s built-in Near Field Communication reader to trigger pre-configured actions like turning on lights, locking doors, or playing music.

What You'll Need

  • A smartphone with NFC capability (most modern Android and iPhone models support this)
  • NFC tags (NTAG213 or NTAG215 are recommended for reliability)
  • A compatible automation app (e.g., Tasker for Android, Shortcuts for iOS)
  • The smart home ecosystem you wish to control (e.g., Philips Hue, LIFX, SmartThings, HomeKit)

Step-by-Step

  1. Prepare Your Smart Home Devices: Ensure all devices you want to control are already connected to their respective apps and respond correctly to manual commands via your phone. If a light bulb isn’t responding to the app, fix that connection before proceeding.
  2. Install an Automation App: Download a dedicated NFC writing app. On Android, Tasker is the industry standard, though NFC Tools offers a simpler interface. On iOS, you will use the native Shortcuts app, which has deep integration with NFC triggers.
  3. Write the Tag (Android - Tasker Example):
    • Open Tasker and create a new Profile.
    • Select Event > Plugin > NFC > Read Tag.
    • Tap the physical NFC tag against the back of your phone (usually near the camera module) until the app detects it. The app may ask you to place the tag near the antenna again; follow these prompts carefully.
    • Once detected, create a new Task linked to this profile.
    • Add an action relevant to your goal. For example, search for Plugin > Philips Hue > Set Color or System > Brightness.
    • Configure the specific parameters (e.g., turn on Living Room Light, set brightness to 80%).
    • Save the task and profile.
  4. Write the Tag (iOS - Shortcuts Example):
    • Open the Shortcuts app and tap the + icon to create a new shortcut.
    • Name your shortcut (e.g., "Bedtime Mode").
    • Tap Add Action and search for NFC. Select Scan NFC as the first step.
    • Alternatively, start by adding the action you want to perform (e.g., HomeKit > Turn On Switch). Then, add the Set Up Shortcut to Run When Scanned action at the end of the sequence.
    • Follow the on-screen instructions to scan the NFC tag. Hold your iPhone steady over the tag until the vibration confirms the write is complete.
  5. Test the Configuration: Lock your phone screen. Walk to the location where you intend to place the tag. Unlock your phone (or keep it locked, depending on settings) and tap the tag against the phone. Verify that the intended action occurs immediately.
  6. Place the Tag: Once tested, adhere the tag to its final location using double-sided tape or adhesive backing. Common spots include nightstands, fridge doors, or entryway walls. Ensure the tag is flat and not covered by thick metal surfaces, which block NFC signals.

Common Mistakes

Many users fail because they attempt to write the tag while the automation app is open in the foreground. Most modern smartphones require the screen to be off or the app to be running in the background to trigger the NFC read event securely. Additionally, placing NFC tags directly behind metal objects (like steel filing cabinets or inside metal frames) will prevent them from working entirely, as metal shields the radio frequency signal.

Tips

Use distinct colors for different zones. For example, use red tags for security routines (locking doors) and blue tags for media routines (turning on TV). Label the tags physically if you have multiple identical ones. On Android, ensure your NFC reading priority is set to allow third-party apps to handle NFC intents, rather than defaulting to the browser or wallet app. On iOS, remember that scanning NFC tags generally requires unlocking the device first unless you have configured specific "Always Allow" permissions in the Shortcuts app.

Troubleshooting

If the tag does not trigger the action, first check if your phone’s NFC is enabled in the quick settings panel. Next, verify the tag is being written correctly by scanning it with a generic NFC reader app (like NFC Tools) to see if it contains data. If the tag appears blank, rewrite it. If the tag has data but no action occurs, check your internet connection, as many smart home automations require cloud connectivity. Finally, restart your phone to clear any stuck NFC services.

Frequently Asked Questions

Can I use NFC tags without an internet connection?

Only if the action is local. For example, you can use NFC to change your phone’s Wi-Fi or Bluetooth settings offline. However, controlling smart bulbs or plugs usually requires an active internet connection to communicate with the manufacturer’s cloud or hub.

Do NFC tags wear out?

No. NFC tags contain no battery and have no moving parts. They can be rewritten thousands of times and last indefinitely unless physically damaged or exposed to extreme magnetic fields.

Can one tag trigger multiple actions?

Yes. In both Android Tasker and iOS Shortcuts, you can chain multiple actions together. Tapping one tag can simultaneously dim lights, play music, and lock the front door.

Are NFC tags secure?

Standard NFC tags are passive and cannot transmit data back to your phone unless triggered. They do not store personal information. However, anyone with an NFC-enabled phone can read the tag’s ID. To prevent unauthorized reprogramming, some advanced tags offer password protection features.

Which is better: Android or iOS for NFC automation?

Android offers more granular control via apps like Tasker, allowing for complex logic. iOS provides a cleaner, more integrated experience via Shortcuts but has stricter limitations on background execution and access to certain system settings.