mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
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.
47 lines
1.4 KiB
JSON
47 lines
1.4 KiB
JSON
{
|
|
"services": {
|
|
"get_price": {
|
|
"service": "mdi:table-search"
|
|
},
|
|
"get_chartdata": {
|
|
"service": "mdi:chart-bar",
|
|
"sections": {
|
|
"general": "mdi:identifier",
|
|
"selection": "mdi:calendar-range",
|
|
"filters": "mdi:filter-variant",
|
|
"transformation": "mdi:tune",
|
|
"format": "mdi:file-table",
|
|
"arrays_of_objects": "mdi:code-json",
|
|
"arrays_of_arrays": "mdi:code-brackets"
|
|
}
|
|
},
|
|
"get_apexcharts_yaml": {
|
|
"service": "mdi:chart-line"
|
|
},
|
|
"refresh_user_data": {
|
|
"service": "mdi:refresh"
|
|
},
|
|
"find_best_start": {
|
|
"service": "mdi:clock-start",
|
|
"sections": {
|
|
"window": "mdi:calendar-range",
|
|
"job": "mdi:washing-machine",
|
|
"costing": "mdi:cash-multiple",
|
|
"pv": "mdi:solar-power",
|
|
"preferences": "mdi:tune"
|
|
}
|
|
},
|
|
"plan_charging": {
|
|
"service": "mdi:battery-charging",
|
|
"sections": {
|
|
"window": "mdi:calendar-range",
|
|
"charge": "mdi:ev-station",
|
|
"pv": "mdi:solar-power",
|
|
"preferences": "mdi:tune"
|
|
}
|
|
},
|
|
"debug_clear_tomorrow": {
|
|
"service": "mdi:bug"
|
|
}
|
|
}
|
|
}
|