8000 Long-term statistic does work with sensor entities under the file integration · Issue #129472 · home-assistant/core · GitHub < 8000 meta name="color-scheme" content="light dark" />
[go: up one dir, main page]

Skip to content
Long-term statistic does work with sensor entities under the file integration #129472
@xmcp

Description

@xmcp

The problem

  1. Create a file sensor entity
  2. Add a statistic card in lovelace to measure the mean value of the file sensor
  3. Observe that the statistic card shows empty result
  4. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0