hass.tibber_prices/custom_components/tibber_prices/sensor
Julian Pawlowski dc4933ec5c feat(services): add price_source parameter to get_chartdata and get_apexcharts_yaml
Add a `price_source` field (total | energy | tax, default: total) to both
services, allowing users to choose which price component is used as the
primary chart series.

- get_chartdata: all 9 interval.get("total") calls now use price_source
- get_apexcharts_yaml: price_source forwarded through all 4 JS
  data_generator calls; yaxis template variables resolve to
  yaxis_min_energy / yaxis_min_tax when price_source != "total"
- Metadata-only path: always computes yaxis_suggested_energy and
  yaxis_suggested_tax alongside the main yaxis bounds so the
  chart_metadata sensor can expose the correct axis scale for any source
- chart_metadata sensor: exposes yaxis_min_energy, yaxis_max_energy,
  yaxis_min_tax, yaxis_max_tax as new attributes
- services.yaml + all 5 language files (en, de, nb, nl, sv): price_source
  field and selector options added

Impact: Users can now chart the raw energy (spot) price or the tax component separately, with correct Y-axis scaling in ApexCharts.

Co-authored-by: Copilot <copilot@github.com>
2026-05-03 18:48:36 +00:00
..
attributes refactor(attributes): streamline phase type retrieval and attribute building 2026-04-17 08:52:17 +00:00
calculators refactor(attributes): streamline phase type retrieval and attribute building 2026-04-17 08:52:17 +00:00
__init__.py fix(services): use injected now in resolve_search_range day offset 2026-04-14 19:33:24 +00:00
chart_data.py feat(sensors): add chart_metadata sensor for lightweight chart configuration 2025-12-05 20:30:54 +00:00
chart_metadata.py feat(services): add price_source parameter to get_chartdata and get_apexcharts_yaml 2026-05-03 18:48:36 +00:00
core.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00
definitions.py refactor(day_patterns): rename double valley/peak to double dip/duck curve 2026-04-17 14:37:17 +00:00
helpers.py feat(sensor): use dynamic precision for price rounding and display 2026-04-14 19:28:19 +00:00
types.py feat(types): add TypedDict documentation and BaseCalculator helpers 2025-11-22 14:32:24 +00:00
value_getters.py refactor(repairs): simplify currency mode change notification to one-shot 2026-04-15 10:00:59 +00:00