Turn Old Devices into Smart Gadgets with Node-RED

Transform outdated electronics into smart gadgets with Node-RED and creativity!

Posted by Nina Alvarez on April 17, 2025 · 6 mins read

Turn Old Devices into Smart Gadgets with Node-RED

Is your home filled with old devices that still have a bit of life left in them? Maybe it’s that dusty lamp that could use a smart bulb or an ancient radio that doesn’t receive Bluetooth. Good news! With a little ingenuity and the power of Node-RED, you can turn these forgotten gadgets into smart home heroes. In this guide, we’ll walk you through the step-by-step setup necessary to leap from “old-school” to “smart home.”

Step-by-step Setup Guide

Before we dive in, make sure you have Node-RED installed. If you haven’t set it up yet, head over to Node-RED for a complete tutorial. Here’s how you can start converting your old devices into smart gadgets using Node-RED.

Step 1: Gather Your Old Devices

Start by selecting the devices you want to convert. Common candidates include:

  • Lamps
  • Fans
  • Old radios
  • Coffee makers

Ensure they are in good working order and have some form of power supply.

Step 2: Install Necessary Node-RED Contrib Modules

To get started, you may need some Node-RED contrib modules, like the node red contrib alexa home skill for integrating with Amazon Alexa. You can find and install these modules directly from the Node-RED user interface.

  1. Open Node-RED in your browser.
  2. Click on the menu (the three horizontal lines in the top right).
  3. Navigate to Manage palette.
  4. Click the Install tab and search for node red contrib alexa home skill.
  5. Click the Install button.

Repeat this process for any other necessary modules you think you may need, such as the node-red-contrib-wemo-emulator if you’re targeting devices like lamps or switches.

Step 3: Create Your First Flow

  1. On the Node-RED dashboard, drag the following nodes onto your workspace:
    • Inject Node - to trigger events manually.
    • Function Node - to define the operations for your device.
    • Output Node (of your choice, e.g., Http request, MQTT, etc.) - to send commands to your actual device.
  2. Connect these nodes together. For instance, you might connect the Inject Node to the Function Node, which then connects to the Output Node.

  3. Configure the Function Node to control your specific device. For example, if you’re working with a light bulb, you might use the following code snippet:

    msg.payload = { "state": "on" }

  4. Deploy your flow.

Step 4: Set Up Alexa Integration

Once you have your flow set up, it’s time to connect to Alexa!

  1. Open the Alexa app on your smartphone.
  2. Enable the skill you installed.
  3. Follow the prompts to link it to your Node-RED instance. This typically involves logging into your Node-RED dashboard and allowing Alexa access.
  4. Test out your commands! You should be able to say, “Alexa, turn on the lamp,” and see your old lamp light up.

Step 5: Create Additional Automations

Now that you have your basic setup working, consider creating additional automations like scheduling, enabling routines, or integrating with other sensors. Use Node-RED flow examples to get inspiration and see what others have built.

Helpful Tip Block

  • Use a Smart Plug: If coding seems daunting, consider using smart plugs that are compatible with Node-RED. You simply plug your old devices into these smart plugs for instant automation.
  • Voice Activation: You can add voice activation by linking your newly configured devices to Alexa routines, allowing for hands-free control.
  • Backup Your Flows: Regularly export your Node-RED flows to keep them safe. You can do this by clicking on the menu and selecting Export.

Common Issues & Troubleshooting

  1. Device Not Responding: If your old device isn’t reacting to commands, check your flow configurations. Double-check that your nodes are correctly connected and that you’re using the right payload formats.

  2. Alexa Doesn’t Recognize the Device: Ensure that the Alexa skill is enabled and properly set up in the Alexa app. Give it a moment to sync changes with Node-RED.

  3. Connection Issues: If you have trouble connecting to the Node-RED server, ensure that your device is on the same local network as your server running Node-RED.

Final Thoughts

Transforming your old devices into smart gadgets with Node-RED may seem like a challenge, but it can be an incredibly rewarding experience! With a bit of creativity and troubleshooting, you’ll have a living space filled with modern conveniences powered by nostalgia. Embrace the challenge and remember, even the most complex systems started with one simple flow.

So go ahead—dig out those old devices and give them a new life in your smart home. With the help of Node-RED, who knows what amazing projects you’ll create next! Happy automating!