Looking to use an NFC tag outside my front door to unlock said door regardless of iPhone or Android architecture. I know there are older topics on this, but some things have changed since and I’m starting fresh anyway. I would want to make sure only those devices authorized or logged into ST would be able to trigger, obviously. Does anyone know the step-by-step integrations for making this activity work today?
Smartthings itself does not offer any way to recognize NFC tags except on some Samsung phone models, so for other phone brands you have to use an android utility for android, and an iPhone utility for iPhone. Those can then feed into the same smartthings routine. But there’s no universal way to capture the NFC trigger, you’ll need one for each type of phone. And the way it works is that the capture utility runs on that phone so you have to be able to install an app there. That can work fine for family members, but maybe not for a dog walker or airbnb guest or someone like that.
Would that meet your use case? If so, we can talk about the details.
I’m using Bixby to run a scene in Smartthings when I tap a NCF-tag, but that’s maybe a Samsung only-app
I have a very similar requirement - to open/close a driveway gate from my Android phone and my wife’s iPhone. I currently have the NFC tag set up to send an HTTP request into SharpTools, but it’s not secure as anyone could do it if they knew the tag was there (and what it did).
Did you write the Rule Trigger URL to the tag? Could you instead store the URL on your phone and just use the presence of the NFC tag (without sensitive data on it) to run the action on your phone (eg. Tasker on Android, Shortcuts on iOS)?
Yep, that’s exactly what I did. I was just really playing around at the time to see what was possible. I’ll have a look at Tasker to see how that works. Thx
I think, in a perfect world, it could maybe be a custom URL or something like that which would know to open the SmartThings app, recognize you were already logged in, and then fire off an activity. My guess is that’s either not possible or no one knows the schema for how to do it? That way if an unknown scanned the NFC tag, nothing would happen because the app wouldn’t exist on their phone or wouldn’t have the credentials in place. The goal is to not have to use, or at least minimize the use of, 3rd party apps that every phone would have to also have on their device. Something more device agnostic.
100%. I remember I did look at Tasker at the time, but all the tutorials I looked at used Trigger to detect the NFC tag to launch Tasker. I already have the sequence of the URL triggering SharpTools that controls a device on SmartThings, that is connected to my gate via iSmartGate cloud service.
It’s seems like a convaltuted process to have the NFC tag be picked up by Trigger, that launches Tasker, to send URL (by opening the browser) to SharpTools, to control a Smartthings device that is cloud connected to my gate. The very gate on which the NFC tag is stuck.
There must be a simpler way.
This is apple only so probably doesn’t help but I was doing this with Apple homekit and shortcuts. Worked flawlessly. I did use tasker with an android box but as mentioned I had security concerns.
Its a real shame that ST doesn’t support universal NFC tags
However ive stopped until Homebridge / smartthings link structure is sorted. I dont want to change the topic but Anyone know if this is being worked on?
I haven’t used Tasker for a little while but I thought it had built in support for NFC tags. It can certainly call the SmartThings API directly (see SmartThings Rest API using Tasker for inspiration).
Conversation in the following thread. Please take further HomeKit discussion there.
You are correct, Tasker does aupport nfc tags. I actually use it to scan a tag and run a scene.
I played with NFC tags and Tasker a couple years ago. They require very close proximity to be read.
I’m curious how you trigger a gate with an NFC tag. Do you have to get out of the car?
We have gate remotes in our cars. It’s more for when we are in the front yard and want to take bins in /out etc
I would mount a nfc tag(old hotel room key cards are great for this) on the bins. Scan with your phone using tasker then. Use the appropriate API calls using tasker.
Remember that the OP’s family has some people with android phones and some people with iPhones so they need a solution for each.
You are correct, I ment to quote another post. I will fix that.
When you generate the device or scene URL, can you add more to it to fire off the activity? For example, can you grab the door lock URL and add “unlock” so it’s a one step process? Scan the NFC and it unlocks the door. No extra button presses.
To answer your question, yes. Me, I just created a scene with all the things I want done and it works. I used to use the NFC with homekit to unlock the door, but you need to still hit ok to run the automation with the iPhone. With this, it just works