I had a few NFC tags (cards, wrist bands, ketchains) laying around, and I purchased a new Android phone with NFC. So I was thinking, wouldn’t it be fun and easy to control Home Assistant with those tags?!
I’ve done some searching, and it’s already possible, but the current solutions are not working the way I like. You need to have 2-3 apps installed to configure the tags, and read them, and send a signal to Home Assistant.
So that’s why I’ve been working on Hass NFC; an Android app that reads specific tags (with a certain mimetype so only those trigger my app and nothing else) and fires a script on Home Assistant. Setting up the tags is very easy. All you need to write on it is the name of the script you would like to trigger.
When Hass NFC finds a NFC tag it sends a signal to the Home Assistant API and turns on the script that’s written on the tag.
Hass NFC securely saves your Home Assistant URL and API password which it uses for every call.
A good purpose for this app is to for example turn off your lights when you go to bed. Put a NFC tag on your bed table and simply put your phone on it when you go to sleep. The app then calls a Home Assistant script which turns off your lights.
Obviously the purposes are endless because you decide what happens in the script that you trigger.
You can download it in the Play Store: https://play.google.com/store/apps/details?id=com.gerbenbol.hassnfc