nordpool icon indicating copy to clipboard operation
nordpool copied to clipboard

Home Assistant 2023.2 - state class and device class missmatch

Open donagrejja opened this issue 2 years ago • 11 comments

Entity sensor.nordpool_kwh_se2_sek_total (<class 'custom_components.nordpool.sensor.NordpoolSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author. Entity sensor.nordpool_kwh_se2_sek (<class 'custom_components.nordpool.sensor.NordpoolSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Running latest version of integration and home assistant and hacs

donagrejja avatar Feb 01 '23 22:02 donagrejja

I have exactly the same issue right now

dana-se avatar Feb 03 '23 10:02 dana-se

I see the same, not sure if it happened after updating to HA 2023.2 or when I updated the NordPool integration to latest version as I did both at the same time.

tmjo avatar Feb 03 '23 13:02 tmjo

Home Assistant 2023.2.1 Nordpool 0.0.9

I don't see this problem running the above versions. Updated HA today, but saw this bug report and decided to wait with updating nordpool integration.

Is this problem causing the price info to not be received in HA?

shadowano avatar Feb 03 '23 14:02 shadowano

The price is still visible for me. It's just a state class / device class issue and triggers a warning in HA.

donagrejja avatar Feb 03 '23 14:02 donagrejja

Yeah, ill fix it in next release.

Hellowlol avatar Feb 03 '23 16:02 Hellowlol

Great =) Thanks !

donagrejja avatar Feb 04 '23 01:02 donagrejja

Yeah, ill fix it in next release.

0.0.11 and this "bug" is still here.....

oywino avatar Mar 22 '23 15:03 oywino

0.0.13 and this "bug" is still here.....

Safs avatar Mar 31 '23 06:03 Safs

Same here.

Home Assistant 2023.2.5 and latest nordpool version

Entity sensor.nordpool_kwh_fi_eur_3_10_01 (<class 'custom_components.nordpool.sensor.NordpoolSensor'>) state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report to the custom integration author.

FiTekno avatar Apr 03 '23 19:04 FiTekno

It's not included because there is a PR awaiting for the code change here https://github.com/custom-components/nordpool/pull/309

shadowano avatar Apr 19 '23 18:04 shadowano

this solution (change to state_class=total) is not the correct one. See https://github.com/custom-components/nordpool/pull/309#issuecomment-1858836897

StSaens avatar Dec 16 '23 14:12 StSaens