custom-components / nordpool

This component allows you to pull in the energy prices into Home-Assistant.
449 stars 108 forks source link

Home Assistant 2023.2 - state class and device class missmatch #288

Open donagrejja opened 1 year ago

donagrejja commented 1 year ago

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

dana-se commented 1 year ago

I have exactly the same issue right now

tmjo commented 1 year ago

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.

shadowano commented 1 year ago

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?

donagrejja commented 1 year ago

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

Hellowlol commented 1 year ago

Yeah, ill fix it in next release.

donagrejja commented 1 year ago

Great =) Thanks !

oywino commented 1 year ago

Yeah, ill fix it in next release.

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

Safs commented 1 year ago

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

FiTekno commented 1 year ago

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.

shadowano commented 1 year ago

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

StSaens commented 10 months ago

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