[2.0.0b1] - 2026-11-23
Warning
Read before upgrading: you may have to change things
- No way back to 1.6.x without a backup: the configuration is migrated (version 16 → 21) and 1.6.x cannot load it. Make a Home Assistant backup first.
- Peak Shaving Limit is gone (#506): Max contracted power is now Maximum Grid Import (same entity), always on (500 W minimum) and it also caps grid charging. On upgrade it takes the lower of the two values if Peak Shaving was on: check it. A "peaks only" setup (limit below the contracted power) must now set the cap itself to that value. Re-import the Peak Shaving Limit Sync blueprint.
- Removed entities, update automations, scripts and dashboards that use them: Peak Shaving Limit, Discharge Reserve (switch) and Discharge Reserve Minimum Saving (#888), Backup Offgrid Threshold (#660).
number.omnibattery_predictive_safety_margin_kwhis nownumber.omnibattery_predictive_safety_margin_pct(#828); any value other than 0 resets to 10 %. - Backup port (#660, #540): a load on it no longer takes the battery out of automatic control. To run the whole house from the backup port, turn on the battery's Manual Control.
Important
The battery will behave differently
- Above Maximum Grid Import the battery discharges even when price control, the plan, a no-discharge time slot, a weekly charge hold or an EV charger pause would keep it idle (#506).
- Dynamic Pricing has a new planner: charge, hold, sale, negative-price charge, pre-discharge and charge delay are decided in one plan; expect different slots than in 1.6.
- Dynamic Pricing holds the battery for dearer hours, for everyone (#888): no switch any more.
- Minimum Arbitrage Margin at 0 now means "losses only" (#858): a slot is charged only if it pays for the round-trip losses, so expect fewer charges.
- Belgium: Grid Import 15-min Window is on by default (#506): the cap limits each quarter's mean import, not the instant power.
- Time Slot with several windows charges for the load up to the next window, not up to midnight (#611).
Added
- ⚠️ 15-minute window for the grid import cap (#506): with the new Grid Import 15-min Window switch on (default in Belgium), Maximum grid import limits the mean import of each local quarter, as capacity tariffs bill it, measured from the grid sensor you already have (it must be the billing meter). A short spike passes when the quarter has budget left; a spike the battery could not cover is paid back over the rest of the quarter; near a boundary, after a restart or a meter gap the instantaneous cap applies. Grid charging never goes above the configured value. Peak Shaving Active shows
window_valid,window_import_kwhandwindow_cap_w, and one warning is logged per quarter whose budget is spent. - Read-only batteries through Home Assistant entities (#823): new brand Other battery via Home Assistant entities, for a battery another integration already reports (a BYD behind a Kostal Plenticore, for instance). Its power counts in the home consumption and its SOC and capacity in the system totals; Omnibattery never commands it and leaves it out of every plan. It cannot be paused, so it may discharge into a grid charge of the others (PR#915). Thanks to @benediktarnold.
- NOM / Manual for a battery that regulates on its own: give a battery read through Home Assistant entities an operating mode entity and it gets an Operating Mode select; NOM covers the house first and Omnibattery the rest, and it rests during grid charges and while an excluded device runs. Starts in Manual.
- Weekly Full Charge says whether today's sun can reach 100 % (#876): during the run, its sensor carries
solar_sufficientwith the kWh still needed and the net solar left, re-evaluated when the forecast changes; with Predictive Charging off, a notification warns once when the sun falls short, so an automation can charge from the grid. The new Weekly Full Charge Grid Boost blueprint does that by raising PD Target Grid Power until the run ends. - Temperature Charge Limit Status: new entity and card row, on while a battery's charge power is throttled by temperature (PR#924). Thanks to @anorakophobia.
- Status per excluded device: new entity and card row saying what Omnibattery does with each excluded device (PR#927). Thanks to @anorakophobia.
Changed
- Round-Trip Efficiency shows the measured value in use, tagged "measured", until you set one; any value you set is used as is, 0.85 included. To go back, tap the value and choose "Use measured" or call
omnibattery.use_measured_round_trip_efficiency. A stored 0.85 keeps using the measured value (PR#926). Thanks to @anorakophobia. - Entity names follow the panel's labels: Weekly Full Charge: Wait for Charge Delay (was Delay Weekly Full Charge), Guaranteed Minimum SOC Level, Charge Price Ceiling (was Max Price Threshold (Charge)), Negative Feed-in Price Threshold (was Negative Injection Threshold) and Pre-discharge Lowest SOC (was Pre-discharge Reserve SOC); entity IDs do not change (PR#925). Thanks to @anorakophobia.
- Panel: clearer tooltips for Surplus Hold Minimum Saving, Weekly Full Charge Day and the No-PD switch (PR#925). Thanks to @anorakophobia.
- ⚠️ Solar safety margin is now a % of the forecast sun (#828): 0–50 %, default 10 %;
number.omnibattery_predictive_safety_margin_kwhbecomes…_pct; a stored 0 stays 0 %, any other kWh value resets to 10 %. - Anti-curtailment and High-Price Sale follow the % margin: room for that share of each negative-price slot's sun; the sale's separate kWh cushion is gone (the margin is already off its solar).
- ⚠️ Dynamic Pricing now holds the battery when using it later is cheaper (#888): a normal decision of the plan, for everyone, whenever the whole plan costs less (each new hold costs the planner 1 c, so it does not flip between holding and covering). The Discharge Reserve switch and its minimum saving are gone; Discharge Reserve Status now shows the plan's hold. When the previous planner makes the plan, nothing is held.
- ⚠️ Backup Function no longer takes a battery out of automatic control; Backup Offgrid Threshold removed (#660, #540): a load on the backup port no longer excludes the battery, on any brand. To run a whole house from the backup port, use the battery's Manual Control switch. Only a Huawei inverter that reports going off-grid is still left out during the outage.
- Dynamic Pricing: the planner is about 2.5 times faster: it simulates all of a slot's charge amounts in one pass; the plans are identical.
- ⚠️ The grid import cap wins over price and schedule, and says when it falls short (#506, #483): above the cap the battery now discharges even while Price-Based Discharge Control, a hold of the plan, a no-discharge time slot, a weekly charge hold or an EV charger pause would keep it idle, also inside a predictive slot; minimum SOC, temperature, an offline battery, phase limits, the battery's Allow Discharge switch and the Smart Pre-Discharge reserve still win. Peak Shaving Active gains
grid_import_cap_active,cap_requested_wandcap_delivered_w, and one warning is logged per episode when the meter stays above the cap for 30 s. The charge planner no longer assumes a no-discharge window leaves the load above the cap to the grid. - ⚠️ One grid import cap, all day (#506, #483): Max contracted power is now Maximum grid import, always present (500 W minimum) and applied at any SOC, with or without Peak Shaving: grid charging stays under it, also a manual charge on drivers whose manual power Omnibattery sends (not a Marstek driven by its own registers), and when an excluded device or a grid target would take the meter over it the battery covers the excess. Peak Shaving keeps its switch and SOC threshold as a reserve that covers only the load above that cap. Peak limit is gone: on upgrade the cap becomes the lower of the two numbers if Peak Shaving was on, otherwise your contracted power; check it after upgrading. Setups that used a peak limit below the contracted power as a "peaks only" mode (#523, #843) now need the cap itself set to that value, which also limits grid charging. The Peak Shaving Limit Sync blueprint must be re-imported: it now writes into Maximum grid import, never below a minimum peak (2500 W by default) and with an optional margin.
- Battery drivers are registered in one place: internal refactor. A new brand is added in
drivers/registry.pywith its own setup module, and the shared code, config flow included, no longer branches on brand or model. - Daily Operation timeline draws the Dynamic Pricing plan itself: with predictive charging in Dynamic Pricing, the timeline simulated the day again on its own and could drift far from the published plan (sun spread by the hour, no charges booked for tomorrow, no sales). It now shows the plan's own battery level and charges, quarter by quarter, up to the plan's last price (until tomorrow's prices are out, the part after midnight stays empty); Time Slot and the other modes are unchanged.
- ⚠️ Dynamic Pricing: a new planner decides the grid charge: it weighs every slot's price against what the stored energy saves later, with the round-trip losses on the way in and out, and books exactly what the batteries stop at (their SOC is read in whole percents). A run of cheap quarters now charges each one to its end instead of stopping a percent short every quarter. It runs in the background. Guaranteed Minimum SOC is part of it: the battery is kept at the floor until the first sun, as close as it can, and after today's sun until the next one. With Negative Price Charging on, the planner also decides how much to charge at negative prices, in the same plan. The planner also decides when to keep the battery for a dearer hour, and holds it for those whole slots. With Surplus Price Hold on, the planner also decides which solar surplus to export while a cheaper hour will fill the battery. With High-Price Sale on "surplus + arbitrage" and export prices available, the planner also decides when to sell and at what power; the sale stops at the battery level the plan expects for that slot. With Charge Delay on, the planner also delays the sun itself: it exports the morning surplus while the later sun can still refill the battery (with a 30 % cushion, never on a day that needs the grid, never below the delay's setpoint) and fills the battery at the end of the forecast sun minus the safety margin; the delay's sensor then reads "Planned", and planned grid charges are no longer held by it. On a Weekly Full Charge day too: it reaches 100 % once by the window's end at the lowest cost, free again once full, holding the battery between charges when that avoids buying it back.
- Dynamic Pricing: the planner decides Smart Pre-Discharge (with an export price sensor): it makes room before a period whose export price is at or below the Negative Injection Threshold, only as much as that sun needs, never below the reserve and never buying energy just to discharge it; the risk is judged on the export price, and the notification lists these discharges. Without an export price sensor the previous behaviour stays. Not measured with the replay harness («no medido con repetición»).
- Predictive charging no longer floods the log at INFO: the lines written on every control cycle during a charge or a window are now DEBUG; INFO is logged on state changes only.
- Dynamic Pricing: the late-day re-evaluation rebuilds the plan like every other one: it was a separate evaluator that merged a top-up into the morning schedule, without the planning horizon past sunrise, the solar safety margin, the curtailment plan or the weekly reservation of the main one, and could leave a decision for another horizon published (#409, #472). It now rebuilds the remaining horizon. Its own notification and its 0.3 kWh minimum are gone. A slot's charge target now comes from its own share of the plan only.
- ⚠️ Dynamic Pricing: the round-trip losses always count (#858): with Minimum Arbitrage Margin at 0 or empty (the default) the plan checked no economics and bought energy for every hour at the cheapest earlier slot, even when importing it when used cost less than storing it with the losses, for example a charge at the start of each hour of a falling night. Now 0 means "losses only": a slot is charged only when the energy is worth more later than it costs now after the round-trip efficiency. A margin above 0 adds profit on top, as before. Weekly Full Charge, Guaranteed Minimum SOC and slots at or below 0 are not affected.
- Dynamic Pricing: fewer charger stops (#899, #571): each grid charge start now costs the planner 1 c (never shown in the cost), so it joins charges a few tenths of a cent apart and skips top-ups that save less. On nine days of real 15-minute prices: 4.4 starts per plan down to 1.7, about 0.2 c per start avoided; 4 starts to 2 on the issue's night.
- Dynamic Pricing: slots at the same price are booked back to back (#571, #858): among slots of equal price the plan now prefers one next to a slot already booked, so the charge runs in one block instead of scattered quarter-hours. The price paid does not change.
- Dynamic Pricing: far fewer re-evaluations on an ordinary evening: the SOC-drop re-evaluation fired every 5 points below the SOC at the last evaluation, even when the battery was discharging exactly as the plan projected (up to 18 full re-plans from 100 % to 10 %). It now fires only when the SOC falls 3 points below what the plan projected for the end of the current quarter, which also catches a planned charge that did not happen (3 points were measured to catch a heavier-than-forecast house load as well as a dedicated consumption rule would, with far fewer re-plans).
- Dynamic Pricing: the plan notification speaks the new planner's language: with the new planner it no longer shows the previous planner's energy deficit, deadlines and "flexible" tags. Back-to-back quarters at one price are one line with their energy added up, and the plan's other decisions are listed too: when the battery is kept for later, the solar surplus to export, the sales with their power, and the solar charge delay. "Grid import is cheaper" is no longer a warning and names the arbitrage margin only when one is set. A plan that changes only these decisions is notified again.
- Dynamic Pricing: the plan notification is not repeated when the plan did not change (#690): every re-evaluation re-created it, so it kept popping up with the same slots. It is now sent again only when the slots, their energy, the reason or the title change.
- Dynamic Pricing: the price sensor is no longer re-read on every control cycle: the parsed slots were cached for one horizon at a time, and every cycle asked for at least two, so each call parsed the sensor again. They are now kept per horizon until the prices or the quarter-hour change.
- Dynamic Pricing: the plan notification names the Guaranteed Minimum SOC: a charge the floor booked read only "Price Optimization", even at a flat price; the title now says "Price Optimization + Min SOC floor".
- Real-Time Price: no full energy balance on every control cycle: while the price is cheap and no charge is needed, the last decision is reused until 5 minutes pass, the SOC moves 1 point, the price changes or a setting the plan reads is changed.
- ⚠️ Time Slot plans up to the next cheap window (#611): with several windows (say 02:00–06:00 and 12:00–16:00) the charge in a window was sized only for the load until midnight, so a sunny midday window skipped charging and the evening and the night until 02:00 ran on the grid. It now covers the load until the next window starts, never past the next sunrise, counting only the sun expected before then. A single window keeps the midnight horizon.
- Predictive charging on a new install assumes a daily use sized to the batteries: until a week of consumption has been learned, each missing day counted as 5 kWh whatever the home. It now counts as 80 % of the fleet's capacity (5 kWh while that is not known yet).
- Real-Time Price plans up to sunrise: a cheap period in the afternoon or evening now also covers the night, not only the load until midnight.
- Dynamic Pricing: the plan is no longer capped by the room in the battery when it is made: a battery that runs down before the cheap slots has more room when they start. A 60 % battery evaluated at 00:05 booked only its 2.05 kWh of room for 06:00, where 4.6 kWh fit, and a re-evaluation an hour later booked more. Every plan is now sized from what each hour needs and what fits when each slot starts, as it already was with tomorrow's prices published, and only energy worth storing after the round-trip losses is bought; that can include daytime slots for an evening peak. The notification's "Grid charge planned" now shows what the plan books, not the energy balance.
- Panel: every setting's tooltip states its default, in all six languages. Thanks to @anorakophobia
- Panel: settings grouped per feature and per device: the predictive charging card has one group per feature under three headings (Planning, Price-based charge & discharge, Grid sale), clearer labels, whole-cent price sliders, an "Automatic · …" line when a threshold's manual switch is off, and a status row (also on Weekly Full Charge). A feature's settings show only while it is on. The excluded devices card has one block per device in a fixed order. Thanks to @anorakophobia
Fixed
- A switched-off Venus A or D no longer reloads the whole entry every ~50 s (#934): its empty pack probes counted as an answer, so the other batteries were torn down on every cycle. Thanks to @vdiele and @anorakophobia.
- Zendure 3000/4000 Mix AC+: PV on the PV-IN AC port counts as solar (#529): it was read as grid charging or house load. With
pvacSwitchon,gridOffPower2is the battery's Solar Power and enters the system solar. If your Solar Production sensor already includes that inverter, take it out or it counts twice. - "Today" is Home Assistant's date, not the host's (#898): on a host in another time zone (Docker or Core without
TZ), PVPC prices, the daily totals and the stored Weekly Full Charge and Charge Delay state turned over at the host's midnight (PR#932). Thanks to @anorakophobia. - The options form keeps the limits set with the sliders: the battery limits step opened with old charge and discharge power (Zendure: old SOC limits too). Saving it lowered a Zendure to the old charge power, and on a Marstek v2/v3 a change made in the form was ignored.
- The charge of an observed or manually controlled battery is no longer fed by the others when the sun goes or an excluded device runs, and Maximum Grid Import counts it.
- Daily Operation: a quarter is coloured only when its action moves at least 2.5 Wh (#853): a minute at 56 W coloured the whole quarter, forecast and tomorrow included (PR#894). Thanks to @Sjoedzj.
- Peak Shaving: a "peaks only" threshold (at or above Max SOC) also holds a full battery (#913): at 100 % it covered the house for a point of SOC before holding again (PR#916). Thanks to @Couponslegrand.
- Summary: status rows of a switched-off feature read "Disabled": Predictive charging, Smart pre-discharge, Surplus price hold and Peak shaving reserve showed "Not running" whether idle or off; the entities keep their states (PR#930). Thanks to @anorakophobia.
- German: Weekly Full Charge and Charge Delay status read "Inaktiv" while idle, not "Bereit" (PR#929). Thanks to @anorakophobia.
- A battery under manual control charging from solar no longer makes the others charge from the grid: its charging was subtracted from the meter even with no import, and the controller answered to an export that did not exist. The mixed-fleet guards no longer subtract that charging twice, which blocked a discharge the house needed.
- Zendure: the charge no longer stops at mid SOC because of one high cell (#884): with Max SOC at 100 %, a cell at 3.60 V blocked charging until the SOC fell; a Zendure's own BMS decides the top now.
- Weekly Full Charge plans for a battery under the Temperature Charge Limit: the run was sized at rated charge power, so a battery the limit slowed down could miss its window. The plan now uses the power the limit allows and aims to be full a quarter of the run's time before the window closes (at least half an hour). Thanks to @anorakophobia
- Dynamic Pricing re-plans when the battery is above its plan too: with more stored energy than planned, the plan and the Daily Operation chart kept the old, earlier depletion until the next evaluation. 3 points above the line now re-plan (at most hourly, never during a charge slot).
- Relay cooldown no longer loops on a small leftover load (#909): at the end of a charge the hold raised a 15 W flow to the 100 W minimum, which restarted the cooldown and kept charging from the grid for hours; it now holds at most the power already flowing. Thanks to @jvanschie
- Dashboard: the Daily Operation chart is redrawn only when it changes: the Summary tab rebuilt the whole chart on every state change in Home Assistant (about once a second), which could freeze the browser tab, mostly on phones. It now redraws when the timeline itself updates (once a minute).
- Panel: two tooltips were wrong or missing: the excluded devices' Enabled switch showed the setup form's text, and the "Re-evaluate now" button never showed its help (it now does on hover, and an info mark opens it on touch). Thanks to @anorakophobia
- Zendure: grid charging works with a load on the off-grid port (#882): with the port in normal or economy mode, the firmware ignored the charge command and only fed the off-grid load. Charges are now sent in manual mode while the port is on (the device may save them to flash), and the panel explains it next to Off-grid mode. Thanks to @gew55
- Dynamic Pricing: the plan's holds no longer lapse from 00:00 to 00:05: the midnight reset dropped the holds the planner had decided for the night (the weekly charge's too) and its solar delay until the 00:05 evaluation, so a battery kept for the morning peak could discharge in the night's cheapest quarter. A plan that reaches past midnight now keeps them until 00:05. Thanks to @anorakophobia
- Anker: combined units on one IP can use their full power (#646): the driver capped every Anker at 3500 W; you can now raise Max charge/discharge power up to what the system reports (at most 14000 W). The default stays 3500 W. The ceiling keeps the highest value the system has reported, so it no longer drops when the battery temporarily lowers its limit.
- Hoymiles efficiency measures the battery's DC side from voltage x current (#625): it no longer reads about 100 %.
- Anker's battery-side counters no longer feed the arbitrage efficiency (#706): the default 0.85 or your own value is used.
- Efficiency shows unknown instead of 100 % (#613) when the lifetime counters don't add up.
- Prices and schedules follow Home Assistant's time zone (#898): on installs whose system clock is on UTC (a Docker container without TZ, for example) the current price slot was one or two hours off, in the notification and when charging started; "now" is now read in Home Assistant's time zone.
- Manual battery control can be turned off with RS485 control off (#895): the switch no longer fails with "Could not leave safely idle" when the battery's RS485 control mode is off, because there is nothing to write and the battery is already under its own app.
- PD no longer stays idle while importing just above the Direction Hysteresis (#849): with the battery idle and the grid import hovering around that threshold, the hysteresis kept resetting the direction-flip hold timer, so the discharge never started; the timer now survives those cycles.
- Daily Operation: the forecast SOC starts at the live SOC and rises with the drawn sun: in Dynamic Pricing the line came from the last plan's own levels, so hours after an evaluation it jumped from the live SOC to a far lower one, and with the solar safety margin eating the day's sun it stayed flat under a sunny forecast. It now replays the plan from the live level and adds back the sun the margin took off.
- Real-Time Price: a load above the battery's discharge power no longer zeroes the planned charge (PR#845): the load the grid carries came off the room-capped charge instead of the deficit, so a long horizon booked 0 kWh while the battery still ran empty. Thanks to @pocketware.
- A battery tapering on cell voltage below 99 % is no longer marked non-responsive (PR#871): the top-of-charge grace now also opens with the top cell in the taper zone, the same gate as the BMS-cutoff detector (a Zendure 2400 AC+ fell to 190 W at 97 % and was excluded twice). Thanks to @anorakophobia.
- A Repair raised before a restart is cleared once the fault is gone (PR#851): a non-delivering battery, a degraded phase sensor or a missing configured sensor came back after a restart and was never deleted. Thanks to @sphings79.
- Forecast.Solar periods keep their full hour (#855, PR#856): the sunrise and sunset keys no longer shrink every Energy dashboard period to a few minutes, so the solar curve is no longer rejected (
provider_coverage), drawn as a sawtooth, or put into each hour's first quarter by High-Price Sale. - Dynamic Pricing: the 00:05 plan also looks past tomorrow's sunrise when tomorrow's prices are already known: with a feed that always holds tomorrow (a fixed-tariff template), the 00:05 plan stopped at midnight and the first re-evaluation, planning across tomorrow, could drop a charge already running. The predictive sensor keeps a plan's timeline diagnostics when it covers tomorrow.
- Solar Forecast Safety Margin applies to each day: a plan that also covers tomorrow took the margin once off both days' sun, so today kept most of its forecast and less was charged for it. Each day now gives up its own margin, at most its own sun.
- Dynamic Pricing: the new day is reset before any re-evaluation: with a feed that always holds tomorrow, the "tomorrow's prices published" re-plan ran at 00:00, before the 00:05 plan, and the midnight reset was skipped for the whole day (daily re-plan limits and runtime state carried over). It now waits for the day's own evaluation.
- Dynamic Pricing: "Solar forecast · 00:05" is today's forecast only: a re-evaluation just after midnight that plans into tomorrow stored today's and tomorrow's sun together (14.62 kWh shown for a 5.48 kWh day), and the learned solar profile used that sum as the day's reference.
- Daily Operation timeline: the forecast half no longer goes blank with Discharge Reserve on: with the new Dynamic Pricing planner holding the battery, the projection failed on a time-zone mismatch, so the chart showed nothing after "Now" and the warning "Data may be outdated: The live data could not be updated".
- Daily Operation timeline: a Time Slot window is drawn as the battery behaves in it: the chart showed the battery idle and the SOC flat through every charging window, as if nothing happened overnight. Inside a window the battery spends what is above the energy needed after it and holds only below that, and the chart now draws the same: discharge down to that level, then the grid. For a window that has not opened yet the level is the one the control will compute when it opens, so tomorrow's window is planned up to the sunrise after it; its previewed grid charge can change with that. The quarters in which the integration blocks discharge to keep the stored energy for later (a Time Slot window, Discharge Reserve, the weekly charge holds) are now hatched and labelled Battery held in reserve, in the legend too, instead of looking like a gap.
- Daily Operation timeline: the solar forecast is drawn without the safety margin: the chart showed the forecast minus Solar Forecast Safety Margin, so the line sat far below the provider's forecast and went to 0 for tomorrow morning whenever the margin exceeded that morning's sun. The margin is a cushion for the charge decisions: the planned grid charges still use it, the chart now draws the forecast itself and projects the battery level with it. With Dynamic Pricing the battery level stays the plan's own. The "no solar forecast left" notice follows the drawn forecast too, so it no longer shows while the margin exceeds the remaining sun.
- Daily Operation timeline: the house forecast no longer drops to 0 while the battery is held: wherever the plan keeps the battery from covering the house (a Time Slot window, a no-discharge window, a price-blocked slot, a peak-shaving hold, a load above the discharge power) the chart drew only what the battery would deliver as the home consumption. It now draws the forecast house load and sun, with the rest of the load on the grid; the projected battery level is unchanged.
- A battery that is not a Marstek no longer follows a stored Marstek version: after switching a battery slot to another brand, a leftover Venus model or serial port no longer changes its SOC decimals, DC PV input, balance cutoff or IP tracking; the Time Slot power sliders of other brands go up to their own configured maximum instead of 2500 W; and setup no longer writes a Marstek version into every battery.
- Dynamic Pricing: the planner no longer sells at a negative export price: in a long negative-price window it could sell the battery and the sun at a loss to make room for charging; exports at a negative price stay with Smart Pre-Discharge.
- Dynamic Pricing: a charge with sun in the same quarter is no longer judged dear: the arbitrage margin, and with Negative Price Charging off the negative price counted as 0, were applied to the solar energy stored during the charge too, so profitable or free top-ups were skipped. They now count only the energy bought from the grid.
- Dynamic Pricing: a plan with no grid charge re-plans when the battery falls behind it: when the new planner booked no charge (only sales or holds, or nothing), its expected battery path was lost and the SOC-drop re-evaluation fell back to the old rule, so a short sun was not caught until the evening.
- Dynamic Pricing: an energy balance that looks sufficient no longer vetoes the plan: the balance nets the day's sun against the night, so on a sunny day it decided "no charge" even when the battery ran empty before sunrise and the plan wanted a cheap top-up at night (0.52 kWh in one case). The plan now always decides.
- Dynamic Pricing: a charge limited by the room or by the charger no longer stops short: the plan takes off the house load the grid carries while a slot charges, as if the slot stopped early. When the room or the slots' power had already capped the charge, that left the battery part empty (3.3 of 4.6 kWh at midnight in one case) for hours where storing still paid, and more house load trimmed more. The trimmed energy is now kept where it fits and those hours repay it.
- A grid-charge slot no longer raises the import peak it regulates (#683): a slot started at the full limit on top of the house load and the first correction pushed it higher. It now starts with the headroom the house leaves, waits for the meter to show the new charge before steering, hands over to peak shaving after 2 fresh samples when the house alone is above the limit (a contracted-power overload still needs 3), and drops the minimum charge to 0 W while the grid is above the limit.
- Real-Time Price: the charge kept running unregulated when the price threshold disappeared: with the average price sensor unavailable and no fixed threshold, or the manual threshold cleared mid-charge, the batteries stayed on their last command. The charge now stops, as it does when the price itself is missing.
- Real-Time Price: charges again later in the same cheap period: once the target was reached nothing re-evaluated until the price rose and fell again, not even at midnight, so a battery drained by the house during a long cheap period stayed empty.
- Weekly Full Charge: reserved slots no longer vanish when Smart Pre-Discharge finds a curtailment risk window: re-selecting the deficit slots around the window dropped the weekly ones, and on a day with only the weekly charge it booked the pre-dawn slots instead. Weekly slots inside a risk window are still left out and are not moved elsewhere.
- Dynamic Pricing: the daily average price covers the whole day (#569): it was the average of the hours left (plus tomorrow's up to the planning horizon), so the automatic discharge threshold changed with the time of the evaluation and after a restart. Providers that publish only future prices keep the previous figure.
- Discharge Reserve: no longer holds back energy for sun it lost in the afternoon: once it also looked at tomorrow, today's remaining solar forecast was spread over tomorrow's daylight hours too (at 14:00 only 0.06 of 0.6 kWh stayed on today), so the reserve held more than it needed. A remaining-today figure now stays on today.
- Discharge Reserve: follows the Peak Shaving hold: while peak shaving holds the battery, the grid carries the load below the limit until sunrise, as the charge plan already assumes. The reserve counted the whole night's load and held about 2 kWh too much.
- High-Price Sale could sell energy the house needed before sunrise: with a remaining-today solar forecast, the price features that look only a few hours ahead (High-Price Sale, Discharge Reserve, Surplus Hold, curtailment) put all of today's remaining sun into those hours. At 03:05 with 2.8 kWh forecast, the sale counted 2.3 kWh of sun before 08:00 and protected about 0.75 kWh less of the night. Each hour now gets only its own share of today's sun, and tomorrow's hours none of it.
- High-Price Sale counts the same sun as the charge plan: it shaped the solar forecast on its own and did not take off the sun an excluded device (an EV, for example) will use, nor the Solar Forecast Safety Margin for every sale, so it could sell energy the house needed later. It now reads the charge plan's solar projection.
- Charge Delay: the sun an excluded device takes no longer counts toward filling the battery: with an EV charging from the sun, the delay kept waiting for solar that was going to the car, so the battery could stay short. The excluded device's claim now comes off the forecast in its balance.
- Surplus Hold: daytime household load follows the learned profile: it spread the remaining load evenly over the daylight hours and counted part of the night's load as daytime load, so with a home that uses more during the day it believed the battery could still take sun it could not, and could export sun the battery needed.
- Smart Pre-Discharge: the night load comes from the learned profile: it assumed an even house load before the risk window (0.62 kW where the profile said 0.30 kW), so it counted on making room the house could not absorb and solar was clipped.
- Negative-price charging: a moment with no battery available no longer drops the plan: if every battery was briefly unavailable (no data, manual mode, not responding), the negative-price slots were read as done and deleted, and a paid-to-charge window could pass before a re-evaluation brought them back.
- Negative-price charging on a Weekly Full Charge day plans to 100 %: the battery charged towards 100 % but the plan sized and ended the negative-price charge at the normal maximum SOC.
- A failing charge planner is no longer silent (#365, #678): when the chronological planner hits an error, predictive charging still falls back to booking the cheapest hours, but it now raises a Home Assistant repair issue and logs the error once with its trace. The issue clears itself when the planner works again.
- Predictive charging kept the old plan after three more changes: moving the discharge price threshold, switching price-based discharge control, or switching a fleet-wide No-Discharge Time Slot on or off now re-plans; the plan projects the battery idle in those hours.
- Dynamic Pricing: a night re-evaluation no longer drops the charge for the morning peak (#834): the hours left to the grid before the peak drain the stored energy, and that drain was checked against each night slot alone, which none could hold, so the plan booked 0 kWh. Night slots charged back to back now pay it once, as a group. Thanks to @Varashi for the analysis and approach.
- Dynamic Pricing: the plan sees tomorrow morning without a dated solar forecast (#834): with tomorrow's prices published but no dated solar periods (a template forecast sensor, for example), the plan stopped at sunrise and never saw the morning peak. With a mature learned solar profile, tomorrow's sun is taken from it (its shape, scaled to the median of recent days) and the plan covers tomorrow like a dated forecast; without one, the plan runs to tomorrow's solar noon counting no sun for tomorrow. A dated forecast of 0 kWh for tomorrow now counts as a forecast.
- Dynamic Pricing: a night charge no longer books more than the battery holds: with tomorrow's prices published, each night slot was checked against the room it had when it opened, not against the slots booked after it, so a run of back-to-back slots could book several kWh with nowhere to go (7.5 kWh for a 4.6 kWh battery). The extra slots charged nothing while the plan, its cost and its notification counted them.
- Removing an excluded device no longer leaves orphaned entities behind (PR#927). Thanks to @anorakophobia.
- Huawei: the backup power SOC (47102) is a discharge floor: the floor, plan and Charge Delay use the higher of it and the minimum SOC; new diagnostic Backup Power SOC sensor (PR#852). Thanks to @sphings79.
Internal
- The pricing engine reads the time from one injectable clock, and reported nights run as data-file regression scenarios (
tests/scenarios/). - The inputs of the chronological charge planner (consumption shape, solar timeline, idle intervals, Time Slot windows, fleet state, weekly reservation, guaranteed floor) are pure functions in
pricing/plan_inputs.py. - An invariant sweep holds the Dynamic Pricing planner to rules over a grid of generic nights (more load never books less, the published charge matches the slots, a re-evaluation keeps the plan, nothing is booked without room):
pytest -m sweep -n auto, run by the.githooks/pre-merge-commithook when a merge touches the predictive code (git config core.hooksPath .githooks). Known findings, with their reason, live intests/sweep_known.json. - Tests: a hung test fails after 5 minutes (
timeout = 300), and the pre-merge hook runs one sweep case in eleven (OMNI_SWEEP_SAMPLE=11, under a minute);pytest -m sweep -n autostill runs them all.