nordpool
nordpool copied to clipboard
Home Assistant 2023.2 - state class and device class missmatch
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
I have exactly the same issue right now
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.
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?
The price is still visible for me. It's just a state class / device class issue and triggers a warning in HA.
Yeah, ill fix it in next release.
Great =) Thanks !
Yeah, ill fix it in next release.
0.0.11 and this "bug" is still here.....
0.0.13 and this "bug" is still here.....
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.
It's not included because there is a PR awaiting for the code change here https://github.com/custom-components/nordpool/pull/309
this solution (change to state_class=total) is not the correct one. See https://github.com/custom-components/nordpool/pull/309#issuecomment-1858836897