Add two new service actions for intelligent device scheduling:
- find_best_start: Find optimal start time for run-once appliances
- Considers price, optional energy estimates, optional PV power
- Supports flexible time windows (HH:MM, ISO datetime, with/without timezone)
- Prefers future candidates over past ones
- Includes current interval by default (configurable)
- Returns recommended start time with cost analysis
- plan_charging: Create optimized charging schedule for energy storage
- Supports EV, home battery, balcony battery use cases
- Energy target or duration-based planning
- Split or continuous charging modes
- Efficiency factor support
- Includes current interval by default (configurable)
- Returns detailed slot-by-slot charging plan
Common improvements:
- Flexible datetime parsing (ISO 8601, with/without timezone, microseconds)
- Time selector in GUI (better UX than text field)
- Currency display based on config entry settings
- Comprehensive error handling and validation
- Detailed response envelopes with warnings/errors
Impact: Users can automate appliance scheduling based on electricity
prices without external automation rules.
Add dynamic rolling window mode to get_chartdata and get_apexcharts_yaml
services that automatically adapts to data availability.
When 'day' parameter is omitted, services return 48-hour window:
- With tomorrow data (after ~13:00): today + tomorrow
- Without tomorrow data: yesterday + today
Changes:
- Implement rolling window logic in get_chartdata using has_tomorrow_data()
- Generate config-template-card wrapper in get_apexcharts_yaml for dynamic
ApexCharts span.offset based on tomorrow_data_available binary sensor
- Update service descriptions in services.yaml
- Add rolling window descriptions to all translations (de, en, nb, nl, sv)
- Document rolling window mode in docs/user/services.md
- Add ApexCharts examples with prerequisites in docs/user/automation-examples.md
BREAKING CHANGE: get_apexcharts_yaml rolling window mode requires
config-template-card in addition to apexcharts-card for dynamic offset
calculation.
Impact: Users can create auto-adapting 48h price charts without manual day
selection. Fixed day views (day: today/yesterday/tomorrow) still work with
apexcharts-card only.