mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
fix(const): clarify comments on peak price flexibility threshold
This commit is contained in:
parent
2e7dd64db0
commit
a39eb66f49
1 changed files with 2 additions and 1 deletions
|
|
@ -51,7 +51,8 @@ DEFAULT_BEST_PRICE_FLEX = 15 # 15% flexibility for best price (user-facing, per
|
||||||
# Peak price flexibility is set to -20 (20%) to allow for more adaptive detection of expensive periods.
|
# Peak price flexibility is set to -20 (20%) to allow for more adaptive detection of expensive periods.
|
||||||
# This is intentionally more flexible than best price (15%) because peak price periods can be more variable,
|
# This is intentionally more flexible than best price (15%) because peak price periods can be more variable,
|
||||||
# and users may benefit from earlier warnings about expensive periods, even if they are less sharply defined.
|
# and users may benefit from earlier warnings about expensive periods, even if they are less sharply defined.
|
||||||
# The negative sign indicates that the threshold is set below the MAX price (e.g., -20% means MAX * 0.8), not above the average price.
|
# The negative sign indicates that the threshold is set below the MAX price
|
||||||
|
# (e.g., -20% means MAX * 0.8), not above the average price.
|
||||||
# A higher percentage allows for more conservative detection, reducing false negatives for peak price warnings.
|
# A higher percentage allows for more conservative detection, reducing false negatives for peak price warnings.
|
||||||
DEFAULT_PEAK_PRICE_FLEX = -20 # 20% flexibility for peak price (user-facing, percent)
|
DEFAULT_PEAK_PRICE_FLEX = -20 # 20% flexibility for peak price (user-facing, percent)
|
||||||
DEFAULT_BEST_PRICE_MIN_DISTANCE_FROM_AVG = 5 # 5% minimum distance from daily average (ensures significance)
|
DEFAULT_BEST_PRICE_MIN_DISTANCE_FROM_AVG = 5 # 5% minimum distance from daily average (ensures significance)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue