jdeath / rd200v2

RadonEye RD200 Version 2 Integration for Home Assistant
MIT License
73 stars 17 forks source link

The state class '' of this entity is not supported #18

Closed spikeygg closed 1 year ago

spikeygg commented 1 year ago

I've been using this integration for a while now and it seems that I get this message in the Developer Tools-->Statistics results after a while:

"The state class '' of this entity is not supported"

image

It happens on both my units and clicking the "FIX ISSUE" button displays this: image

jdeath commented 1 year ago

I have not seen that issue, but I do not use long term statistics. The state class should be measurement. Are you running the latest release?

spikeygg commented 1 year ago

Yes, at least I think I am. Mine says version 2.9 is installed. That's the latest I see in the HACS box: image

When I look at the entities in the developer tools things it doesn't show any state_class detail: image

jdeath commented 1 year ago

Try version 3.0. Should be fixed now. A fix for the uptime string wiped out all the state_class settings. Never used long-term statistics, so did not notice. Your troubleshooting made it easy to figure out the issue

spikeygg commented 1 year ago

That's great news! However, I just upgraded and restarted HA and it says this in the logs now:

Logger: homeassistant.setup Source: setup.py:379 First occurred: 8:17:39 AM (2 occurrences) Last logged: 8:17:56 AM

Unable to prepare setup for platform rd200_ble.sensor: Platform not found (cannot import name 'BATTERY_ENERGY_DISCHARGED_SENSOR' from 'custom_components.rd200_ble.const' (/config/custom_components/rd200_ble/const.py)).

jdeath commented 1 year ago

Opps. I uploaded a sensor.py from another integration! Try version 3.1

spikeygg commented 1 year ago

Awesome! Thanks jdeath, that was the trick! I think I'm in business.