Releases: danieldotnl/ha-measureit
v0.8.6 - HA 2026.5.0 compatibility
👋 A quick note
I run The Smart Home Newsletter — a weekly curated digest for smart home enthusiasts.
Each issue highlights the most relevant and interesting smart home articles, news, and projects from the past week.
Since you're here, you're clearly into home automation — so you might genuinely enjoy the newsletter.
👉 Subscribe at smarthomenewsletter.com
What's Changed
🐛 Bug Fixes
- Fixed
is_numberimport for Home Assistant 2026.5.0+ —is_numberwas moved toTypeCastExtension; falls back to the old import path for older HA versions.
🧰 Maintenance
📦 Dependencies
- Updated ruff to v0.15.12 (#256)
- Updated pytest-homeassistant-custom-component to v0.13.326 (#260)
- Updated pytest-homeassistant-custom-component to v0.13.315 (#259)
- Updated pytest-homeassistant-custom-component to v0.13.314 (#255)
- Updated softprops/action-gh-release to v3 (#265)
- Updated softprops/action-gh-release to v2.6.1 (#263)
- Updated release-drafter/release-drafter to v7 (#262)
Full Changelog: v0.8.5...v0.8.6
v0.8.5 - Fix source-based measurement creation
👋 A quick note
I run The Smart Home Newsletter — a weekly curated digest for smart home enthusiasts.
Each issue highlights the most relevant and interesting smart home articles, news, and projects from the past week.
Since you're here, you're clearly into home automation — so you might genuinely enjoy the newsletter.
👉 Subscribe at smarthomenewsletter.com
What's Changed
🐛 Bug Fixes
- Fixed source-based measurement creation failing in config flow (#258) - Fixes #257
- Fixed
get_add_sensor_suggested_valuesalways raisingValueErrorfor SOURCE meter types due to missingelseclause - Fixed
Templateinstantiation to passhassin constructor (required since HA 2025.10)
- Fixed
📦 Dependencies
- Updated ruff to v0.14.14
- Updated pre-commit to v4.5.1
- Updated pip to v26
- Updated actions/checkout to v6
- Updated softprops/action-gh-release to v2.5.0
- Updated Python to 3.14 in devcontainer
- Updated GitHub CLI feature to v1.1.0
Full Changelog: v0.8.4...v0.8.5
v0.8.4 🚀 Modernization & reliability improvements
👋 A quick note
I run The Smart Home Newsletter — a weekly curated digest for smart home enthusiasts.
Each issue highlights the most relevant and interesting smart home articles, news, and projects from the past week.
Since you're here, you're clearly into home automation — so you might genuinely enjoy the newsletter.
👉 Subscribe at smarthomenewsletter.com
What's Changed
⚡ Breaking Changes
- Replaced croniter with cronsim (#205) - More reliable cron expression handling
- Removed external croniter dependency (now uses Home Assistant's built-in cronsim)
- If you use custom cron expressions, please verify they still work correctly
- Better error handling and validation for cron expressions
🐛 Bug Fixes
- Fixed sensor data restoration failures - Sensors were failing to restore data after upgrading from v0.8.2
- Added migration support for
condition_active→activefield rename - Improved error handling and logging for data restoration
- Added diagnostic logging to help troubleshoot restoration issues
- Added migration support for
- Fixed hassfest validation failures (#249) - Adapted to Home Assistant's new URL validation rules (HA core PR #154224, merged Jan 27, 2026)
- URLs moved from translation strings to description placeholders
- Buy Me a Coffee link, device class docs, and state class docs now injected at runtime
- All user-facing URLs still visible and functional
- Fixed Template hass parameter - Templates now properly initialized with hass instance (fixes compatibility with newer HA versions)
- Fixed float to decimal conversion (#214) - Resolved ruff linting issue in tests
- Fixed deprecated result_type constants - Updated to use current Home Assistant API
🔧 Improvements
- Added safeguard against infinite loop in
schedule_next_reset()- Prevents Home Assistant from freezing if cron scheduling encounters an edge case - Development environment modernization
- Switched to Ruff for code formatting and linting (replacing Black)
- Updated to Python 3.13
- Improved code quality across the entire codebase
- Split large functions for better maintainability
- Removed unused reset code
- Added constants for magic numbers (e.g., number of weekdays)
- Workflow improvements
- Updated GitHub Actions workflows to use Python 3.13
- Improved pre-commit hooks configuration
📦 Dependencies
- Updated pytest-homeassistant-custom-component to v0.13.310
- Updated ruff (multiple updates through development)
- Updated pre-commit hooks
- Removed croniter dependency (now using built-in cronsim)
🧪 Testing
- ✅ All 126 tests passing
- ✅ Hassfest validation passing
- ✅ HACS validation passing
- Added comprehensive tests for data restoration scenarios
- Added tests for field migration from older versions
- Improved test quality and coverage
Upgrading from v0.8.2
Your sensor data should be restored correctly. If you experience issues, enable debug logging:
logger:
logs:
custom_components.measureit: debugFull Changelog: v0.8.2...v0.8.4
v0.8.2 Fix warning about template in logging
Changes
- Update dependency ruff to v0.7.0 @renovate (#189)
- Update dependency pytest-homeassistant-custom-component to v0.13.174 - autoclosed @renovate (#185)
- Fix hass not set on template @joostlek (#178)
- Update dependency ruff to v0.6.8 @renovate (#187)
- Update dependency pytest-homeassistant-custom-component to v0.13.163 @renovate (#183)
- Update dependency ruff to v0.6.7 @renovate (#184)
- Update dependency ruff to v0.6.5 @renovate (#182)
- Update dependency pytest-homeassistant-custom-component to v0.13.162 @renovate (#181)
- Update dependency ruff to v0.6.4 @renovate (#180)
- Update dependency pytest-homeassistant-custom-component to v0.13.161 @renovate (#177)
- Update dependency pytest-homeassistant-custom-component to v0.13.158 @renovate (#175)
- Update dependency pytest-homeassistant-custom-component to v0.13.157 @renovate (#174)
v0.8.1 🔧 Fix issues with upcoming 2024.9 release
This release is a must if you upgrade HA to 2024.9+. It fixes some issues with templates and services.
It also includes updated Slovakian translations. Thanks @misa1515!
Changes
- Update sk.json @misa1515 (#146)
- Update sk.json @misa1515 (#128)
- Update dependency pytest-homeassistant-custom-component to v0.13.156 @renovate (#171)
- Update dependency ruff to v0.6.3 - autoclosed @renovate (#172)
- Fix 2024.9 issues - stricter entity service schema validation & templ… @danieldotnl (#173)
- Update dependency pytest-homeassistant-custom-component to v0.13.155 @renovate (#170)
- Update dependency ruff to v0.6.2 @renovate (#168)
- Update dependency pytest-homeassistant-custom-component to v0.13.154 @renovate (#169)
- Update dependency ruff to v0.6.0 @renovate (#167)
- Update dependency pytest-homeassistant-custom-component to v0.13.153 @renovate (#166)
- Update dependency croniter to v3 @renovate (#157)
- Update dependency pytest-homeassistant-custom-component to v0.13.152 @renovate (#164)
- Update dependency ruff to v0.5.7 @renovate (#165)
- Update dependency pytest-homeassistant-custom-component to v0.13.151 @renovate (#163)
- Update dependency pytest-homeassistant-custom-component to v0.13.150 @renovate (#161)
- Update dependency ruff to v0.5.6 @renovate (#160)
- Update dependency pytest-homeassistant-custom-component to v0.13.148 @renovate (#159)
- Update dependency ruff to v0.5.5 @renovate (#158)
- Update dependency ruff to v0.5.4 @renovate (#153)
- Update softprops/action-gh-release action to v2.0.8 @renovate (#156)
- Update dependency pytest-homeassistant-custom-component to v0.13.147 @renovate (#152)
- Update dependency ruff to v0.5.1 @renovate (#151)
- Update dependency pytest-homeassistant-custom-component to v0.13.144 @renovate (#150)
- Update dependency ruff to v0.5.0 @renovate (#148)
- Update dependency pytest-homeassistant-custom-component to v0.13.138 @renovate (#149)
- Update dependency pytest-homeassistant-custom-component to v0.13.137 @renovate (#147)
- Update dependency ruff to v0.4.10 @renovate (#144)
- Update dependency pytest-homeassistant-custom-component to v0.13.136 @renovate (#145)
- Update softprops/action-gh-release action to v2.0.6 @renovate (#143)
- Update dependency ruff to v0.4.9 @renovate (#139)
- Update dependency pytest-homeassistant-custom-component to v0.13.135 @renovate (#142)
- Update dependency pytest-homeassistant-custom-component to v0.13.133 @renovate (#140)
- Update dependency pytest-homeassistant-custom-component to v0.13.124 @renovate (#137)
- Update dependency pytest-homeassistant-custom-component to v0.13.123 @renovate (#136)
- Update softprops/action-gh-release action to v2.0.5 @renovate (#134)
- Update dependency ruff to v0.4.4 @renovate (#135)
- Update dependency croniter to v2.0.5 @renovate (#105)
- Update dependency pytest-homeassistant-custom-component to v0.13.122 @renovate (#132)
- Update dependency pytest-homeassistant-custom-component to v0.13.121 @renovate (#131)
- Update dependency ruff to v0.4.3 @renovate (#130)
- Update dependency pytest-homeassistant-custom-component to v0.13.120 @renovate (#129)
- Update dependency ruff to v0.4.2 @renovate (#127)
- Update dependency pytest-homeassistant-custom-component to v0.13.116 @renovate (#126)
v0.8.0 💪 Custom reset intervals and a calibrate service
This release introduces a calibrate service which can be used to adjust the value of the sensor. E.g. you start measuring the number of coffees your coffee machine produces, but it already brewed 50 cups before you configured MeasureIt. You can now set it to 50!
Until now, all sensors other than hourly ones, were resetting at midnight. It is now also possible to reset your sensors at custom intervals by means of a cron expression. E.g.: when you want to measure the time you spent in bed, it's not very convenient if the sensor resets at midnight.
Changes
- Update dependency ruff to v0.4.1 @renovate (#124)
- Refactor reset service implementation @danieldotnl (#122)
- Implement a calibrate service @danieldotnl (#121) Closes #115
- Add support for custom cron expressions @danieldotnl (#120) Closes #102
- Update README.md @danieldotnl (#123)
- Update dependency ruff to v0.3.7 @renovate (#118)
- Update dependency pytest-homeassistant-custom-component to v0.13.114 @renovate (#119)
- Update szenius/set-timezone action to v2 @renovate (#117)
- Update dependency pytest-homeassistant-custom-component to v0.13.113 @renovate (#116)
v0.7.1 Small fix in options flow
Changes
- Fix unknown error when updating sensor config @danieldotnl (#114)
- Update dependency pytest-homeassistant-custom-component to v0.13.111 @renovate (#112)
- Update lint.yml to python 3.12 @danieldotnl (#113)
- Update dependency ruff to v0.3.5 @renovate (#111)
v0.7.0 Resetting source entities
For source meter configurations: source entities that reset can now still be tracked if they have state_class total_increasing.
As an example: we can now measure the precipitation per week based on a source sensor that resets every day.
Changes
- Support source entities that reset with state class total_increasing @danieldotnl (#104)
- Make sure we are compatible with HA core change regarding event filters in 2024.4 @danieldotnl (#109)
- Add translatable icons @danieldotnl (#110)
- Update dependency pytest-homeassistant-custom-component to v0.13.109 @renovate (#108)
- Update dependency ruff to v0.3.4 @renovate (#107)
v0.6.0 Reset after measuring session and more
You can now choose a sensor that will reset after each measuring session. E.g. when you want to measure some device that is running multiple times per day.
A DST issues is fixed which caused the monthly pattern to finish 1 hour too early. Please fix your existing configurations manually with the reset service.
Thank you @misa1515 for providing Slovakian translations!
Changes
- Fix issue with determining end of pattern with dst and add tests @danieldotnl (#99)
- Implement sensor reset functionality after each measuring session. @danieldotnl (#100)
- Add source entity attribute on source sensors @danieldotnl (#92)
- Update sk.json @misa1515 (#95)
- Update dependency ruff to v0.3.3 @renovate (#101)
- Update dependency pytest-homeassistant-custom-component to v0.13.108 @renovate (#98)
- Add debug settings in container config @danieldotnl (#97)
- Update softprops/action-gh-release action to v2.0.4 @renovate (#96)
- Update softprops/action-gh-release action to v2.0.3 @renovate (#94)
- Update softprops/action-gh-release action to v2.0.2 @renovate (#93)
- Update dependency ruff to v0.3.2 @renovate (#90)
- Update softprops/action-gh-release action to v2.0.1 @renovate (#89)
- Update softprops/action-gh-release action to v2 @renovate (#88)
v0.5.4 Relaunching MeasureIt!
🥳 Relauching MeasureIt! 🥳
It took some time but here you have a brand new MeasureIt release.
And I heard you! It contains:
- a counter sensor 🙌. Count each time a template evaluates to True!
- a reset service that can reset any sensor, now or at a future datetime
- sensors that do not reset (automatically, but you can reset them with the reset service)
- source sensors now update immediately when the source entity updates
- the issues with the sensors sometimes resetting at UTC midnight has been fixed.
- fixed issue with device_class and state_class that did not respect what you configured.
- lots of automated tests
I think all of this deserves a version jump to 0.5.x!
A lot changed and have been rewritten but I tried to support your existing configurations as good as possible! If you still do encounter issues with those, please delete them and create a new config entry.
If you have sensors that were affected by the UTC reset time bug, you can set the correct datetime with the new reset service.
Documentation has been updated as well, so please re-read the README on github!
Questions? Use the community forum!
Bugs? Create an issue on Github.