Energy
How much the home uses right now and how much it used over a day, week and month, by room and device, in kilowatt-hours and rubles. Homer has no database of its own: everything comes from Home Assistant's long-term statistics.
Where it is
| Where | |
|---|---|
| App | Settings → Home → Energy: “Consumption” — the consumption screen, “Tariff” — the rates. Power is also shown in the plan header, and a tap leads to the consumption screen |
| Web | Home editing → “Home: name, tariff, step, location…” — the tariff. Meters — in the device card |
The card tells you right away whether there's anything to see: “The home uses N W right now. Meters bound: M” or “No device has a meter”.
Where the numbers come from
| Source | What it gives | Where to set it |
|---|---|---|
| Device power sensor, W | What's happening right now | Device settings → “Energy metering” → “Power, W”. On the web — “Power sensor” |
| Device energy meter, kWh | How much has accumulated — more accurate than power | Same place → “Energy, kWh”. On the web — “Energy meter” |
| Rated power, W | An estimate for what nothing measures: from power and brightness | Same place → “Rated power, W”. On the web — “Power, W” |
| Main meter | The whole home | The meter field in the home config |
The power sensor binds itself when an outlet is placed on the plan — if the device has only one switch. A two-gang relay has shared power, so you bind it by hand. Sensors are picked from a list of found ones, not typed: a typo in entity_id isn't visible, the chart just stays empty.
Consumption screen
- “Now” — power and where it comes from: from the main meter, measured by devices, or an estimate from the rated power of lights.
- Day / Week / Month — bars by hour or by day and a comparison with the previous period of the same length.
- Rooms and Devices — the breakdown.
- Cost — if a tariff is set: the total by zone and a “By end of month” forecast, labelled with how many days it's based on.
The screen doesn't inflate the numbers:
- “Whole home” is shown only when there's a main meter. Without it — “measured by devices”: the stove, the kettle and everything plugged into regular sockets bypass smart outlets.
- It always says how many devices aren't measured at all.
- A device without a meter isn't shown as zero: zero means “didn't use anything”, and the truth is “we don't know”.
- The main meter and outlets aren't added up: the main meter already includes everything the outlets use.
- The light estimate isn't added to measured values and is shown separately.
Tariff
The tariff is a property of the home: you set it once and it reaches all devices.
| Zones | Hours |
|---|---|
| One | Around the clock |
| Two | Day 07–23, night 23–07 |
| Three | T1 peak 07–10 and 17–21, T2 night 23–07, T3 half-peak 10–17 and 21–23 |
Rates, ₽ per kWh, are taken from your bill. Homer doesn't fill them in: they differ for flats with gas and electric stoves and change twice a year. “Remove” deletes the tariff; without it consumption is shown only in kilowatt-hours.
If the statistics for a period came in intervals wider than an hour, part of the consumption can't be split by zone. Then the total is shown as a range “from … to …”.
The homer_energy package
For yesterday, the week and the month Home Assistant knows only what it measures itself. An outlet's instant power and the light estimate “for yesterday” can't be counted without the package. The ha/homer_energy.yaml package creates two series:
| Entity | What it is |
|---|---|
| Outlet energy | The integral of its power, kWh |
sensor.homer_light_power | Estimated light power: the sum of rated powers of lights that are on, adjusted for brightness |
sensor.homer_light_energy_estimate | The integral of estimated light power — an estimate, not a measurement |
How to install
- In
configuration.yaml, once:yamlhomeassistant: packages: !include_dir_named packages - Put the file at
config/packages/homer_energy.yaml. - In the package, list your lights and their rated powers (the
lampslist) and your outlet's power sensor (source). - In HA, Developer tools → YAML → “Check configuration”, then restart.
WARNING
An error in the package template breaks not only the package but the whole Home Assistant startup. Check the configuration before restarting.
After installing
- Bind the outlet energy to the outlet itself: device settings → “Energy metering” → “Energy”. HA builds the
entity_idby transliterating the name — check it in HA under Settings → Devices & services. - The light series is shared by all lights and isn't bound to a single light. Its place is the main meter (
meter), and only if there's no real meter and won't be. - Also set the rated power of each light in the app itself — “uses N W right now” is calculated from it, and that works without the package.
TIP
For the first minutes the integrals are “unknown” — they start counting from the source's second value. Statistics accumulate from the moment of installation, not retroactively: the first bars on the chart appear after an hour.