Home Assistant Power Monitoring: How to Set It Up Right

By Wattfolk Editorial Team • November 7, 2026

Home Assistant can track your whole home’s electricity, single circuits, and single appliances, all in one Energy dashboard. Most homeowners should start with a whole-home CT-clamp monitor such as the Shelly EM, then add smart plugs only where they want detail. One common catch: live power readings in watts must usually be turned into kilowatt-hours before the dashboard can use them. This guide covers which hardware to pick, how to set up each sensor so the dashboard accepts it, and which automations are worth building.

Quick answer

Use a CT-clamp monitor on your main panel for whole-home totals, smart plugs for single 120 V appliances, and your solar inverter’s integration for production. Every energy sensor needs kWh units, device_class energy, and state_class total or total_increasing.

  • Best for whole-home tracking: Shelly EM, which runs locally and pushes fast updates.
  • Best for one appliance: Zigbee, Z-Wave, or Wi-Fi smart plug.
  • Best for solar: your inverter’s own integration.
Key Takeaways
  • Power (W) is a live rate. Energy (kWh) is the running total. The Energy dashboard needs energy.
  • Turn a watts-only sensor into kWh with Home Assistant’s Integral (Riemann sum) helper. Do not multiply it by hand.
  • Whole-home CT clamps show total use. Smart plugs show which device is using it. Most homes need both.
  • Grid import, export, solar, battery, and tariffs can all be tracked as separate sensors.
  • The main panel’s service wires stay live even with the main breaker off. Hire a licensed electrician if you are not qualified.
Note on Scope: This guide covers electricity monitoring in Home Assistant for US homes, from hardware choice to sensor setup and automations. It does not cover gas or water monitoring in depth, and it does not give step-by-step panel wiring instructions. That work belongs to a licensed electrician.

What is the difference between power in watts and energy in kilowatt-hours?

Power is how fast electricity is being used right now. Energy is how much has been used over time. Power is measured in watts (W) or kilowatts (kW; 1 kW = 1,000 W). Energy is measured in watt-hours (Wh) or kilowatt-hours (kWh). Your utility bills you for kWh.

Think of a car. Power is the speedometer. Energy is the odometer. A space heater might draw 1,500 W the moment it turns on. Run it for two hours and it has used 3 kWh.

This matters because the Home Assistant Energy dashboard reads odometer-style numbers. It wants a total that keeps climbing. Many smart plugs and DIY sensors only report the speedometer, the live watts. Those sensors will not appear in the dashboard’s energy pickers until you convert them. Many guides skip this point, and it explains most “my sensor won’t show up” problems.

Should I use a smart plug, a Shelly EM, a utility-meter connection, or a solar-inverter integration?

Most people should use a CT-clamp monitor for the whole home and add smart plugs for a few appliances they care about. Each option sees a different slice of your home. The table below compares them on coverage, install work, and whether they keep working without the internet.

OptionCoverageInstallationLive power (W)?Local operationBest use
Utility-meter integrationWhole home, billing-gradeNone or a small bridge, if your utility allows itOften no. Many are delayed by hours or a dayUsually cloud-basedChecking your bill and long-term trends
CT-clamp monitor (e.g. Shelly EM)Whole home (main feeds)Inside the main panel. Electrician advisedYes, updates every few secondsYes, with Shelly’s local APITotal demand, grid import and export
Multi-channel circuit monitorMany single circuitsInside the panel, one clamp per circuitYesDepends on the brandFinding which circuit uses the most
Smart plug (Zigbee, Z-Wave, Wi-Fi)One 120 V plug-in devicePlug it in and pair itYes, on most modelsZigbee and Z-Wave: yes. Wi-Fi: variesFridge, freezer, washer, desk setup
Native appliance or inverter integrationThe device itself (solar inverter, battery, EV charger)Software onlyUsuallyVaries by brandSolar production, battery charge and discharge

