Create a Weekly Energy Summary with Alexa

Easily track your energy consumption with a smart home setup using Alexa and Node-RED.

Posted by Jared Stone on May 09, 2025 · 6 mins read

Create a Weekly Energy Summary with Alexa

Are you curious about your energy consumption but unsure how to easily track it? With the rise of smart home technology, monitoring your energy usage has never been simpler. In this post, we’ll walk through how to set up a weekly energy summary using Alexa and Node-RED. This setup will not only keep you informed about your energy use but also allow for more conscious decisions regarding your energy consumption.

Step-by-step Setup Guide

What You Will Need

  • Amazon Alexa Device: Any device that supports Alexa can work.
  • Node-RED Installation: Make sure you have Node-RED set up on your local network. If you need a refresher, check out Node-RED.
  • Smart Energy Monitoring Device: A device that can report your energy usage, like a smart plug or energy monitor.
  • Node-RED Alexa Integration: You’ll need the necessary flows to integrate Alexa with Node-RED.

Step 1: Set Up Your Energy Monitoring Device

Before diving into Node-RED, ensure your smart energy monitoring device is configured correctly. This device might be an energy monitor you’ve connected to your circuit panel or a smart plug with energy reporting capabilities.

  1. Follow the manufacturer’s instructions to set up your monitoring device.
  2. Make sure it’s connected to your home Wi-Fi and linked to your choice of smart home application.

Step 2: Install Node-RED and Required Nodes

Once your monitoring device is ready, you can proceed with Node-RED.

  1. Access Node-RED: Open your Node-RED editor.
  2. Install Alexa Nodes: You may want to install node-red-contrib-alexa-home-skill or other similar nodes from the Voice Nodes site. These enable seamless communication between Alexa and Node-RED.
  3. In the Node-RED editor, go to the menu and choose Manage Palette > Install. Search for the required Alexa nodes to add them to your setup.

Step 3: Create Your Flow

After installation, let’s design the flow that will summarize your weekly energy usage.

  1. Create Nodes: Use the following nodes to set up your flow:
    • Inject Node: This will initiate requests at given intervals (e.g., daily).
    • Function Node: This will handle data processing and calculation of your weekly energy consumption.
    • Debug Node: Useful for checking your data flow during setup.
    • Alexa Node: This will allow Alexa to read out your weekly summary.
  2. Configure the Function Node: This node will process the data collected from your energy monitoring device. Here’s a simple function you can input:

    msg.payload = "This week's energy consumption is " + totalEnergy + " kWh."; return msg;

    Replace totalEnergy with the variable that stores your accumulated energy consumption for the week.

  3. Link the Nodes: Connect your nodes in a logical way, ensuring that data flows from the inject node, through the function, and finally to the Alexa node.

  4. Deploy the Flow: Once your flow is arranged, hit the “Deploy” button at the top right corner of the Node-RED editor.

Step 4: Test Your Setup

  1. Invoke Alexa with a command like, “Alexa, what’s my weekly energy summary?”
  2. If everything is configured correctly, Alexa will respond with your energy summary based on the calculations you set up in Node-RED.

Helpful Tip Block

  • Use Debug Nodes: Add a debug node in your flow to monitor the output at various points. This is especially useful for diagnosing issues with your data processing.
  • Schedule Updates: You can adjust the inject node to send data weekly instead of daily if that’s more suitable for your needs.
  • Experiment: Don’t hesitate to play around with Node-RED. There are countless node-red flow examples available online that can inspire modifications to your setup.

Common Issues & Troubleshooting

Even the best setups can hit a few bumps in the road. Here are some common issues you might encounter:

  • Alexa Not Responding: Ensure that your Alexa device is connected to the same network as your Node-RED setup and that the Alexa skill is enabled.

  • Incorrect Data Reporting: Double-check your energy monitoring device. Make sure it’s accurately reporting data to Node-RED.

  • Flow Not Deploying: If your flow won’t deploy, check for errors in your configuration. Node-RED typically provides error messages in the debug pane, so keep an eye on that.

Final Thoughts

Setting up a weekly energy summary with Alexa is not only a practical way to increase your energy awareness but also empowers you to make better choices around energy consumption. With a little time and effort invested in Node-RED and some smart tech, you can personalize your home environment to suit your needs while contributing to a sustainable future.

Remember, the world of smart homes and automation is vast, and there’s always more to learn! Don’t hesitate to dive deeper into tools like Node-RED and explore other capabilities, like integrating various devices and services. Happy automating!