Utility meter from sensor group completely wrong

When combining energy sensors with the new group option and using those with a utility meter the value is completely wrong.

I have no idea how or what i did wrong.

Group:


platform: group

name: "Household Electric Consumption (kWh)"
unique_id: "group_household_electric_consumption_kwh"
type: sum
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
ignore_non_numeric: true
entities:
  - sensor.smart_plug_vaatwasser_electric_consumption_kwh
  - sensor.smart_plug_wasmachine_electric_consumption_kwh
  - sensor.smart_plug_wasdroger_electric_consumption_kwh

Utility meter:


household_yearly_energy_kwh:
  name: "Household - Yearly Energy (kWh)"
  unique_id: "sensor_household_yearly_energy_kwh"
  source: sensor.household_electric_consumption_kwh
  cycle: yearly
  always_available: true

The results,

the group value is correct:
correct

Utility meter value is wrong:

Are group sensors with sum not usable with utility meter?

All my utility meters from group sensors are wrong.

Edit: if i calculate the devices together the group value is also wrong.

I even removed the database to delete al sensor values, but it comes back with a value of 83… from start. Even with a template sensor. Bizar

I dont think a group is the right way. Just to understand what you want to achieve. You want a dedicated sensor for yearly consumption besides the energy dashboard?

Correct, seems not possible with groups.

Then you need a template sensor to sum them and then an utility meter with a yearly reset cycle.

1 Like