Need help for Energy Sensor over MQTT

I tried to add the Hichi-Smartmeter IR Reader to HA but I failed. The EDL21 does not deliver any values.

Therefore I used iobroker to read the IR Reader and distribute the values over MQTT. This does work so far, with this addition to the configuration.yaml.

Unfortunately the sensors are not available in the Energy Dashboard.

#---Add Smartmeter MQTT
mqtt:
    sensor:
    - state_topic: 'iobroker/smartmeter/0/1-0:0 0 9  255/value'
      name: "Smartmeter.DeviceID"
    - state_topic: 'iobroker/smartmeter/0/1-0:1 8 0  255/value'
      name: "Smartmeter.Bezug.total"
      device_class: energy
      state_class: total_increasing
      icon: "mdi:counter"
      unit_of_measurement: 'kWh'
    - state_topic: 'iobroker/smartmeter/0/1-0:2 8 0  255/value'
      name: "Smartmeter.Abgabe.total"
      device_class: energy
      state_class: total_increasing
      icon: "mdi:counter"
      unit_of_measurement: 'kWh'

Any ideas what I did wrong

How long have you waited? It takes a while for relevant entities to show on the energy dashboard.

I would say no waiting time. But I checked again this minute and I still cannot select the entities.
But I received the current values from the energymeter with HA.

I tried the “utility-meter” integration, but this is also resulting a Warning, the entity is not provided by the integration utility-meter anymore.

I guess I got it solved.
Developer Tools → Statistics
The entities for the smartmeter had an issue. The “fix” button showed the unit was " " and was corrected to “kWh”. Afterwards both entities showed up in the energy dashboard and delivering values.