mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Added UI controls for price rating stabilization parameters that were previously hardcoded. Users can now fine-tune rating stability to match their automation needs. Changes: - Added CONF_PRICE_RATING_HYSTERESIS constant (0-5%, step 0.5%, default 2%) - Added CONF_PRICE_RATING_GAP_TOLERANCE constant (0-4 intervals, default 1) - Extended get_price_rating_schema() with two new sliders - Updated data_transformation.py to pass both parameters to enrichment function - Improved descriptions in all 5 languages (de, en, nb, nl, sv) to focus on automation stability instead of chart appearance - Both settings included in factory reset via get_default_options() Hysteresis explanation: Prevents rapid state changes when prices hover near thresholds (e.g., LOW requires price > threshold+hysteresis to leave). Gap tolerance explanation: Merges small isolated rating blocks into dominant neighboring blocks using "look through" algorithm (fixed in previous commit). Impact: Users can now adjust rating stability for their specific use cases. Lower hysteresis (0-1%) for responsive automations, higher (3-5%) for stable long-running processes. Gap tolerance prevents brief rating spikes from triggering unnecessary automation actions. |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| config_flow_handlers | ||
| coordinator | ||
| custom_translations | ||
| entity_utils | ||
| interval_pool | ||
| sensor | ||
| services | ||
| translations | ||
| utils | ||
| __init__.py | ||
| config_flow.py | ||
| const.py | ||
| data.py | ||
| diagnostics.py | ||
| entity.py | ||
| icons.json | ||
| manifest.json | ||
| services.yaml | ||