NFC for Smart Home — Pairing Tags With Home Assistant, HomeKit, and Matter

Tap an NFC tag to run a HomeKit scene or a Home Assistant automation, and use Matter's new tap-to-commission setup. Here's how each one works and what to buy.

Published

An NFC tag turns any surface into a smart-home button. Stick one by the door, on a nightstand, or inside a cabinet, tap your phone to it, and a scene runs. But "NFC plus smart home" really covers two different jobs — and mixing them up is where most people get stuck.

Two jobs NFC does in a smart home

The first job is triggering: you tap a tag and an automation fires — lights off, Good Night scene, fan on. The second is commissioning: you tap a tag to add a new device, the way you'd scan a setup QR code. HomeKit and Home Assistant handle the triggering side today; Matter recently added the commissioning side. Knowing which one you're after tells you exactly which path to follow below.

HomeKit: tap a tag to run a scene

Apple has no native "tap to run HomeKit" feature, but iOS Shortcuts gets you there. Open Shortcuts, go to the Automation tab, create a personal automation, and pick NFC. Tap Scan, hold the tag flat against the top edge of your iPhone, and give it a name like "Hallway — Good Night." Then add an action: choose Home, Take Control of Your Home, and Set Scenes and Accessories, and pick the scene or accessory you want. Finally, switch off Ask Before Running so the tag fires silently instead of nagging you each time.

One detail worth knowing: the Shortcuts NFC trigger reads only the tag's unique ID and ignores whatever data is stored on it. A blank tag works perfectly. If you want the same tag to also do something useful for guests, you can write an NDEF record to it separately. For a full walkthrough with ten automation ideas, see our guide to iOS Shortcuts NFC automations.

Home Assistant: the tag_scanned event

Home Assistant treats every tag as an event source. Write a tag from the Companion app under Settings → Companion App → NFC Cards → Write, or from the dedicated Tags panel. When anyone scans it, Home Assistant fires a tag_scanned event carrying three values: tag_id (what was scanned), name, and device_id (which phone or reader did the scanning).

That device_id is the clever part. A single automation can handle every tag in the house: tag_id decides what to do, and device_id decides where. Tap the same "Play Music" tag in the kitchen and it plays in the kitchen; tap it in the bedroom and it plays there. For rooms where you'd rather not pull out a phone, a standalone ESPHome reader built from an ESP8266 and a PN532 module gives you a permanent wall scanner that anyone in the house can use.

Matter: tap to commission, not to trigger

Matter approaches NFC from the other direction. As of Matter 1.4.1, manufacturers can embed onboarding info in an NFC tag — the same data as the printed setup QR code, stored as an NDEF URI record. You tap your phone to the device to add it to your network. That helps with a bulb screwed into a ceiling fixture or a switch already mounted in the wall, where the printed QR code is hidden.

Be clear about the limit, though: Matter's NFC support is for adding a device, not for triggering a scene afterward. Once the device is commissioned, your tap-to-run automations still come from HomeKit/Shortcuts or Home Assistant.

Common problems and fixes

Background tag reading on iPhone needs an iPhone XS, XR, 11, or newer, and the antenna sits at the top edge — not the center of the back. If a tag won't read, you're probably touching the wrong spot. Mounting a normal tag on metal detunes its antenna, so use an on-metal tag for appliances. And if a HomeKit automation pops a confirmation every time, you left Ask Before Running switched on.

Doing this with NFCore

For trigger-only tags, a basic NTAG213 is plenty, since only the UID matters. If you also want to store a URL, Wi-Fi handoff, or vCard on the same tag, step up to NTAG215 or NTAG216. NFCore lets you write, inspect, and lock any of them, and read back exactly what's on a tag before you deploy it. Grab it on the App Store or Google Play and set up your first tap-to-run tag.

FAQ

Do I need to write data to the tag for a HomeKit or Shortcuts trigger? No. The Shortcuts NFC trigger fires on the tag's unique ID and ignores the contents, so a blank tag works fine.

Can Android use NFC tags with Home Assistant? Yes. The Android Companion app reads and writes tags, and a standalone ESPHome PN532 reader works regardless of phone platform.

Does Matter let me tap a tag to run a scene? Not directly. Matter's NFC feature commissions a new device; running scenes by tap still comes from Shortcuts/HomeKit or Home Assistant.

What tag should I buy for smart-home automations? NTAG213 for trigger-only use. Choose NTAG215 or NTAG216 if you also want a useful NDEF payload on the same tag.


Ready to Get Started?

Download NFCore and start managing your NFC tags like a pro.