Releases: woopstar/smoothing_analytics_sensors
v2.3.0
v2.2.0
Changes
🚀 Features
🐛 Bug Fixes
🧰 Maintenance
v2.1.0
v2.0.0
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:
-
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.
- Implemented
-
Combining
_handle_input_sensor_state_change
andasync_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.
-
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 adatetime
object ensures that update intervals are calculated correctly, preventing time-related errors.
-
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.
-
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.
- The
-
Enhanced Configuration Handling:
- The sensors now pull configuration changes (such as
time_constant
anddesired_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.
- The sensors now pull configuration changes (such as
⚒️ Breaking Changes
🐛 Bug Fixes
What's Changed
New Contributors
Full Changelog: v1.1.7...v2.0.0
v1.1.7
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
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
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
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
v1.1.2
Changes
- Added release drafter