Utility meter does not add device_class and unit_of_measurement attributes to created sensors

I have some energy meter sensors.
I created utility meter for every sensor with two tariffs.

monthly_energy:
    source: sensor.mainpowermeter_energy
    cycle: monthly
    tariffs:
      - peak
      - offpeak
      
monthly_energy2:
    source: sensor.powermeter2_energy
    cycle: monthly
    tariffs:
      - peak
      - offpeak

monthly_energy_ev:
    source: sensor.ev_meter_kwh
    cycle: monthly
    tariffs:
      - peak
      - offpeak

But only for one of them sensor.mainpowermeter_energy the utility meter integration made right sensor with all necessary attributes.

For the other meter sensors the automatically created sensors do not have device_class and unit_of_measurement:

The original sensors have these attributes:


What is wrong in my configuration or is it a bug?

seems like you don’t have data between last_reset and now. Just wait and it will populate.

1 Like