Skip to content

Releases: woopstar/smoothing_analytics_sensors

v2.3.0

16 Oct 16:09
f5e9f67
Compare
Choose a tag to compare

Changes

🐛 Bug Fixes

  • #16 fix: add utils package and fix get_config_value @woopstar

v2.2.0

15 Oct 08:49
64702dd
Compare
Choose a tag to compare

Changes

🚀 Features

🐛 Bug Fixes

  • #8 fix: Remove colon in type name in attributes @woopstar

🧰 Maintenance

v2.1.0

01 Oct 09:22
Compare
Choose a tag to compare

Changes

🐛 Bug Fixes

🧰 Maintenance

  • #6 fix: apply small fixes and cleanup in code @woopstar

v2.0.0

30 Sep 17:49
Compare
Choose a tag to compare

Changes

This release introduces a series of improvements and bug fixes to the Smoothing Analytics Sensors integration. These changes enhance the sensors' responsiveness, ensure proper configuration updates, and resolve several reported issues. Additionally, logging and adjustments have been added to improve diagnostics and maintainability.

Key Changes:

  1. Addition of State Change Handling:

    • Implemented async_track_state_change to listen for state changes in the input sensor, ensuring the sensors now proactively respond to updates. This ensures better real-time updates and more accurate sensor readings based on changes in raw data.
  2. Combining _handle_input_sensor_state_change and async_update:

    • These two functions, which previously served similar purposes, have now been merged to simplify the code and reduce redundancy. This ensures that any change in the input sensor triggers an immediate update in the output sensor.
  3. Enhancements to Lowpass and EMA Sensors:

    • The sensors are adjusted to the correct update frequency based on the input sensor’s state changes. The issue where the sensors updated too slowly has been resolved, and they should now more accurately follow the input data.
    • Converting _last_updated from a string to a datetime object ensures that update intervals are calculated correctly, preventing time-related errors.
  4. Improved Logging for Diagnostics:

    • Detailed logging has been added throughout the sensor update process. This includes logs when resolving the input sensor, tracking state changes, and applying filters. The additional logging will help in diagnosing issues and verifying that sensors are functioning as expected.
  5. Fixes for Handling Update Intervals:

    • The update_interval is now calculated dynamically by observing the time between input sensor updates, ensuring the smoothing filters apply correctly. This addresses earlier concerns about the EMA sensor adapting too slowly or too quickly.
  6. Enhanced Configuration Handling:

    • The sensors now pull configuration changes (such as time_constant and desired_time_to_95) dynamically from the options flow. This ensures any updates made while the system is running are reflected immediately, without needing a system restart.
    • Added support for calculating the update interval based on the input sensor’s recent state changes, which enhances the responsiveness of smoothing filters like the EMA sensor.

⚒️ Breaking Changes

🐛 Bug Fixes

What's Changed

New Contributors

Full Changelog: v1.1.7...v2.0.0

v1.1.7

29 Sep 23:07
Compare
Choose a tag to compare

Changes

Removal of update_interval Option:

  • The update_interval field has been removed from the configuration flow. This parameter was not being actively used and was redundant in the current setup.

Refactoring Sensor Initialization:

  • The sensors now correctly initialize their settings from both the configuration and options flow, ensuring that values set during the options flow are reflected immediately after Home Assistant is restarted.
  • Sensors will now retrieve and apply changes to parameters like lowpass_time_constant, median_sampling_size, and ema_smoothing_window both during initialization and dynamically at runtime.

Streamlined Sensor Configuration:

  • Sensors now retrieve the latest option values directly from the configuration entry rather than storing them separately. This helps eliminate the need for individual _update_settings functions in each sensor.
  • Introduced logic to handle changes to configuration parameters while the integration is running, without requiring restarts of Home Assistant.

Fix for Median Sensor Data Points Handling:

  • The Median Sensor now correctly handles dynamic changes to the sampling_size, trimming or expanding the list of data points accordingly. This ensures that the median is always calculated based on the correct number of data points, even if the configuration changes during runtime.

Resolved Time Calculation Issues:
Fixed an issue with time_since_last_update not being calculated correctly, ensuring accurate time tracking for sensor updates.

Full Changelog: v1.1.6...v1.1.7

v1.1.6

29 Sep 20:36
Compare
Choose a tag to compare

Changes

  • Fixed an issue where the EMA, Median, and Lowpass sensors did not correctly apply configuration changes from the options flow.

Full Changelog: v1.1.5...v1.1.6

v1.1.5

29 Sep 20:14
Compare
Choose a tag to compare

Changes

Fix bugs in EMA and Lowpass sensors not using the correct previous value from themselves.

Full Changelog: v1.1.4...v1.1.5

v1.1.4

29 Sep 20:06
Compare
Choose a tag to compare

Changes

  • Added alpha to EMA sensor attributes
  • Improved comments in code
  • Removed device version from entity and sensors

Full Changelog: v1.1.3...v1.1.4

v1.1.3

29 Sep 18:38
Compare
Choose a tag to compare

Changes

  • No changes

Full Changelog: v1.1.2...v1.1.3

v1.1.2

29 Sep 13:15
Compare
Choose a tag to compare

Changes

  • Added release drafter