Closed spikeygg closed 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?
Yes, at least I think I am. Mine says version 2.9 is installed. That's the latest I see in the HACS box:
When I look at the entities in the developer tools things it doesn't show any state_class
detail:
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
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)).
Opps. I uploaded a sensor.py from another integration! Try version 3.1
Awesome! Thanks jdeath, that was the trick! I think I'm in business.
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"
It happens on both my units and clicking the "FIX ISSUE" button displays this:![image](https://github.com/jdeath/rd200v2/assets/1015891/d022c0ef-3a9e-4783-b29e-79905763be6a)