Here is how to match each goal to the hardware that does the job:

  • If you want to track your whole-house bill: start with a CT-clamp monitor on the main feeds. Add your utility’s integration as a cross-check if one exists.
  • If one circuit seems to run high (say, the basement): put a CT clamp on that circuit’s breaker wire, or use a multi-channel monitor if you suspect several.
  • If you want to measure a refrigerator: use a smart plug rated for the fridge’s load. It is cheap, has no wiring, and gives exact numbers.
  • If you want to send solar surplus to a water heater or EV charger: you need live grid export data (CT clamps or your inverter’s integration) plus a controllable charger or a relay installed by an electrician.

What hardware is best for whole-house power monitoring with Home Assistant?

A CT-clamp monitor with a local API is the best choice for most homes. Home Assistant’s own documentation names the Shelly EM as an advised off-the-shelf option, because it has a local API, pushes updates instead of waiting to be asked, and has a high-quality integration. See Home Assistant’s page on using a CT clamp sensor.

“Local API” means Home Assistant talks to the device over your home network, with no company server in between. If the maker’s cloud goes down, your data keeps flowing. “Pushed updates” means the device sends new readings the moment they change, so automations react in seconds.

When you compare whole-home monitors, check four things:

  • Channel count: most US homes have split-phase service with two hot legs, so you need at least two clamps for the main feeds. More channels let you add solar or big circuits later.
  • Clamp size: the clamp’s amp rating and jaw opening must fit your service wires. A 200 A service needs clamps rated for it.
  • Connection: Wi-Fi is common. Some models also offer Ethernet, which copes better with a metal panel that blocks the signal.
  • Integration quality: look for an official Home Assistant integration that offers kWh sensors with the correct attributes already set.

How do CT clamps measure electricity, and where are they installed?

A CT clamp (current transformer) is a ring that snaps around a wire. It never touches the bare metal. Current flowing through the wire creates a magnetic field, and the clamp turns that field into a small signal the monitor can read. The monitor combines that current with a voltage reading to work out watts.

For whole-home readings, the clamps go around the two main service conductors. These are the thick wires that enter your panel from the meter. For a single circuit, the clamp goes around that breaker’s hot wire. Each clamp must face the right way. A clamp put on backward reports negative power, which looks like export.

electrician fitting small clamp sensors around wires inside an open home breaker panel

Can Home Assistant monitor individual appliances as well as total household consumption?

Yes, and the two work best together. The Energy dashboard has a section for individual devices, and Home Assistant supports smart plugs that use Zigbee, Z-Wave, or Wi-Fi. See Home Assistant’s home consumption docs for how it combines these. Once you set a whole-home meter, any use not assigned to a device shows up as untracked. That gap tells you how much of your bill you still can’t explain.

Circuit-level monitoring

Circuit monitors sit between whole-home and plug-level. They are the only practical way to measure hardwired or 240 V loads such as a dryer, oven, well pump, or central AC, which no ordinary smart plug can handle. The trade-off is more panel work and a cost that grows with every channel.

Smart plugs: Zigbee, Z-Wave, or Wi-Fi?

  • Zigbee: runs locally through a Zigbee coordinator. Plugs also act as signal repeaters, which strengthens your network.
  • Z-Wave: also local, on a separate radio band that avoids Wi-Fi crowding. Plugs usually cost a little more.
  • Wi-Fi: no hub needed, but some models depend on a cloud service. Pick ones with a local integration, and expect dozens of them to crowd your router.

Check the plug’s amp rating against the appliance before you buy. Plug the appliance straight into the smart plug, and plug the smart plug straight into the wall. Never put an extension cord or power strip in the chain for a high-draw device.

What sensors and attributes does the Home Assistant Energy dashboard require?

An energy sensor must report in Wh or kWh, use device_class energy, and use state_class total or total_increasing. A live power sensor is optional and uses device_class power with state_class measurement. These rules come from Home Assistant’s home consumption documentation. Wrong attributes are the most common reason a sensor is missing from the dashboard’s dropdowns.

Quick definitions: device_class tells Home Assistant what kind of quantity the sensor holds. state_class tells it how to store the history. Is it a running total, or a snapshot that goes up and down?

Sensor-readiness checklistEnergy sensor (required)Power sensor (optional)
UnitkWh (or Wh)W or kW
device_classenergypower
state_classtotal or total_increasingmeasurement
BehaviorClimbs over time. total_increasing allows resets to zeroRises and falls with live load
Where it appearsEnergy dashboard pickers and long-term statisticsGraphs and automation triggers

