NFC with Tasker for Android
Android Automation with NFC Triggers
Setting up NFC tag triggers in Tasker for Android automation. Covers profiles, tasks, variables, and advanced automation scenarios.
- NFC with Tasker for Android
- Tasker NFC Architecture
- Tasker NFC Profile Setup
- Powerful Tasker NFC Automations
- Writing Tasker Tags (Tasker NDEF Payload)
- NFC + AutoRemote for Cross-Device Automation
- Combining Tasker NFC with Home Assistant
- Tasker NFC vs Android Shortcuts vs IFTTT
- Managing Multiple Tags with Tasker
- Troubleshooting Tasker NFC
- Tag Recommendations
- See Also
NFC with Tasker for Android
Tasker is the most powerful Android automation app and has native NFC trigger support. Combined with NFC tags, Tasker enables context-aware automations that fire instantly when you tap a tag — without any other app or cloud service.
Tasker NFC Architecture
Tasker's NFC integration works through Android's ndef dispatch system:
- A Tasker profile uses Event → NFC Tag as the trigger
- The trigger matches on Tag ID, NDEF content, or both
- When matched, Tasker executes a linked Task with full access to all Tasker actions
Unlike Shortcuts on iOS, Tasker can also respond to the NDEF payload content — not just the tag UID — which enables one tag to trigger different Tasks on different phones.
Tasker NFC Profile Setup
- Open Tasker → Profiles → + → Event → Net → NFC Tag
- Configure the trigger:
- ID: leave blank to match any tag, or paste a specific tag UID
- Content: match on NDEF text record value (optional)
- Any Tag: check this to fire on any tag regardless of content
- Tap back, create a new Task and add actions
- Activate the profile
Pro tip: Use a tag written with the Tasker NDEF writer (NFC → Write Tag) to encode a Tasker-specific payload. The NDEF content can embed task name references that Tasker parses directly.
Powerful Tasker NFC Automations
| Tag Location | Task Actions | Benefit |
|---|---|---|
| Car mount | AutoInput car mode, Bluetooth on, WiFi off, open Waze | Full driving setup, one tap |
| Bedroom | Silent mode, screen timeout 30 s, set alarm | Sleep preparation |
| Work desk | Work Wi-Fi connect, work email notification, disable gaming apps | Focus mode |
| Gym bag | Fitness tracker connect, open workout app, DND on | Workout mode |
| Medicine cabinet | Log timestamp to Google Sheets (via HTTP POST) | Medication tracking |
| Child's backpack | SMS parent "Child left school", set location tracking | Child safety |
Writing Tasker Tags (Tasker NDEF Payload)
Tasker can write a proprietary NDEF record that encodes a task name directly:
- Write the NFC tag from within Tasker: Menu → More → NFC Tag
- Select Task and choose the task to run
- Hold the phone to the tag
This writes an NDEF External type record net.dinglisch.android.taskerm:nfc with the task name as payload. When another device with Tasker (and the same task name) scans the tag, it runs the task automatically — without any profile configuration on the receiving device.
NFC + AutoRemote for Cross-Device Automation
With the AutoRemote plugin, a tag scan on one device can trigger an action on another:
Tag on TV remote → Tasker → AutoRemote → Phone receives message
→ Tasker on phone: pause music
This enables home automation scenarios where a physical NFC tag controls actions across multiple Android devices without a smart home hub.
Combining Tasker NFC with Home Assistant
For smart home integration, use Tasker's HTTP Request action to call Home Assistant's REST API:
Task: Tap Home Tag
Action 1: HTTP Request
Method: POST
URL: http://homeassistant.local:8123/api/services/scene/turn_on
Headers: Authorization: Bearer {ha_long_lived_token}
Body: {"entity_id": "scene.evening"}
Action 2: Flash "Home scene activated"
See NFC with Home Assistant for a complete integration guide.
Tasker NFC vs Android Shortcuts vs IFTTT
| Feature | Tasker NFC | Android NFC Shortcuts | IFTTT NFC |
|---|---|---|---|
| Offline operation | Yes | Yes | No (cloud) |
| Response time | < 0.5 s | < 0.5 s | 1–30 s |
| Action complexity | Unlimited | Moderate | Limited |
| Cross-device | Via AutoRemote | No | Yes |
| Cost | Paid (~$4) | Free | Freemium |
| Root required | No (most actions) | No | No |
Managing Multiple Tags with Tasker
For deployments with many tags, use a naming convention to keep profiles organised:
Profile: NFC — {Location} — {Context}
NFC — Car — Morning
NFC — Car — Evening
NFC — Desk — Work
NFC — Bedroom — Sleep
Use Tasker's built-in Tag variable (%nfc_id) to log which tag was scanned and when, then run a recurring task to send the log to a spreadsheet for activity tracking.
Troubleshooting Tasker NFC
| Issue | Cause | Fix |
|---|---|---|
| Profile triggers but task doesn't run | Task has errors | Run task manually first; check errors |
| Tag not triggering Tasker | NFC permission not granted | Settings → Apps → Tasker → Permissions → NFC |
| Multiple profiles firing on one tag | Overlapping tag ID / content match | Add more specific match criteria |
| Tasker intercepts all NFC tags | "Any Tag" profile too broad | Add ID or content filter |
| HTTP actions fail at home | Home Assistant URL wrong | Test URL in phone browser first |
Tag Recommendations
- NTAG213 for simple triggers (URL + Tasker task payload fits within 144 bytes)
- NTAG215 if you need both a full vCard NDEF record and a Tasker task embedded
- Use the NDEF Encoder to generate the correct hex payload before writing
See Also
Frequently Asked Questions
Our guides cover a range of experience levels. Getting Started guides are written for beginners with no prior NFC knowledge. Programming guides target developers integrating NFC into mobile apps or embedded systems. Security guides are for engineers designing secure NFC deployments for payments, access control, or authentication.
Most guides require only an NFC-enabled smartphone (iPhone 7+ or any modern Android device) and a few NFC tags (NTAG213 or NTAG215 recommended for beginners, available for under $1 each). Advanced guides may reference USB NFC readers like the ACR122U or Proxmark3 for development and testing.
Yes. Programming guides include code examples for Android (Kotlin/Java with the Android NFC API), iOS (Swift with Core NFC), and web-based tools (Web NFC API for Chrome on Android). All code samples are tested and include inline comments explaining each step.