Create an 'Away Mode' to Shut Down Energy Hogs

Learn how to create an 'Away Mode' with Node-RED and Alexa to save energy and money while on vacation.

Posted by Jared Stone on April 26, 2025 · 5 mins read

Create an “Away Mode” to Shut Down Energy Hogs

Introduction

Picture this: you’re finally ready to head out for a weekend getaway, but what about your smart home? All those energy-hungry devices nestled within your walls are still plugged in, guzzling power while you’re enjoying a relaxing break. Not the eco-friendly scenario we’re aiming for, is it?

In today’s blog post, we’re going to show you how to easily create an “Away Mode” using Node-RED and Amazon Alexa. This smart setup will help you shut down those energy hogs and save some cash on your bill while you’re away. Whether you’re a seasoned DIY enthusiast or just starting out with home automation, you’ll find this guide beginner-friendly and fun!

Step-by-Step Setup Guide

Step 1: Setting Up Node-RED

First things first, if you haven’t already installed Node-RED, head over to Node-RED and follow their straightforward installation instructions. For most users, installing it on a Raspberry Pi or a dedicated server is the way to go.

Step 2: Add Alexa Integration

To use Alexa with Node-RED, you’ll need to install the node-red-contrib-alexa-home-skill. This allows your devices to communicate with Alexa effectively. You can install it via the Node-RED palette manager or using the command line with the following command:

npm install node-red-contrib-alexa-home-skill

Once installed, restart Node-RED to enable the new nodes.

Step 3: Create Your Flow for “Away Mode”

  1. Open Node-RED and navigate to your flows.
  2. Add the Input Node: Search for the Alexa Home Skill node and drag it to your flow. This will be your main trigger for setting the “Away Mode”.
  3. Configure the Node: Double-click it and set it up to listen for an intent, like “Set Away Mode”. Click “Done”.
  4. Add an Output Node: Next, drag in a call service node for your energy-consuming devices (like smart plugs or lights). These are what you’ll turn off when you’re away.
  5. Connect the Nodes: Connect the Input Node to your Output Node. This means that when Alexa triggers the flow, it will automatically communicate with the devices to turn them off.

Step 4: Deploy Your Flow

After configuring your flow, click the “Deploy” button in the top right corner. This activates your new “Away Mode” feature! Now, anytime you say “Alexa, set away mode,” your energy-hungry devices will shut off.

Step 5: Test It Out!

Make sure to test the system. If everything is set up correctly, just ask Alexa to activate your “Away Mode” and watch those switches turn off.

Helpful Tip Block

  • Create a Confirmation Announcer: To ensure your setup works smoothly, add an Alexa announcement to confirm the action. For instance, add a node to say “Away mode activated” right after the action node—this gives you peace of mind that the command was executed.

  • Utilize Node-Red Flow Examples: If you’re looking for inspiration or need to troubleshoot, check out the examples available in the Node-RED library. They can enhance your existing projects and spark new ideas!

Common Issues & Troubleshooting

  1. Alexa Doesn’t Recognize the Command: Ensure you’ve enabled the correct skill in your Alexa app. Check ties to your Node-RED instance and ensure Alexa can communicate with it.

  2. Devices Don’t Respond: Verify that the service nodes are configured correctly for your smart plugs or devices. Check for compatibility and make sure they are powered on and connected.

  3. Node-RED Won’t Deploy: Sometimes changes don’t deploy due to configuration errors. Check for any red indicators on your nodes, double-click on them to see error messages, and ensure your flow is logically sound.

Final Thoughts

Creating an “Away Mode” for your smart home is not only a great way to save energy, but it also adds a layer of convenience to your routine. With just a few simple steps, you can turn off everything that doesn’t need to be running while you’re out enjoying life.

If you’re excited about the possibilities of smart home automation, keep exploring! Dive into more projects, enhance your Node-RED flows, and make your home a place that works for you. With the integration of Alexa and Node-RED, the possibilities are nearly endless. Happy automating, and see you in the next blog post!