hass.tibber_prices/custom_components/tibber_prices/utils
Julian Pawlowski b93eedf00e feat(services): add power-profile-weighted window selection
Add `include_current_interval` parameter to `find_cheapest_block` and
`find_cheapest_schedule` services, controlling whether the currently
active price interval can be the start of the selected window.

Add power-profile weighting to `find_cheapest_contiguous_window`: accepts
an optional `power_profile` list that weights each interval's price by
relative power draw (e.g. heat-up phase heavier than steady state). Without
a profile the behaviour is unchanged (uniform weighting).

Extend search-range tests and add price-window unit tests covering weighted
and unweighted scenarios, edge cases, and sequential scheduling interactions.
Update scheduling-actions documentation with parameter and profile examples.

Impact: Users can now model appliances with non-uniform power draw (e.g. heat
pumps, washing machines) to find truly cheapest windows based on actual energy
cost rather than average price.
2026-05-03 22:16:08 +00:00
..
__init__.py feat(utils): add coefficient of variation (CV) calculation 2025-12-22 23:21:38 +00:00
average.py feat(sensors): always show both mean and median in average sensor attributes 2025-12-18 15:12:30 +00:00
price.py fix(periods): separate smoothed levels from period detection 2026-05-03 19:40:34 +00:00
price_window.py feat(services): add power-profile-weighted window selection 2026-05-03 22:16:08 +00:00