-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Open
Labels
Description
The problem
- Create a file sensor entity
- Add a statistic card in lovelace to measure the mean value of the file sensor
- Observe that the statistic card shows empty result
- Also observe that the file sensor entity does not appear in
/developer-tools/statistics
What version of Home Assistant Core has the issue?
core-2024.10.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
File
Link to integration documentation on our website
https://www.home-assistant.io/integrations/file
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The possible reason is that Long-term Statistics requires the entity to set the state_class
and device_class
attributes, while the File integration does not set them. To solve this issue, the file integration should set these attribuets or allow the user to set them in the config flow.
While this looks like a feature request, I still posted it here because it is an interoperability issue among first-party integrations.