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:
houseis the consumption EXCLUDING the heat pump wheneverheatPumpis 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,houseis null. solar.powerW,house.powerW,heatPump.powerWare magnitudes (≥ 0);grid.powerWis + importing, − exporting;storage.powerWis + 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
| Capability | energy-system |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | energy-system |
| Source | packages/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.
| Field | Type | Required | Description |
|---|---|---|---|
solar | { powerW: number | null; energyKwh: number | null; todayKwh: number | null } | null | yes | |
grid | { powerW: number | null; importKwh: number | null; exportKwh: number | null; importTodayKwh: number | null; exportTodayKwh: number | null } | null | yes | |
house | { powerW: number | null; energyKwh: number | null; todayKwh: number | null } | null | yes | |
heatPump | { powerW: number | null; energyKwh: number | null; todayKwh: number | null } | null | yes | |
storage | { stateOfChargePct: number | null; storedKwh: number | null; capacityKwh: number | null; powerW: number | null; chargedKwh: number | null; dischargedKwh: number | null; chargedTodayKwh: number | null; dischargedTodayKwh:… | yes | |
lastFetchedAt | number | yes | Ms epoch when the slice was last read from the system. |