hass.tibber_prices/custom_components/tibber_prices
Julian Pawlowski 51a62d712f feat(sensor): add next/previous/rolling-hour price rank sensors
Rename the three existing price rank sensors from price_rank_* to
current_interval_price_rank_* to clarify they rank the current
quarter-hour interval's price, not a daily aggregate — consistent with
current_interval_price_level / current_interval_price_rating naming.

Add 8 new rank sensors covering additional subjects and reference windows:
- next_interval_price_rank_{today,today_tomorrow}
- previous_interval_price_rank_{today,today_tomorrow}
- current_hour_price_rank_{today,today_tomorrow}   (5-interval rolling avg)
- next_hour_price_rank_{today,today_tomorrow}       (5-interval rolling avg)

All new sensors are disabled by default. The volatility calculator gains a
subject parameter (_get_subject_price / _get_subject_price_attr_key /
_get_rolling_hour_avg_price) to select which price to rank. Sensor key
routing in value_getters.py and attributes/__init__.py updated accordingly.

No migration entries needed — the original price_rank_* sensors were never
released to users.

All 5 translation files updated. sensor-reference.md regenerated (129 entities).

Impact: Users can now track price rank for the next interval (look-ahead),
the previous interval (logging), and rolling hourly averages — for both
same-day and two-day reference windows.
2026-04-12 15:02:27 +00:00
..
api feat(api): add energy and tax fields to Tibber GraphQL queries 2026-04-09 18:27:21 +00:00
binary_sensor fix(periods): rename periods_remaining to period_count_remaining 2026-04-12 10:05:21 +00:00
brand feat(brand): update dark icons for improved visual consistency 2026-04-09 19:04:26 +00:00
config_flow_handlers refactor(options_flow): optimize loading of override translations based on active overrides 2026-04-12 08:54:41 +00:00
coordinator fix(periods): rename periods_remaining to period_count_remaining 2026-04-12 10:05:21 +00:00
custom_translations feat(sensor): add next/previous/rolling-hour price rank sensors 2026-04-12 15:02:27 +00:00
entity_utils refactor: remove dead code across integration 2026-04-11 12:13:26 +00:00
interval_pool perf(interval_pool): hoist fetch_groups and precompute period criteria 2026-04-06 14:35:33 +00:00
number refactor(entities): remove redundant name= from all entity descriptions 2026-04-06 13:16:07 +00:00
sensor feat(sensor): add next/previous/rolling-hour price rank sensors 2026-04-12 15:02:27 +00:00
services feat(services): add reason codes and schedule comparison details to find services 2026-04-12 12:47:11 +00:00
switch refactor: remove dead code across integration 2026-04-11 12:13:26 +00:00
translations feat(sensor): add next/previous/rolling-hour price rank sensors 2026-04-12 15:02:27 +00:00
utils feat(sensor): add price rank sensors and IQR-based volatility attributes 2026-04-12 14:13:47 +00:00
__init__.py feat(migrations): add entity auto-migration system with HA repairs 2026-04-10 12:21:49 +00:00
config_flow.py feat(config_flow): add price level gap tolerance for Tibber API level field 2025-12-22 20:25:30 +00:00
const.py feat(periods): implement geometric_extension_attempted flag and time_range filtering 2026-04-12 08:24:38 +00:00
data.py feat(interval-pool): add intelligent interval caching and memory optimization 2025-11-25 20:44:39 +00:00
diagnostics.py refactor(lifecycle): integrate with Pool for sensor metrics 2025-12-23 14:13:34 +00:00
entity.py fix(lint): apply Python 3.14 ruff rules and update HA minimum version 2026-04-11 10:56:34 +00:00
icons.json chore(style): reformat JSON config files from 4-space to 2-space indent 2026-04-12 14:15:04 +00:00
manifest.json chore(style): reformat JSON config files from 4-space to 2-space indent 2026-04-12 14:15:04 +00:00
migrations.py feat(migrations): add entity auto-migration system with HA repairs 2026-04-10 12:21:49 +00:00
services.yaml feat(services): add reason codes and schedule comparison details to find services 2026-04-12 12:47:11 +00:00