After upgrade sensor.power_consumption_low/normal gone

Since upgrade to 0.106.0 i have lost some DSMR sensors:

sensor.power_consumption_low
sensor.power_consumption_normal

Darn!!!, sensors where changed to:

sensor.energy_consumption_tarif_1 (low)
sensor.energy_consumption_tarif_2 (high)

Solved!!!

Now my history has gone

Thanks for sorting this out :slight_smile: this helped me a lot.
But now i’ve got the sensor.energy_consumption_total as unknown , did you solve this ?

0.106.1 is out, there seems to be an error in normal/low which was inverted? Upgrading now!!

upgrade doesn’t solve this

After the latest upgrades 0.106.2 still broken

Any update on this ?
I expierence the same issue…

Did you report it on Github? https://github.com/home-assistant/core/tree/dev/homeassistant/components/dsmr

Just created:

Was just checking if maybe @TheCosmicGate knows a solution for the problem.

Nope still unsolved .

It was a dump mistake at my end.

They changed:

  • low to tarif_1
  • normal to tarif_2
  • power to energy

Once i replaced everthing at my templates and custom automations everything worked again ! :wink:

This: sensor.energy_consumption_total also works ?

no, it does not!!

I started to setup HA a few weeks ago and sensor.energy_consumption_total is still “unknown”.

As I started fairly recent there’s nothing I have to rename, no legacy.

Any ideas?

FYI - the way I have fixed it for now is using the utility-meter. Example config for the “hourly total”:

utility_meter:
  #_____ Tariff 1 and 2__________
  energy_total_hourly_t1:
    source: sensor.energy_consumption_tarif_1
    cycle: hourly
  energy_total_hourly_t2:
    source: sensor.energy_consumption_tarif_2
    cycle: hourly

This puts the hourly consumption of tarif_1 and _2 in an entity.
Next: create a new entity with the sum of these two:

  - platform: template
    sensors:
      energy_consumption_total_hourly:
        friendly_name: Energy total per hour
        unit_of_measurement: kWh
        value_template: "{{ states('sensor.energy_total_hourly_t1')|float + states('sensor.energy_total_hourly_t2')|float }}"

You can repeat this for daily/weekly/monthly data

1 Like