Use NFC Tags to Trigger Node-RED and Alexa Actions

Learn how to automate your smart home with NFC tags, Node-RED, and Alex through a simple setup guide.

Posted by Nina Alvarez on April 26, 2025 · 5 mins read

Use NFC Tags to Trigger Node-RED and Alexa Actions

Introduction

Have you ever wished you could automate your smart home with just a simple tap? Whether you’re a tech enthusiast or a DIY beginner, using NFC tags can make home automation easier and more intuitive than ever. By pairing NFC tags with Node-RED and Amazon Alexa, you can create seamless workflows that transform your living space into a smart haven without lifting a finger.

In this guide, I’ll walk you through the process of setting up NFC tags to trigger actions in Node-RED and Alexa. You’ll soon be tapping your way to convenience! So, let’s dive in.

Step-by-step Setup Guide

Materials Needed:

  1. NFC Tags: You can purchase these online. Look for NTAG213 or similar.
  2. Android Phone: Most NFC apps are available on Android. iPhones are compatible too, but with limited functionality.
  3. Node-RED Installation: If you haven’t set up Node-RED yet, head over to Node-RED for detailed instructions.
  4. Amazon Alexa Device: Essential for the Alexa integrations.
  5. NFC Writer App: Choose an app like NFC Tools for easy tag programming.

Installation Steps:

1. Install Node-RED

If you haven’t done so already, install Node-RED on your device. Follow the instructions on the Node-RED website. Ensure it’s accessible via your local network for further steps.

2. Set Up the NFC Tags

  1. Open the NFC Writer App: Launch the app on your Android phone.
  2. Write Data to Your NFC Tags: Use your NFC tags to trigger specific Node-RED flows. You can write a URL, text, or a predefined command in the app.
    • For example, write a text command that Node-RED can interpret later, such as “Turn on living room lights.”
  3. Save the Data: Once you’ve programmed your NFC tag, save the information. It’s now ready for use!

3. Create Node-RED Flows

  1. Access Node-RED: Open your Node-RED dashboard.
  2. Add an HTTP Endpoint: Drag in an http in node and configure it with a suitable URL endpoint (e.g., /nfc-light).
  3. Parse Incoming Requests: Connect it to a function node that interprets the command. For example:

    var command = msg.payload; if (command === "Turn on living room lights") { msg.payload = { "Light": "On" }; } return msg;

  4. Integrate with Alexa: Use the Alexa integration nodes to handle voice commands and responses.
    • If you are not familiar with this, you can explore node-red alexa for examples on expanding functionality.

4. Test Your Setup

  1. Scan the NFC Tag: Use your phone to scan the NFC tag.
  2. Node-RED Execution: Verify that the appropriate Node-RED flow is executed as expected.
  3. Check Alexa Responses: If integrated properly, you should hear effectual commands or notifications through your Alexa device.

Helpful Tip Block

Keep It Organized

Label your NFC tags clearly! Use a label maker or write directly on the tags. This will help you remember which one corresponds to which action in your home automation setup.

Play with Functionalities

Experiment with different commands and flows. Try integrating other smart devices in your home for a variety of tasks — from dimming lights to triggering TV scenes. Check out node-red flow examples for inspiration!

Use Companion Apps

Regularly use the companion app to check the status of your NFC tags and Node-RED flows, ensuring everything is running smoothly.

Common Issues & Troubleshooting

  • NFC Tags Not Responding: Ensure the NFC feature is enabled on your phone and the tags are properly programmed. Try rewriting the tags if issues persist.
  • Node-RED Not Executing Flows: Make sure your Node-RED is running and the endpoint URL matches what you programmed on the NFC tag.
  • Alexa Responses Not Triggering: Check your Amazon Alexa Node-RED integration. If you are using the node red alexa announcement node, verify the setup and permissions.

Final Thoughts

Using NFC tags to trigger Node-RED and Alexa actions opens a world of possibilities for smart home automation. It’s a beginner-friendly method that can be executed with minimal technology, yet yields impressive results. Remember that even small automations can significantly enhance the convenience and efficiency of your day-to-day life.

So, get started today, and don’t be afraid to experiment with new ideas! The combination of NFC technology, Node-RED, and Alexa can make your home smarter in ways you never thought possible. Happy automating!