mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
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. |
||
|---|---|---|
| .. | ||
| attributes | ||
| calculators | ||
| __init__.py | ||
| chart_data.py | ||
| chart_metadata.py | ||
| core.py | ||
| definitions.py | ||
| helpers.py | ||
| types.py | ||
| value_getters.py | ||