Dominevo
ReferenceDevice capabilities

energy-system

Energy system (#513): the one READ-ONLY cap of a home energy installation — solar production, the grid connection, the house, a heat pump where the system meters one, and the storage.

Energy system (#513): the one READ-ONLY cap of a home energy installation — solar production, the grid connection, the house, a heat pump where the system meters one, and the storage. Each part is a branch of one bus.

A part the system does not have is null (the whole object); a value the system did not report is null, never 0.

Signs, all in watts:

  • The branches are DISJOINT: house is the consumption EXCLUDING the heat pump whenever heatPump is reported, so solar + grid import + storage discharge = house + heatPump + grid export + storage charge. A provider whose meter totals include the pump subtracts it; when it cannot, house is null.
  • solar.powerW, house.powerW, heatPump.powerW are magnitudes (≥ 0);
  • grid.powerW is + importing, − exporting;
  • storage.powerW is + charging, − discharging.

The storage is a FIELD of this model, never the battery cap: that cap says a device runs on a battery and feeds the low-battery alerts, and a home storage at 19 % is not a device about to go flat (#522).

Lifetime kWh are counters; a …TodayKwh is the system's own day total. The self-consumption share is not a field: it derives at read time ({

Production: the panels.

At a glance

Capabilityenergy-system
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesenergy-system
Sourcepackages/types/src/capabilities/energy-system.cap.ts

Methods

This capability declares no methods.

Runtime state

The state Dominevo keeps for each device with this capability, readable without calling the provider.

FieldTypeRequiredDescription
solar{ powerW: number | null; energyKwh: number | null; todayKwh: number | null } | nullyes
grid{ powerW: number | null; importKwh: number | null; exportKwh: number | null; importTodayKwh: number | null; exportTodayKwh: number | null } | nullyes
house{ powerW: number | null; energyKwh: number | null; todayKwh: number | null } | nullyes
heatPump{ powerW: number | null; energyKwh: number | null; todayKwh: number | null } | nullyes
storage{ stateOfChargePct: number | null; storedKwh: number | null; capacityKwh: number | null; powerW: number | null; chargedKwh: number | null; dischargedKwh: number | null; chargedTodayKwh: number | null; dischargedTodayKwh:…yes
lastFetchedAtnumberyesMs epoch when the slice was last read from the system.