How to Use Presence Detection to Save Energy

Save on energy bills with presence detection in your smart home setup.

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

How to Use Presence Detection to Save Energy

In today’s world of increasing energy costs, finding smart ways to reduce your bills is a top priority for many homeowners. One innovative solution is the use of presence detection in your smart home setup. With presence detection, you can automatically adjust your energy usage based on whether you’re home or away. This not only makes your life easier but also helps you save money in the long run! In this guide, we’ll walk you through the steps to set up presence detection using Node-RED and Alexa integration.

Step-by-Step Setup Guide

Step 1: Requirements

Before getting started, make sure you have the following:

  • A smart home hub (like SmartThings or Home Assistant)
  • An Amazon Alexa device
  • A Node-RED installation (you can get started with Node-RED)
  • A presence detection method (we’ll discuss a few options below)

Step 2: Choosing Your Presence Detection Method

There are several ways to implement presence detection:

  1. Smartphone Geofencing: Use your smartphone’s GPS to trigger your home automation system. When your phone is within a certain distance from your home, Node-RED will recognize you are back home.
  2. Wi-Fi Connection: Set up detection based on the connectivity of devices to your home Wi-Fi network.
  3. Bluetooth Beacons: Use Bluetooth beacons placed around your home to detect when you’re nearby.

For beginners, the smartphone geofencing method is a great place to start as it’s easy to set up.

Step 3: Configure Node-RED for Presence Detection

  1. Install Node-RED: If you haven’t already, install Node-RED on your server or Raspberry Pi.
  2. Add Geofence Entry: Use the <code>node-red-contrib-geofence</code> module to set up a geofence. To install it, go to your Node-RED’s menu and select Manage Palettes > Install and search for <code>node-red-contrib-geofence</code>.
  3. Create a Flow:
    • Use an inject node to create virtual presence notifications.
    • Connect it to a geofence node, configuring the radius and the appropriate location.
    • Link it to a function node that sends notifications when someone enters or exits the zone.

    Here’s a simple flow example to get you started: [{"id":"geofence","type":"geofence","name":"Home","lat":40.712776,"lon":-74.005974,"radius":100,"x":250,"y":160,"wires":[["notify"]]}]

  4. Integrate Alexa with Node-RED: Use the Alexa Node-RED skill to allow your Alexa device to communicate with your Node-RED system. This will allow for voice commands and notifications when you arrive home or leave.

  5. Set Schedules: Configure your devices to adjust based on the presence detection. You might turn off lights, adjust HVAC systems, and disconnect devices automatically when no one is home.

Step 4: Test Your Setup

Once you’ve put everything in place, test the presence detection by leaving your home and re-entering the geofenced area with your smartphone. Check Node-RED to ensure it triggers the expected actions (like sending notifications or adjusting settings).

Helpful Tip Block

  • Use Node-RED Flows: Check out some useful node-red flow examples and customize them for better energy savings.
  • Set Up Notifications: Set up announcements using <code>node red alexa announcement</code> nodes to alert you about energy consumption when you return home.

Common Issues & Troubleshooting

  1. Geofence Not Triggering: Make sure location services are enabled on your smartphone, and the app running Node-RED has proper access to GPS.

  2. Wi-Fi Connection Problems: If Wi-Fi-based detection is unreliable, consider increasing the detection sensitivity or restarting your router.

  3. Alexa Not Responding: Check if the Alexa integration is properly set up in Node-RED. Ensure all nodes are connected and functioning without error.

  4. Delayed Notifications: If you notice delays in presence detection, consider adjusting the polling frequency or checking your internet connection.

Final Thoughts

Using presence detection to save energy is not only a sustainable choice but a savvy way to minimize your energy expenses. With tools like Node-RED and Amazon Alexa, automating your home based on your presence is easier than ever. By following the steps outlined above, you can create a smart home environment that works for you while being energy-efficient.

Happy automating! If you have questions or need further assistance, feel free to drop a comment below. Let’s make our homes smarter and greener together!