Skip to content

feat: add weekly per-compressor power consumption getters#790

Open
lackas wants to merge 1 commit into
openviess:masterfrom
lackas:feat/compressor-week-consumption
Open

feat: add weekly per-compressor power consumption getters#790
lackas wants to merge 1 commit into
openviess:masterfrom
lackas:feat/compressor-week-consumption

Conversation

@lackas

@lackas lackas commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Newer Viessmann heat pumps expose per-category energy consumption only as scalar heating.compressors.{N}.power.consumption.{heating,dhw,cooling}.week features. The existing device-level heating.power.consumption.* getters (day/month/year) return nothing on these devices, so HA has no cooling/heating energy data for them.

Adds getPowerConsumption{Heating,DHW,Cooling}ThisWeek + unit getters on the Compressor class. Tests cover heating/dhw (real values from the existing Vitocal333G fixture) and cooling raising NotSupported when disabled.

Enables a follow-up Home Assistant sensor (state_class total_increasing, which handles the weekly reset into a cumulative counter).

Newer heat pumps (e.g. Vitocal 300-G / CU401B) expose consumption only as
scalar heating.compressors.N.power.consumption.<cat>.week features, not via
the device-level heating.power.consumption.<cat> day/month/year buckets the
existing getters read. Adds getPowerConsumption{Heating,DHW,Cooling}ThisWeek
plus unit getters on the Compressor class, with tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant