NFC stickers are cheap and can replace for instance a button. This tutorial demonstrates how I was able to write a string to a NFC sticker, read it with my android phone, and start a flow in Homey Pro.
This is my setup:
-I have an android phone/Google Pixel 6
-I have “Use NFC” enabled on the phone
-I have NFC stickers (NTAG 213, type 2)
-I have Homey Pro 2019
-URL I’ll use: http://<Homey-LAN-IP>/api/manager/logic/webhook/<keyword>
UPDATE: After I created this how-to, I’ve since updated it here…
…or just read on…
Step 1: Write something unique to the tag
Tags might come with an unique ID on them. In that case you can skip this step. My tags were empty, so I went through many NFC writers/readers but ended up with “MacroDroid” from ArloSoft. This app lets you write, read and automate the steps needed. Ok, start MacroDroid > Add macro > {give it a name eg ‘Livingroom_music’} > +Trigger (search for and select NFC) > Write tag
> {name the tag eg ‘livingroom_music’}…
Step 2: Automate what to do when tag is scanned
Well, MacroDroid bakes all this together, so let’s just continue from the steps above. You just wrote a string to the tag. Let’s add an action: +Action > Web interactions > HTTP request > {insert URL but replace <keyword> with ‘livingroom_music’ (make sure it’s a GET request)}
Lastly, open the “…” menu and select “Save changes”. That’s it for the tag!
Step 3: In Homey Pro, set up the listener flow
That’s it!
The ‘Cast text to Google’ gets old fast, but is fine for verbal debugging in the beginning. I removed it after this was made
This is a poor man’s implementation of this dream…
PROS: This works, Only I can use the tag for this (everyone else need to associate the tag ‘livingroom_music’ with their own actions)
CONS: Flipside of the PRO: If you want to share the action with everyone, it might work to store the webhook URL in the tag. Haven’t tried.
Update: I was lying: I have tried it. See here…