keepcalculator

06 Numbers and Powers

Home Assistant Heating Automations to Cut Energy Use

Card No. 06·18635 · Updated · Standard formula, shown below

This guide shows you how to set up Home Assistant automations that reduce heating energy use by adjusting temperatures based on presence, time of day, and outdoor conditions. You’ll create schedules, presence-based setbacks, and smart thermostat integrations that work automatically. No advanced coding is needed—just the Home Assistant UI and a compatible thermostat or smart valve.

What You’ll Need

  • A Home Assistant installation (on a Raspberry Pi, NUC, or similar) with internet access.
  • A compatible thermostat or heating system controller (e.g., Zigbee, Z-Wave, or cloud-based like Nest, Ecobee, or Tado).
  • Optional: presence sensors (motion sensors, phone GPS via the Home Assistant app) for presence-based control.
  • Optional: an outdoor temperature sensor or weather integration (like OpenWeatherMap) for weather compensation.

Step-by-Step

  1. Install and integrate your thermostat. Go to Settings → Devices & Services → Add Integration and search for your thermostat brand. Follow the setup flow, which usually involves linking your account or putting the device in pairing mode. Verify the entity appears (e.g., climate.living_room).
  2. Set up presence detection. If using the mobile app, install it on your phone and enable location tracking in the companion app settings. For motion sensors, add them via their integration (e.g., Zigbee2MQTT or ZHA). Test that the person entity updates correctly.
  3. Create a base schedule automation. Go to Settings → Automations → Create Automation. Use the UI to set a time-based trigger. For example, at 06:00 on weekdays, set the thermostat to 21°C; at 22:00, set it to 16°C. Use the Call Service action with climate.set_temperature.
  4. Add presence-based setbacks. Create an automation triggered when person.family changes to away. Action: set all thermostats to an eco temperature (e.g., 14°C). Create another when the person returns, restoring the schedule.
  5. Use weather compensation (optional). Add a numeric sensor for outdoor temperature (e.g., from a weather integration). Create an automation that triggers when that sensor changes by 1°C. Use a blueprint or a template to adjust the target temperature: warmer when it’s cold outside, cooler when mild. For example, target = 21 – (outdoor_temp – 10) * 0.2, clamped between 16 and 22.
  6. Add a smart valve or zone control (if applicable). If you have radiator valves, integrate them and create automations to close valves in rooms that are unoccupied or when windows are open (via window sensors).
  7. Test and tune. After setting up, monitor the History tab for your climate entities. Adjust temperatures and times based on comfort and energy bills. Use the Developer Tools → States to check current values.

Common Mistakes

  • Setting too aggressive setbacks. Dropping temperature too low can cause long recovery times and may not save energy if the heating has to work hard to warm up. Use 4–6°C difference from comfort.
  • Ignoring thermostat hysteresis. Most thermostats have a 0.5°C deadband. Setting a target of 21.0 might cause the system to run until 21.5 then stop. Account for this in your schedule.
  • Forgetting to update presence when you leave for a short time. If you’re only out for an hour, a setback might not save energy because the recovery uses more. Consider a minimum away duration before triggering the setback.
  • Using the same schedule for weekends and weekdays. People have different routines; create separate automations or use the time condition with day of week.
  • Not disabling automations when testing. Conflicting automations can fight each other. Use the Automation Editor to toggle them off while troubleshooting.

Tips

  • Use blueprints. The Home Assistant community has pre-made blueprints for heating schedules and presence control. They save time and are well-tested.
  • Leverage the climate entity’s preset modes. Many thermostats support presets like Eco, Comfort, or Sleep. Use those instead of raw temperatures for easier management.
  • Add a input_number helper for the target temperature. This lets you adjust from the dashboard without editing automations.
  • Consider a smart schedule that learns. Some integrations offer adaptive schedules based on your habits, but you can also build a simple version with presence and time.
  • Monitor energy usage. If you have energy monitoring, create a dashboard card to track heating kWh per day. This helps verify savings.

Troubleshooting

  • Automation doesn’t trigger. Check the trigger conditions. Use Developer Tools → Services to manually call the service and see if the climate entity responds. Verify the entity ID is correct.
  • Thermostat not responding. Check the integration’s status. For cloud-based ones, ensure internet is up. For local ones, check the bridge/radio. Restart the integration or the device.
  • Presence detection is inaccurate. If using GPS, ensure the phone’s battery optimization isn’t killing the app. For motion sensors, adjust sensitivity and placement. Test the person entity state in Developer Tools.
  • Conflicting automations. Two automations might set different temperatures. Review your automations and add conditions to avoid overlap. Use the Trace feature to see what triggered and what actions ran.
  • Temperature swings. If the room overshoots, increase the hysteresis or set a lower target. If it undershoots, check if the heating system is powerful enough and if the thermostat is correctly placed.

Frequently Asked Questions

Can I use this with any thermostat?

Most thermostats that have a Home Assistant integration will work. The steps are similar, but the exact service names might differ slightly.

How much energy can I save?

Savings vary widely. Typical estimates for programmable thermostats range from 5–15% of heating costs, but it depends on your climate, insulation, and habits.

Do I need a smart thermostat for these automations?

Yes, you need a thermostat that Home Assistant can control. If you have a simple on/off switch, you can still automate it, but with less precision.

What is the best setback temperature?

A common recommendation is 14–16°C when away or asleep, and 20–21°C when active. Avoid dropping below 12°C to prevent pipe freezing in cold climates.

Can I use weather forecast instead of outdoor sensor?

Yes, you can use a weather integration like OpenWeatherMap to get outdoor temperature. It updates every hour, which is fine for most heating adjustments.

Will these automations work with radiator valves?

Yes, if you have smart radiator valves (like Tado or Zigbee TRVs), you can apply the same logic per room. Just create automations for each valve’s climate entity.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →