Add sensor device class for apparent energy #1454
ContextHome Assistant has device classes for three of the four quantities an electricity meter reports:
Reactive energy was accepted in #724 in the architecture meeting of 2025-05-08 and merged on 2025-05-16. Apparent energy was not part of that proposal, and it is the only cell of the table still empty. @Breina noted the gap in #724 on 2026-01-01, but it was never raised on its own. AI slop hidden, expand to view## Why this mattersMillions of people are billed on it. Many Indian state utilities bill energy in kVAh rather than kWh for commercial and industrial consumers, including Delhi, Uttar Pradesh, Punjab, Haryana, Andhra Pradesh, Bihar and Himachal Pradesh. For those users the meter's kVAh register is the bill. Home Assistant can show them a kWh counter that does not match what they pay for, while the counter that does match cannot be exposed. It is the only way to see a power-factor penalty coming. Utilities compute average power factor over the billing period as kWh ÷ kVAh. The instantaneous power factor Home Assistant already shows does not answer that: a meter can read 0.98 whenever you look and still average 0.85 across the month. Two counters give the same figure the utility uses, before the penalty lands. It cannot be computed from what we have. It is not useful for capacity planning. Transformers and inverters are rated in VA, but that is a question about peak apparent power, which already has a device class. ProposalAdd
Apparent energy is not billable consumption everywhere, and the energy dashboard assumes kWh, so it stays out of the dashboard, the same as reactive energy. One open question: Matter reports apparent energy in Who needs itFive integrations in core have a source of apparent energy they cannot express: Details about integration use and the investigationEach was verified against the upstream library or protocol definition, not inferred:
What was checked and does not need itEvery integration in core setting
ConsequencesThe change is small and symmetric with one already in core, so recorder statistics, unit conversion and the frontend need nothing new. Two of the five integrations above already ship the workaround in tree: a sensor with a hand-written unit string or none at all, and no device class, neither convertible nor stateable. |
Replies: 2 comments 2 replies
|
Thanks for raising the issue! My integration also needs this: https://github.com/Breina/PowerTagGateway |
|
Approved by the core architecture meeting 2026-09-03 |
Approved by the core architecture meeting 2026-09-03