question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unsupported state class (no statistics possible)

See original GitHub issue

Home Assistant Android version: 2022.8.0

Android version: Several

Phone model: Amazon Fire HD tablets

Home Assistant version: 2022.6.7

Last working Home Assistant release (if known): it never did for those affected entities

Description of problem: HA dev tools statistics tab shows issue The state class of this entity, is not supported. for several entities from different devices, e. g.

  • battery temperature
unit_of_measurement: °C
device_class: temperature
  • battery level
unit_of_measurement: %
device_class: battery
  • storage
unit_of_measurement: %
  • light sensor
unit_of_measurement: lx
device_class: illuminance

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem:

grafik

Additional information:

  • I see this for a long time (months) and finally decided to report it.
  • There was no actual change (HA update, Companion app update etc.) that triggered this issue, it existed since integrating the devices.
  • Not all entities are affected, only those of the above listed sensor types.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Nov 5, 2022

And it’s in the app, not HA Core, right?

HA core for this fix actually

0reactions
bcuttercommented, Dec 12, 2022

Oh I see, didn’t notice this one is a duplicate. Well, the other one is locked and ends with “is in 2022.9 beta”…

And the error message definitely points to the integration:

https://github.com/home-assistant/android/issues/2847#issuecomment-1345649375

Will monitor the other issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unsupported state class · Issue #40 - GitHub
Statistics can not be generated until this entity has a supported state class. I think the state_class measurement should be added.
Read more >
What qualifies a sensor to appear in "developer tools"
I have 4 sensors on the statistics tab with a complaint about “unsupported state class”. They actually do not have any state class...
Read more >
Unsupported state or unable to authenticate data error when ...
When trying to encrypt and decrypt a file through a Cipher/Decipher stream I always encounter the following error: Unsupported state or unable ...
Read more >
SQLSTATE values and common error codes - Db2 - IBM
A FETCH CURRENT CONTINUE was requested, but there is no truncated LOB or XML data to return. Table 18. Class Code 25: Invalid...
Read more >
Resolve incompatible network state errors when using ...
Short description · There are no available IP addresses in the subnet that the Amazon RDS DB instance was launched into. · The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found