mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-05-28 18:43:40 +00:00
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. |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| brand | ||
| config_flow_handlers | ||
| coordinator | ||
| custom_translations | ||
| entity_utils | ||
| interval_pool | ||
| number | ||
| sensor | ||
| services | ||
| switch | ||
| translations | ||
| utils | ||
| __init__.py | ||
| config_flow.py | ||
| const.py | ||
| data.py | ||
| diagnostics.py | ||
| entity.py | ||
| icons.json | ||
| manifest.json | ||
| migrations.py | ||
| services.yaml | ||