Worth knowing: You can check a sensor’s attributes under Developer Tools > States. Search for the entity and read its attribute list. If state_class is missing, the dashboard will ignore the sensor even when the unit is kWh.

How do I convert a live power sensor in watts into an energy sensor in kilowatt-hours?

Use Home Assistant’s Integral helper, which runs a Riemann-sum calculation. It adds up power over time, slice by slice, to build a kWh total. Go to Settings > Devices & services > Helpers > Create helper > Integral sensor. Pick your watts sensor as the input, set the metric prefix to k (kilo) and the time unit to hours. The result is a kWh sensor with the right attributes, ready for the dashboard.

A five-step guide showing how to convert a live watts sensor into a kWh energy sensor using the Home Assistant Integral helper so it appears in the Energy dashboard.

For the method, choose left for loads that jump between on and off, such as a heater or a compressor. Trapezoidal can overestimate those jumps. If you prefer YAML, the same helper looks like this:

sensor:
  - platform: integration
    source: sensor.dryer_power
    name: Dryer energy
    unit_prefix: k
    unit_time: h
    method: left
    round: 2

Worked example

A smart plug reports a steady 1,200 W for 30 minutes.

Energy = power × time = 1.2 kW × 0.5 h = 0.6 kWh.

At the US national average of about 17 cents per kWh, that is 0.6 × $0.17 = about $0.10. In a state paying 40 cents per kWh, it is 0.6 × $0.40 = $0.24.

Real loads are rarely steady. Suppose the same appliance runs at 1,200 W for 10 minutes and then idles at 300 W for 20 minutes. The real total is (1.2 × 0.167) + (0.3 × 0.333) ≈ 0.30 kWh, half the single-multiplication guess. The Integral helper does this slice-by-slice maths for you, every time the reading changes. That is why you should use it instead of a template that multiplies once.

Can Home Assistant track grid usage, solar production, batteries, tariffs, and export separately?

Yes. The Energy dashboard combines grid, solar, battery, home consumption, and individual devices, and it also handles gas and water. It is described in Home Assistant’s energy management docs. Each flow needs its own kWh sensor:

  • Grid consumption: energy bought from the utility.
  • Return to grid: energy exported. A CT monitor or inverter usually provides this as a separate sensor.
  • Solar production: best taken from your inverter’s integration, which measures the panels directly.
  • Battery: two sensors, energy going in and energy coming out.

Tariffs: for a fixed rate, type your price per kWh into the dashboard. For time-of-use plans, where your utility charges more at peak hours, create a Utility Meter helper with tariffs such as “peak” and “offpeak”. Then switch between them with an automation that follows your utility’s schedule. Each tariff gets its own kWh total, so you can see exactly how much you used at the expensive rate.

If you have plug-in solar, use its integration or a smart plug to log output. Keep the microinverter’s built-in grid shut-off untouched, and never connect panels through an extension cord. Rules for plug-in systems vary by state and change often, so confirm with your utility before you install.

Pro-Tip: If you are also building a plug-in solar setup, see our related guide on balcony and plug-in solar basics

What automations can be built from power thresholds or changes?

Power readings make great triggers, because they show what a device is doing right now. Home Assistant’s Power integration supports triggers for a value changing and for a value crossing a threshold. See the Power integration page. Four automations earn their keep:

  1. Appliance finished: when the washer’s plug drops below about 5 W and stays there for 3 to 5 minutes, send a phone alert. The “stays there” part matters, because washers pause mid-cycle. Watch your own machine’s graph to pick the right number.
  2. Fault alert: if a freezer plug reads 0 W for 30 minutes, it has lost power or tripped. If the compressor runs non-stop for hours, the door may be open or the seals may be worn.
  3. Load shedding: when whole-home power crosses a limit you set, pause the EV charger or delay a water heater. This helps on time-of-use plans and on smaller services.
  4. Solar surplus: when export stays above a set level for 10 minutes, start EV charging or switch a water heater on through a properly rated relay.

Worked example

How much surplus might small solar produce? Assume 800 W of panels, 5 peak sun hours a day, and 20% system losses.

