Skip to content

Conversation

@nrbrt
Copy link

@nrbrt nrbrt commented Jan 25, 2026

Summary

Add state_class=SensorStateClass.MEASUREMENT to environment sensors that were missing it:

  • ikea_vindstyrka_humidity
  • ikea_vindstyrka_pm25
  • ikea_vindstyrka_voc_index

Without state_class, Home Assistant cannot include these sensors in Long Term Statistics. The temperature sensor already had state_class="measurement", but these three were missing it.

Test plan

  • Verify humidity, PM2.5, and VOC sensors appear in Developer Tools → Statistics
  • Verify Long Term Statistics graphs work for these sensors after collecting some data

Fixes #154

Add state_class=SensorStateClass.MEASUREMENT to:
- ikea_vindstyrka_humidity
- ikea_vindstyrka_pm25
- ikea_vindstyrka_voc_index

Without state_class, Home Assistant cannot include these sensors in
Long Term Statistics. The temperature sensor already had state_class,
but these three were missing it.

Fixes sanjoyg#154

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nrbrt
Copy link
Author

nrbrt commented Jan 26, 2026

Closing in favor of PR #186 which combines all fixes

@nrbrt nrbrt closed this Jan 26, 2026
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.

VINDYKSTRA air quality sensor only logs humidity for one month

1 participant