Skip to content

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
AppSettings → 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
WebHome 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 ​

SourceWhat it givesWhere to set it
Device power sensor, WWhat's happening right nowDevice settings → “Energy metering” → “Power, W”. On the web — “Power sensor”
Device energy meter, kWhHow much has accumulated — more accurate than powerSame place → “Energy, kWh”. On the web — “Energy meter”
Rated power, WAn estimate for what nothing measures: from power and brightnessSame place → “Rated power, W”. On the web — “Power, W”
Main meterThe whole homeThe 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.

ZonesHours
OneAround the clock
TwoDay 07–23, night 23–07
ThreeT1 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:

EntityWhat it is
Outlet energyThe integral of its power, kWh
sensor.homer_light_powerEstimated light power: the sum of rated powers of lights that are on, adjusted for brightness
sensor.homer_light_energy_estimateThe integral of estimated light power — an estimate, not a measurement

How to install ​

  1. In configuration.yaml, once:
    yaml
    homeassistant:
      packages: !include_dir_named packages
  2. Put the file at config/packages/homer_energy.yaml.
  3. In the package, list your lights and their rated powers (the lamps list) and your outlet's power sensor (source).
  4. 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_id by 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.