800 W × 5 h × 0.80 = 3,200 Wh = 3.2 kWh per day.

At 17 cents per kWh, using that energy at home instead of buying it is worth 3.2 × $0.17 ≈ $0.54 a day. Swap in your own panel watts, local peak sun hours, and utility rate to redo it.

person checking a home energy graph on a tablet in a kitchen

What electrical-safety issues should be considered when installing a panel-mounted monitor?

The biggest risk is the main service wires. They stay live even when you switch off the main breaker, because they connect straight to the utility meter. Removing the panel cover exposes them. If you are not trained for live-panel work, hire a licensed electrician. It is a short job for them, and some areas require a permit for any work inside the panel.

  • The monitor needs its own power feed, usually from a dedicated breaker. That is a wiring job, not just clipping on clamps.
  • Use only clamps and devices listed for the voltage and current involved, and keep the monitor inside a proper enclosure.
  • Do not force clamps around wires that do not fit, and do not strip insulation.
  • 240 V loads such as water heaters need relays rated for that load and installed by an electrician. Never use a plug-in smart plug for them.

Calibration: once a month, compare your monitor’s kWh total with your utility bill. Small gaps are normal. A large gap usually means a reversed clamp, a missing leg, or the wrong voltage setting.

Network reliability: metal panels weaken Wi-Fi. Check signal strength in the integration, or choose Ethernet or a nearby access point.

Privacy: live power data shows when you are home, asleep, or away. Local integrations keep that data inside your house.

What do owners say?

Owners like

  • Local APIs keep monitoring running even when a maker’s cloud service is down.
  • Home Assistant puts many brands and device types into one Energy dashboard.
  • Whole-home CT monitoring shows total demand without a smart plug on every appliance.
  • Threshold automations and history graphs help spot wasteful devices and unusual spikes.

Common complaints

  • Sensor setup gets confusing when units, device classes, or state classes are wrong.
  • CT-clamp installation and panel access worry people who are uneasy near mains wiring.
  • Plug-level monitoring becomes costly and fiddly when many plugs are needed.
  • Whole-home monitoring alone cannot say which appliance caused a load without circuit or plug sensors.

Summarised from owner reviews and long-term user reports; individual experiences vary.

Frequently Asked Questions

What is a home power monitoring system?

It is a set of sensors that measure your electricity use and send the data to software such as Home Assistant. A typical setup has a CT-clamp monitor on the main panel for whole-home totals, plus smart plugs or circuit clamps for detail. Home Assistant turns those readings into graphs, cost estimates, and automations.

What power monitoring devices work with Home Assistant?

Popular choices include CT-clamp monitors such as the Shelly EM, multi-channel circuit monitors, Zigbee, Z-Wave, and Wi-Fi smart plugs, solar inverter and battery integrations, and some utility-meter integrations. Choose devices with an official integration and local control, so you are not relying on a cloud service.

Is smart home power monitoring worth it?

For most homeowners it is, if you act on the data. A whole-home monitor shows your baseline use, and plug-level sensors find the devices behind it. Power alerts can also catch a failing freezer or a forgotten heater before it costs you. Renters who cannot open the panel can still get value from smart plugs alone.

Can a house power monitoring system run without the internet?

Yes, if you pick local devices. Home Assistant runs on your own hardware, and devices with local APIs, such as the Shelly EM, or Zigbee and Z-Wave plugs keep reporting during an internet outage. Cloud-only Wi-Fi plugs and most utility integrations will stop updating until the connection returns.

What is the difference between an electrical power monitoring system and my utility’s smart meter?

Your smart meter records billing totals for the utility and often shares them with you only after a delay. Your own monitoring system reports live watts every few seconds and can break use down by circuit or device. Use the utility’s numbers to check your monitor’s accuracy, and use your monitor for daily decisions and automations.

Wattfolk Editorial Team

Wattfolk Editorial Team

The Wattfolk Editorial Team researches plug-in solar, home batteries and ways to cut electricity costs. Every guide is built from manufacturer datasheets, certification listings, government energy data, state laws and verified owner feedback, with the assumptions behind every savings estimate shown so readers can check the numbers for their own home.