mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Prevent relaxation from creating heterogeneous periods: 1. CV-based Quality Gate (PERIOD_MAX_CV = 25%) - Periods with internal CV >25% are rejected during relaxation - CV field added to period statistics for transparency 2. Period Overlap Protection - New periods cannot "swallow" existing smaller periods - CV-based merge blocking prevents heterogeneous combinations - Preserves good baseline periods from relaxation replacement 3. Constants in types.py - PERIOD_MAX_CV, CROSS_DAY_*, SUPERSESSION_* thresholds - TibberPricesPeriodStatistics extended with coefficient_of_variation field Impact: Users get smaller, more homogeneous periods that better represent actual cheap/expensive windows. |
||
|---|---|---|
| .. | ||
| tibber_prices | ||