Skip to content

"Count" entities missing state_class in homeassistant extension#30978

Merged
Koenkk merged 1 commit intoKoenkk:devfrom
DataGhost:numeric_measurement
Feb 6, 2026
Merged

"Count" entities missing state_class in homeassistant extension#30978
Koenkk merged 1 commit intoKoenkk:devfrom
DataGhost:numeric_measurement

Conversation

@DataGhost
Copy link
Copy Markdown
Contributor

In the Home Assistant history view, I noticed that the power_outage_count values for my Aqara door and window sensors (MCCGQ11LM) were not displayed in a graph but as coloured bars instead, even though that value is numeric, an informative counter and not user-settable. This is because the state_class is seemingly missing from it. I don't really see any reason why it shouldn't be specified so I assume this was an oversight.

This PR adds the proper state class to it and to another similar property, trigger_count.

@Koenkk Koenkk merged commit d475aa5 into Koenkk:dev Feb 6, 2026
11 checks passed
@Koenkk
Copy link
Copy Markdown
Owner

Koenkk commented Feb 6, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants