hass.tibber_prices/custom_components/tibber_prices/sensor/attributes
Julian Pawlowski 3e6bcf2345 fix(sensor): synchronize current_interval_price_base with current_interval_price
Fixed inconsistency between "Current Electricity Price" and "Current Electricity Price
(Energy Dashboard)" sensors that were showing different prices and icons.

Changes:
- Add current_interval_price_base to TIME_SENSITIVE_ENTITY_KEYS so it updates at
  quarter-hour boundaries instead of only on API polls. This ensures both sensors
  update synchronously when a new 15-minute interval starts.
- Use interval_data["startsAt"] as timestamp for current interval price sensors
  (both variants) instead of rounded calculation time. This prevents timestamp
  divergence when sensors update at slightly different times.
- Include current_interval_price_base in icon color attribute mapping so both
  sensors display the same dynamic cash icon based on current price level.
- Include current_interval_price_base in dynamic icon function so it gets the
  correct icon based on current price level (VERY_CHEAP/CHEAP/NORMAL/EXPENSIVE).

Impact: Both sensors now show identical prices, timestamps, and icons as intended.
They update synchronously at interval boundaries (00, 15, 30, 45 minutes) and
correctly represent the Energy Dashboard compatible variant without lag or
inconsistencies.
2025-12-26 16:23:05 +00:00
..
__init__.py feat(sensors)!: add configurable median/mean display for average sensors 2025-12-08 17:53:40 +00:00
daily_stat.py feat(sensors)!: add configurable median/mean display for average sensors 2025-12-08 17:53:40 +00:00
future.py refactor(currency)!: rename major/minor to base/subunit currency terminology 2025-12-11 08:26:30 +00:00
helpers.py feat(sensors): always show both mean and median in average sensor attributes 2025-12-18 15:12:30 +00:00
interval.py fix(sensor): synchronize current_interval_price_base with current_interval_price 2025-12-26 16:23:05 +00:00
lifecycle.py fix(sensor): streamline lifecycle attrs and next poll visibility 2025-12-26 12:13:36 +00:00
metadata.py refactor(price_info): price data handling to use unified interval retrieval 2025-11-24 10:49:34 +00:00
timing.py feat(sensor): convert timing sensors to hour-based display with minute attributes 2025-12-26 16:03:00 +00:00
trend.py refactor(naming): complete class naming convention alignment 2025-11-20 11:22:53 +00:00
volatility.py fix(periods): Periods are now correctly recalculated after tomorrow prices became available. 2025-12-09 16:57:57 +00:00
window_24h.py feat(sensors)!: add configurable median/mean display for average sensors 2025-12-08 17:53:40 +00:00