hass.tibber_prices/custom_components/tibber_prices/services
Julian Pawlowski c89248d493 feat(services): add reason codes and schedule comparison details to find services
Add structured reason codes to no-result responses for find_cheapest_block,
find_cheapest_hours, and find_cheapest_schedule. Each handler now classifies
why no result was returned: no_data_in_range, no_intervals_matching_level_filter,
insufficient_intervals_after_filter, or insufficient_contiguous_window.

Add include_comparison_details flag to find_cheapest_schedule. When enabled,
each scheduled task includes a price_comparison field showing the most expensive
alternative window (mean, min, max, start, end) for cost-savings context.

Document stable reason code contracts in en.json service descriptions.
Add corresponding field translations to all locales (de, nb, nl, sv).

Impact: Automations and scripts can now react to why no window was found,
and schedules can display concrete savings vs. worst-case pricing.
2026-04-12 12:47:11 +00:00
..
__init__.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
debug_clear_tomorrow.py feat(services): add debug_clear_tomorrow for testing refresh cycle 2025-12-23 14:13:51 +00:00
find_cheapest_block.py feat(services): add reason codes and schedule comparison details to find services 2026-04-12 12:47:11 +00:00
find_cheapest_hours.py feat(services): add reason codes and schedule comparison details to find services 2026-04-12 12:47:11 +00:00
find_cheapest_schedule.py feat(services): add reason codes and schedule comparison details to find services 2026-04-12 12:47:11 +00:00
find_most_expensive_block.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
find_most_expensive_hours.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
formatters.py feat(api): add energy and tax fields to Tibber GraphQL queries 2026-04-09 18:27:21 +00:00
get_apexcharts_yaml.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
get_chartdata.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
get_price.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
helpers.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00
refresh_user_data.py feat(services): add 5 scheduling services for price-optimized time windows 2026-04-11 18:58:27 +00:00