Espurna Power Plugs in Energy Monitor

Hello, after try % error some solutions howto get a power plug into the energy monitor i try to rather ask if someone knows this by default.

Using Espurna Firmware on some wlan powerplugs using mqtt, available entity’s are

like this these devices are not available as energy devices in the energy dashboard

now, when i add 2 lines from a working device into the energy potion from a Espurna device i can add it, but it calls some errors and will retain at 0 (waited 2 days …)

so only “mark” the device as energy device didnt actually help … i guess due a missing timestamp or something …

for any hints, thanks ahead

may another question about this.

now, when i try to use the Riemann summary therefore, fetching the current W and let it run as a sep sensor then

i add them in the sensor.yaml like this

- platform: integration
  source: sensor.espurna_sz1_power
  name: kwh.espurna_sz1_power
  unique_id: kwh.espurna_sz1_power
  unit_prefix: k
  round: 2

then i get them as sep sensors, now, when i want them to add to energy i see a error like this

now, i went to the entity’s and try adding the

device_class: energy

now, this seems to be “luck” to be persistent, as you see upper, 2 of 4 seems to work, 2 not … i add the device_class in the web ui here as i cant add it in the yaml directly (failure)

any tipps would be helpful howto get them clean added, thanks ahead

can be marked as solved, what i had todo …

manually add like described with 1 extra step

keep 2 HA web sessions open (need to be fast)
add manually the energy device class
quickly restart HA from the 2nd open window

then the device class kept saved and no more errors in the energy dashboard settings …

not nice but finally working without looking at error messages :wink: