Skip to content

Releases

v1.2.0-beta.8

v1.2.0-beta.8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Nov 19:13
07a4b86

Highlights

  • Push notifications: BattMind can now send messages to your phone (or any notify service) about problems, storm warnings, what it has learned and a daily summary of tomorrow's plan
  • A tidier analysis page: the analysis is grouped under headings (Results, The plan, Forecasts, Battery)
  • Hindsight scores of older days are kept: days scored by an older version are shown with 🔄 instead of being hidden

⚠️ Before you update

  • Push notifications are off until you choose a service. Nothing is sent unless you pick one or more notify services or entities under Configure → Push notifications. The notify_list of the PyScript version is not imported.
  • Older hindsight scores are shown again. A day scored by an earlier version of the score appears in the table with 🔄, using that version's formula. These days can't be compared with newer ones and are not part of the 30 day figure.

✨ New

  • Push notifications (Configure → Push notifications). Choose the notify services or entities under Send through (for example notify.mobile_app_<phone>). With none chosen (default) nothing is sent. The messages use the language you chose for BattMind, and BattMind only informs: it controls nothing. All four categories are on by default:
    • Problems: battery level lost, the plan is not followed, sensors missing, house consumption frozen, sensors unavailable, the battery stopped by its temperature, and BattMind failing to start, to calculate the plan or to save the charging history. A message follows when the problem is over.
    • Storm warning: a storm warning is coming or going on, and when it is over.
    • Learning finished: once each when the consumption forecast, the efficiency curves and the measured capacity are ready.
    • Daily summary: once a day, a summary of tomorrow's plan (grid charging, sale and the battery level now), sent at the end of the first hour from Send the summary from (hour) in which tomorrow's prices are known. It shows no savings.
    • A message is sent when something changes, never on a timer. What was sent is remembered after a restart, and a message that could not be delivered is tried again until a service takes it. Missing or unclear data never says a problem is over.
    • What is already learned when you turn the messages on is not announced.

🔧 Improvements

  • The analysis page is organised in groups with headings: Results, The plan, Forecasts and Battery, then the history. Empty groups no longer show a heading.
  • A day recorded by an older version is now explained as such in the list of days without a score, and the table has a note explaining 🔄.

What's Changed

  • Add tests for push notifications and health checks in BattMind by @dezito in #153
  • Refactor analysis scoring and enhance dashboard rendering by @dezito in #154

Full Changelog: v1.2.0-beta.7...v1.2.0-beta.8

v1.2.0-beta.7

v1.2.0-beta.7 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 25 Nov 21:37
627edbc

Highlights

  • More solar forecast sources: besides Solcast, the Solar forecast field now also accepts Forecast.Solar and Helios Forecast
  • Measured battery capacity: the analysis page shows what your battery really holds per 100 % of level, and the plan can optionally count on it
  • A fairer hindsight score: the score now compares the day with a battery that ends the day at the level it started, so energy left over for tomorrow is neither a gain nor a loss

⚠️ Before you update

  • The hindsight score is calculated in a new way. Scores of days recorded with the older model are hidden, and the hours cannot be calculated again. Expect the score of single days to look different, and to jump more from day to day. The 30 day figure adds saved and possible over all days.
  • Days without a score are now explained. More days can get no score (a missing hour, a lost sensor, a price that is not a real price, an unmeasured battery level, energy that doesn't add up, or the 25-hour day). The dashboard lists them with the reason.
  • Using the measured capacity is off by default (Use measured battery capacity under Settings → Control). Nothing changes in your plan unless you turn it on.

✨ New

  • Forecast.Solar and Helios Forecast as the solar forecast (Configure → Solar panels, Solar forecast). Pick any sensor of the integration; BattMind reads the hourly forecast the integration gives the Home Assistant Energy dashboard.
    • Forecast.Solar roof planes that are in the same solar source of the Energy dashboard are added up. An hour that one plane doesn't cover gets no forecast, never half of one.
    • Hours the forecast doesn't cover, or that are missing or invalid, are planned from the weather forecast and the stored solar history. An hour with neither counts as no sun.
    • The Solcast repair and the solar forecast line in the price charts apply only to Solcast. If no forecast can be read, the log has a warning with the reason (see the troubleshooting page).
  • Measured capacity on the analysis page, below the efficiency table: kWh per 100 % of battery level from charging (an upper bound) and from discharging (a lower bound), the round trip of the runs and a short verdict. A bound is shown from 3 runs per direction.
  • Use measured battery capacity (Settings → Control, off by default, also above the table): when on, and only when charging clearly shows less than the configured size (more than 5 % below, with runs in both directions), the plan uses the measured charging figure, rounded down to 0.1 kWh, instead of the configured battery size. It is never larger than the configured size, and a figure under half of it is not believed. Used now shows what the plan counts on. With a measured efficiency curve in use, the configured size stays.
  • Days without a score are listed below the score table with the reason.

🔧 Improvements

  • The hindsight score now reads saved ÷ possible. Ignored consumers and Cable Juice Planner chargers (also on their own meter) are left out, and so is the battery's standby use, so they are no longer counted as a sale or blamed on the plan. A best possible plan scores 100 % whatever level the day ends at.
  • Days whose possible saving is only rounding show – instead of a score.
  • The battery level a charged kWh is worth, its cost and its age now follow the battery size in use right away.
  • The solar forecast accuracy table on the analysis page names the forecast integration you selected instead of always "Solcast".

What's Changed

  • Add tests for solar forecast sensors by @dezito in #150
  • Refactor scoring explanation and improve documentation by @dezito in #151
  • Add measured battery capacity feature and enhance calculations by @dezito in #152

Full Changelog: v1.2.0-beta.6...v1.2.0-beta.7

v1.2.0-beta.6

v1.2.0-beta.6 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Nov 21:05
dfa804f

Highlights

  • Storm warning (optional): BattMind can keep the battery charged for a MeteoAlarm storm warning, in the cheapest hours before the level is needed
  • Full charge now and then: for LFP batteries that need to reach their maximum level regularly, BattMind plans a 💯 full charge in the cheapest hours
  • Charging power by battery level: the plan learns that your battery charges more slowly when nearly full and no longer counts on the full charge rate all the way up
  • The sun in words: the dashboard overview now describes the sun's surplus for today and tomorrow in one sentence

⚠️ Before you update

  • Charging plans can change after a few days of measuring. Learn charging power by battery level is a new setting and is on by default. When BattMind has measured that your battery charges more slowly at high levels, charge hours that asked for more than the battery takes are cut, and the reason of the charge says so. Without enough measurements nothing changes. Turn the setting off under Settings → Control if you want the configured charge rate used all the way.
  • Full charge is off by default (Recommended full charge every = 0). If you set it, BattMind charges to the maximum level even when it doesn't pay, ignoring Min. profit per kWh. If your battery needs 100 %, set the maximum level to 100 %.
  • Storm warning needs a backup power supply to help. Without one, the house is cut off in a power cut and a full battery does not run it. It is off until you choose a warning entity.

✨ New

  • Storm warning (Configure → Solar panels, weather and storm warning → Storm warning): choose MeteoAlarm's binary sensor in Storm warning (MeteoAlarm) and set Lowest level that counts (2 = yellow, 3 = orange (default), 4 = red). Only wind, snow/ice and thunderstorm warnings with a start time count. The plan keeps a battery level for the hours of the warning (expected house use with no solar plus a buffer of at least 20 %), sells nothing under it, and charges in the cheapest hours. If the level can't be reached in time, the battery is charged as high as possible.
    • Adds a Storm warning section on the dashboard, sensor.battmind_storm_warning and Hours a storm warning without an end time covers (1–72, default 12). Clearing the option removes them again.
    • Charges and holds for the storm are marked 🌪️ and can't be turned off by a rule switch.
  • Full charge (Recommended full charge every, 0–60 days, default 0 = off, and Last full charge): when more days than the number have passed since the battery last reached its maximum level (minus 1 %), a 💯 grid charge is planned in the cheapest hours before the end of tomorrow (today when a day overdue). Solar still goes first. If the battery can't get there in time, the overview says so and drops it. Hidden when grid charging is unsupported. Not part of the what-if simulator.
  • Learn charging power by battery level (Settings → Control, on by default): BattMind measures how the charging power falls per 10 % battery band, only from hours that proved a grid charge, and the plan counts on it. Details are in efficiency_curves.taper in the analysis attribute of sensor.battmind_analysis. Measuring continues when the setting is off. The what-if simulator doesn't use it.
  • The sun in words: with solar configured and Solar surplus charging on, the overview has a sentence for today and tomorrow below the solar surplus table: how much surplus the sun gives and when, when the battery is full, and how much does not fit. It is text only and doesn't change the plan.

🔧 Improvements

  • Charge hours cut by the measured charging power show the reason ("Limited to … kWh: the battery charges more slowly when it is nearly full").
  • The plan that holds back solar charging to sell the sun no longer counts on the sun refilling the battery faster than the slowest charging band takes.

What's Changed

  • Add solar surplus text generation and localization by @dezito in #147
  • Add tests for storm warning functionality in BattMind by @dezito in #148
  • Add charging power measurement by battery level by @dezito in #149

Full Changelog: v1.2.0-beta.5...v1.2.0-beta.6

v1.2.0-beta.5

v1.2.0-beta.5 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:13
9e02e3a

Highlights

  • Cable Juice Planner cars with their own charger meter are handled correctly: a charger that the house consumption sensor does not measure is no longer subtracted from the consumption forecast
  • Clearer automation test: Test my automation now lists every step from the start, shows its progress, and tests Stop battery last, after making the battery move

⚠️ Before you update

  • Cable Juice Planner users with a charger on its own meter: if a car has House consumption includes this car's charger turned off in Cable Juice Planner, BattMind now leaves that charger out of the subtraction. Don't add it under Ignored consumers either. If your home battery also supplies such a charger, the consumption forecast will be too low for it; use a house consumption sensor that includes the charger in that case.
  • Automation test order has changed: Stop battery is now the last step instead of coming after Forced discharge. If you have used the test before, expect the new order.

✨ New

  • Progress in the automation test (Test my automation under Settings): the table lists every action from the start (⏳ waiting, ▶️ testing now) and gives each its result when done (✅ worked, ❌ the battery did not react, 🔧 not tested). A line above the table shows how many actions are done. sensor.<prefix>_automation_test has the new attributes plan (every step) and current (the step measured now).

🔧 Improvements

  • Stop battery is tested last, and proven properly: a stop can only be proven by a change, so when the battery stands still just before it, the test first publishes Forced discharge (or Charge from grid) for up to 5 minutes until the battery moves. If it still doesn't move, the step is shown as not tested with that reason.
  • Chargers on their own meter follow later changes: BattMind reloads once when you change House consumption includes this car's charger on a Cable Juice Planner car (while Ignore Cable Juice Planner chargers is on), so the consumption forecast is right without a restart. Such a charger still counts for the check for a charger that hangs.
  • Documentation: new feature overview, comparison and reference pages, a shorter README, and a note in the setup docs about the Diagnostic file log option and the Database page.

What's Changed

  • Enhance handling of chargers with own meters in Cable Juice Planner integration by @dezito in #143
  • Add automation test enhancements and multilingual support by @dezito in #144
  • Add GitHub Actions workflow for testing and enhance documentation by @dezito in #145
  • Adjust eager start behavior in automation test task and clean up debug replay docstring by @dezito in #146

Full Changelog: v1.2.0-beta.4...v1.2.0-beta.5

v1.2.0-beta.4

v1.2.0-beta.4 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:32
1ea46d5

Highlights

  • Energy dashboard suggestions in setup: the solar power and battery power fields are pre-filled from the Home Assistant Energy dashboard when you set up BattMind
  • Two price integrations with different intervals now work correctly together: for example an hourly Strømligning price next to a 15 minute Energi Data Service price no longer makes the first quarter of every hour look falsely cheap

⚠️ Before you update

  • Home Assistant 2025.12 or newer is now listed as the requirement (it was 2025.1).
  • Planned charging with mixed price intervals can change. If you use Strømligning and Energi Data Service together, check your charging plan after updating: the plan now follows the hourly price over the whole hour instead of picking up the other provider's quarters inside it.

✨ New

  • Energy dashboard suggestions: when you set up BattMind, the solar power and battery power fields are pre-filled from the Energy dashboard. A field is filled only when the dashboard has exactly one solar source or one battery source with a power sensor, and not when another BattMind entry already uses that sensor. They are only suggestions: you can pick another sensor, or clear the solar field (the battery power field is required). For an inverted or two-sensor battery, the battery field gets the sensor that the Energy dashboard generates for it, which disappears if the Energy configuration is changed. The battery sign is still read from the recorder, and a restored backup or a PyScript import wins over the suggestions.

🔧 Improvements

  • Different price intervals are merged on one common interval: BattMind uses the finest interval all your price integrations fit on (for example 15 minutes for hourly plus 15 minute prices). A price that covers a longer interval is repeated over every slot of it, and each slot gets the price of the first provider that has one (Strømligning before Energi Data Service, real prices before forecasts).
  • Missing prices are never filled with an earlier price: a slot a provider left out gets the next integration's price, an hour with no price at all gets its price from the price history, and otherwise it has none.
  • Charging in an hour with an hourly price: the Cheapest hours charging rule now books all periods of an hour that share the same price together, so the hour is planned as a whole.

🐛 Fixes

  • Fixed the plan seeing a falsely cheap first quarter of the hour, and planning only 15 minutes of charging per hour, when an hourly price and a 15 minute price from different integrations were combined.
  • Fixed the overview showing charging session periods with the wrong length when prices have different intervals.

What's Changed

  • Implement energy dashboard sensor suggestions and update documentation by @dezito in #141
  • Refactor price handling and interval management in BattMind by @dezito in #142

Full Changelog: v1.2.0-beta.3...v1.2.0-beta.4

v1.2.0-beta.3

v1.2.0-beta.3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 21:31
c7d0e8b

Highlights

  • New repairs for wrong value scales: BattMind now warns when a power sensor without a unit looks like kW, when the battery level looks like a share (0–1) instead of a percentage, and when a price sensor is in a subunit, per MWh or per Wh
  • New repair for a frozen house consumption sensor: raised when the sensor has shown the same value for 6 hours
  • Better Test my automation: Discharge allowed can now be proven after a sale, and Stop battery with no steps gets a clearer explanation

🔧 Improvements

  • Value scale repairs: these only inform, they change nothing and convert nothing, because your own automation may read the same sensor.
    • Power sensors without a unit: a power sensor without a unit is read in W. The repair is raised when its values over the last 3 days stay at 50 or below with decimals, which looks like kW.
    • The battery level looks like a share: raised when every battery level value of the last 3 days is between 0 and 1 with decimals (0.85 would be read as 0.85 %, not 85 %).
    • Prices in a subunit, per MWh or per Wh: judged by the price sensor's unit only. The prices would be 100 or 1000 times too large or too small.
  • House consumption sensor shows the same value: the repair names the sensor, the value and since when. It appears 6 to 7 hours after the last change and goes away when the sensor shows another number. A restart keeps the repair and its time. Only the house consumption sensor is checked. If the value really stays the same, ignore the repair.
  • Missing sensors repair: a sensor that is enabled and in the entity registry is no longer counted as missing when its state is unavailable or unknown. Two minutes after each start, BattMind lists configured sensors that are still unavailable in a persistent notification. A house consumption sensor that stays unavailable also gets a persistent notification.
  • Test my automation, Discharge allowed: the step is now also proven when the battery was still selling just before (after Forced discharge, if Stop battery did not stop it). The sale must end and the battery must feed the house. If most of the sale continues, the step fails with a message that the forced discharge was not ended (check for a missing stop_forcible_charge or a forced mode that runs for a set time). A battery that only gives a little more than the house uses after the sale ends is shown as not proven.
  • Test my automation, Stop battery: when your automation has no steps for it, the result now explains that BattMind only sends it as a safety stop for a battery temperature that is too high, too low or unknown. With a temperature sensor chosen it warns that your automation does not stop the battery. Without one it says no steps are needed.
  • Texts and translations (Danish, German, English, Polish, Ukrainian) were updated for the new messages.

What's Changed

  • Add tests for BattMind integration and consumption frozen repair by @dezito in #140

Full Changelog: v1.2.0-beta.2...v1.2.0-beta.3

v1.2.0-beta.2

v1.2.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 15:00
a755409

Highlights

  • Clearer Test my automation results: a step skipped because of the battery level now says whether the battery is too full or too empty
  • Faster tests: steps that can't prove anything right now are skipped in seconds, before their action is published
  • Better error display during a test: the test message stays visible when a calculation fails

🔧 Improvements

  • Skip reasons in Test my automation: a step that is not tested because of the battery level now tells which limit it hit. Too full means close to its highest level; too empty means close to its lowest level or the reserve for the house. Results saved before this update still say "too full or too empty".
  • Test duration: steps that can't prove anything right now (battery too full or too empty, no house load or solar surplus, battery already doing what the action asks, a car charging, a sensor without a number, an action the inverter can't run, or no steps in your automation) are skipped in seconds. A whole test now takes from a few seconds to about 30 minutes: about a minute for every step that works and up to 5 minutes for every step that fails.
  • Test and error display: while a step runs, sensor.<prefix>_current_charging_rule shows 🧪Testing your automation: … with the step's action, also when a calculation fails during the test. The error is then shown on the line below.
  • Translated calculation errors: the error shown in sensor.<prefix>_current_charging_rule when a calculation fails ("Error: …") is now translated instead of always Danish.
  • Texts and translations (Danish, German, English, Polish, Ukrainian) were updated for the new messages.

What's Changed

  • Add comprehensive translation parity tests and enhance documentation for contributors by @dezito in #138
  • Enhance automation test logic and update translations by @dezito in #139

Full Changelog: v1.2.0-beta.1...v1.2.0-beta.2

v1.2.0-beta.1

v1.2.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 09:07
2b38669

Highlights

  • Test my automation: one switch publishes each BattMind action in turn and shows which ones your battery actually follows
  • Plan check: BattMind now measures whether the battery did what the action asked, hour by hour, and raises a repair when it clearly doesn't
  • Health repairs: repairs for disabled or missing sensors, sensor units BattMind can't read, and a switched-off blueprint automation
  • New inverter pages: SolarEdge, Deye and Sofar

⚠️ Before you update

  • Blueprint update: the bundled blueprint now also accepts EV charger power sensors in kW (e.g. Easee) and ramping chargers; Car started charging and Car stopped charging now trigger only when the power crosses the EV threshold. If you want this, update the blueprint when Home Assistant offers it. Your own automation is never changed.
  • Repairs: you may see new repairs after the update (disabled/missing sensors, unreadable units, a blueprint automation that is off, or a battery that does not follow the plan). They only inform; none of them controls anything. Check the details they list. A repair you ignore stays hidden until the problem is gone.
  • Plan check after turning on your automation: hours from before the automation was on count as mismatches for 14 days. Look at latest_mismatches and the hours since you turned it on.
  • Test my automation moves the battery: it charges the battery from the grid and discharges it to the grid for a few minutes, and the energy counts in that hour's history. Run it only when that is fine for you.

✨ New

  • Test my automation: turn on Test my automation under Settings on the dashboard (switch.<prefix>_automation_test_run). BattMind publishes the actions on sensor.<prefix>_powerwall_action one after the other, measures what the battery does and shows a table of results (sensor.<prefix>_automation_test, attribute markdown). Each action is marked ✅ worked, ❌ the battery did not react or 🔧 not tested, with the reason. Turning the switch off stops the test and BattMind's own action is published again. The result of the last finished test is kept over a restart.
  • Plan check: the attribute plan_check of sensor.<prefix>_powerwall_action shows, for the last 14 days, how many hours were judged, matched or skipped (checked_hours, matching_hours, skipped_hours, match_percent) and the three latest mismatches (latest_mismatches). It only observes: it never sends a command or changes the plan. Hours that can't prove anything (battery at a limit, missing data, an action that changed, a test, a car charging) are skipped.
  • Repairs (Settings → System → Repairs):
    • Sensors BattMind uses are disabled or missing
    • Sensor units BattMind can't read: power sensors must be in mW, W, kW, MW or GW, the battery level in %
    • The automation made from the BattMind blueprint is off: only after BattMind has seen it on
    • The battery does not follow the plan: raised when at least 24 hours were judged, at least 6 did not match and fewer than 80 % matched
  • Inverter pages: SolarEdge, Deye hybrid (Solarman) and Sofar hybrid (Solarman). They are checked against the integrations' source code, not tested on an inverter, so try each action by hand first.

🔧 Improvements

  • Blueprint EV detection: EV chargers power sensors can report in W or kW, and the blueprint reacts only when the power goes above the threshold, so a charger that steps up or wobbles while charging counts as one start.
  • Removal: removing the integration now also removes its health-check data and its repairs.
  • Texts and translations (Danish, German, English, Polish, Ukrainian) were added for the new features.

🐛 Fixes

  • An EV charger whose power sensor reports in kW was not detected as charging by the blueprint.

What's Changed

  • Add workflow to delete beta releases with optional dry run and tag deletion by @dezito in #132
  • Add Stromligning price comparison dashboard and update inverter documentation by @dezito in #133
  • Add comprehensive tests for plan check functionality by @dezito in #134
  • Enhance automation test logic with multilingual skip reasons by @dezito in #135
  • Fix EV charging detection and improve code structure by @dezito in #137

Full Changelog: v1.1.0...v1.2.0-beta.1

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 13:01
9dbdcc5

Highlights

  • Setup suggestions from your history: BattMind reads the recorder and suggests the battery power sign and whether the house consumption includes charging and discharging
  • Cable Juice Planner chargers are left out of the house consumption automatically, so your EV doesn't end up in the consumption forecast
  • What-if simulator on the dashboard: a What-if tab with entities, progress bar and results, no custom card
  • More accurate analysis: energy per hour is measured more carefully, so a sensor that blinks no longer counts as hours of charging

⚠️ Before you update

  • Days to plan now defaults to 7 (was 3). This applies to new setups; check Days to plan under Advanced if you want to keep a shorter plan, as more days cost more CPU and rely on price forecasts.
  • Testing mode is removed, and the 🧪 marker in the current rule is gone with it.
  • Timer Bar Card: the dashboard now also needs the HACS card timer-bar-card (for the what-if progress bar). If a card is missing, a notification lists it with a link.
  • Ignore Cable Juice Planner chargers is on by default. If your house consumption sensor does not include the chargers (e.g. a separate meter), turn it off, otherwise consumption that was never there is subtracted from the forecast.
  • Analysis history: older days are checked against Home Assistant's long-term statistics. If the charged or discharged energy of a day differs by more than 0.25 kWh, its energy sums are replaced and the score of that day is removed, because it cannot be calculated again. The charging history of the last 48 hours is also measured again once. Older charging history is not changed.
  • Edited dashboards: a dashboard you have edited in the UI is not changed. Press Reset dashboard to get the new content.

✨ New

  • Check the battery and consumption settings: the last page of Configure → Home battery and House consumption suggests Invert power flow and whether the consumption includes charging and discharging, with the numbers it used. Tick Detect again to look again. What the history can't decide is left unchanged.
  • Ignore Cable Juice Planner chargers (Consumption page, on by default): BattMind subtracts the charger power of your Cable Juice Planner cars from the house consumption, also for cars added later. A charger that is also in Ignored consumers is only subtracted once. A charger that has not reported for over 30 minutes while it still shows a number other than 0 is treated as stuck and not subtracted; a warning is logged.
  • What-if tab on the dashboard: set history days, battery size, a range of sizes, battery modules and the scenario's rules and settings with entities; start with the Run simulation switch (turn it off to cancel) and follow the progress. Reset to current clears the scenario values. The status is in sensor.<prefix>_what_if_status and the progress in sensor.<prefix>_what_if_progress.
  • Missing dashboard cards: a notification lists the HACS cards the dashboard needs that Home Assistant can't find, with links.
  • Repairs for Strømligning and Solcast sensors: a repair names sensors that are disabled, renamed or missing hourly detail, e.g. Solcast's forecast sensors for day 3 and on, which Solcast disables by default.

🔧 Improvements

  • Analysis uses the time each sensor state was held, so the hourly energy is time weighted. The economy table's Spread is now called Margin/kWh, and the breakdown handles the energy the battery started with.
  • House consumption used for the solar surplus is never below 0 W, even if ignored consumers report more.
  • What-if simulator: solar used by ignored consumers (e.g. an EV) counts as surplus, and the status messages are clearer.
  • Texts and translations (Danish, German, English, Polish, Ukrainian) were improved.

🐛 Fixes

  • A battery power sensor that blinks between 0 and a few kW is no longer counted as hours of charging.
  • A Cable Juice Planner charger without statistics no longer stops the whole energy backfill.

What's Changed

  • Enhance Ukrainian localization and improve dashboard analysis documentation by @dezito in #115
  • Implement next version suggestion script and enhance release workflow by @dezito in #116
  • Add start energy cost handling in breakdown by @dezito in #117
  • Add comprehensive tests for what-if view calculations by @dezito in #118
  • Update testing instructions for parallel execution and environment setup by @dezito in #119
  • Refactor what-if simulation handling and improve documentation by @dezito in #120
  • Refactor documentation and improve formatting by @dezito in #121
  • Update translations and improve text formatting in BattMind by @dezito in #122
  • Update prediction days to 7 and enhance documentation by @dezito in #123
  • Enhance dashboard functionality and notifications by @dezito in #124
  • Remove testing mode from configuration and backup restoration by @dezito in #125
  • Add support for ignoring Cable Juice Planner chargers in consumption calculations by @dezito in #126
  • Add support for Solcast and Strømligning sensor repairs by @dezito in #127
  • Enhance battery and consumption detection features by @dezito in #128
  • Enhance handling of ignored consumers and charger states by @dezito in #129
  • Enhance dashboard analysis and testing for energy statistics by @dezito in #130
  • Enhance state retrieval with compressed state format by @dezito in #131

Full Changelog: v1.0.9...v1.1.0

v1.0.9

Choose a tag to compare

@github-actions github-actions released this 10 Nov 19:39
9f5ff97

Highlights

  • Max. age of kWh reworked: BattMind now follows the age of the energy in the battery, so only energy that is really too old is used or sold
  • What-if simulator grows up: compare battery sizes, rules and extra battery modules, with monthly tables and an electricity bill graph
  • Smarter selling: the reserve for the house, solar refill and held-back hours are handled more carefully
  • Safer data: a corrupt database file is restored from an automatic daily copy

⚠️ Before you update

  • Max. age of kWh (Max. age of kWh in home battery): the plan can change after the update if you use this rule.
    • The limit is now 12 to 72 hours (default still 48). An older stored or imported value outside this range is moved into it.
    • Old energy is no longer held back for a later, more expensive hour. While old energy is left, the battery is used for the house.
    • Old energy is not sold by force. It is only sold when selling it in the most expensive periods pays more than using it, under the normal profit requirements. Such a sale is shown as 🕰️ Selling old energy.
    • Energy with no charging history is never treated as old.
  • Min. total profit is now checked against the profit shown in the plan (sell price minus what the kWh cost in the battery, incl. loss and wear) for Maximise profit, like for the other selling rules. Check the value if you use it above 0.
  • Reserve for the house (usage_reserve): it now holds for every selling rule, including Buy to sell. A sale is not planned in an hour where the battery is expected to end under the reserve. With a reserve, selling rules also leave hours alone that another rule holds back (Profit only, Prioritise). Check your plan if you use a reserve.
  • Forecast prices: a forecast sell price is now lowered by the forecast adder, so selling on forecast days looks a little worse than at a known price. With a fixed solar sell price the hourly sell price is raised instead.
  • Edited dashboards: a dashboard you have edited in the UI is not changed. Press Reset dashboard to get the new overview.

✨ New

  • Sidebar icon (Configure → General, field Sidebar icon): choose the dashboard's icon in the sidebar, e.g. mdi:solar-power, to tell several instances apart. Default mdi:home-battery; leave empty for the default. You also set it when adding an instance.
  • What-if simulator:
    • Compare a selected battery capacity, or a range of capacities, with the current setup. A summary shows current profit, scenario profit and the difference.
    • Rules and settings in the scenario: a collapsible section where you change rule switches and numbers for the scenario only. Switches your inverter can't support are disabled.
    • Module comparison: give a module's capacity and price to see historical gain, an annual estimate and simple payback for each extra module, plus graphs of cumulative gain and of the cumulative electricity bill with and without a battery.
    • Monthly tables and bar charts for periods longer than three months.
    • The latest successful calculation is saved per instance and reloaded when you return, also after a restart. A failed or stopped run does not replace it, and a Stop simulation button cancels a run.
    • The battmind.what_if action has new fields: capacity range (range_start, range_end, range_step) and module comparison (module_capacity, module_price, module_count).
    • Results are historical estimates, not a forecast or a guaranteed saving.
  • Overview: key figures of the period (the gain, charging from the grid and from solar, sales) with the full bill one click away, the hours of each day as coloured squares, and the battery level at the end of every row. Today and tomorrow are shown; later days are behind Show all days.
  • Database fail-safe: before a database is saved, BattMind copies the current good file to /config/battmind_backups/storage/ (one copy a day, the newest 3 are kept). A corrupt file is moved aside as ….corrupt.<time> and the newest good copy is restored.
  • Battery size can be set to 0.

🔧 Improvements

  • Max. age of kWh works with both the optimiser and the rules, and follows the age of every kWh. The what-if simulator does the same when it replays past days. The hours that use old energy are in the attribute force_powerwall_max_hours_old_discharge_timestamps.
  • Sell before the sun fills the battery (🌄) also covers a sale after sunrise when the sun fills the battery later (within 24 hours) and nothing is charged from the grid in between. Selling in a solar hour stops solar charging in that hour, so enough later solar must remain to refill it.
  • Hours with a sale are discharge hours: a hold from Profit only or Prioritise is dropped in that hour.
  • Grid charging with 15 minute prices never exceeds the charge power, and the battery level forecast adds up every charge session in an hour.
  • Optimiser is more reliable: it converges more often and handles negative prices better. If it can't settle, the rules take over.
  • Startup: errors at startup are reported more clearly in the log and in a notification.

🐛 Fixes

  • A battery level of nan or inf is handled like an unavailable sensor: the last recorded number is used if the sensor stopped giving numbers less than 2 hours ago, otherwise 100 % with a warning. It used to stop the job.
  • Prices that are not usable numbers (text, NaN, infinity), and sell prices whose tariffs aren't numbers, are ignored. The hour gets its price from the price history, or none, and is never planned with an invented price.
  • The planned-hours attributes no longer list an unsupported action: with solar only charging unsupported, the leftover hours are listed as discharge hours.

What's Changed

  • Add release workflow for drafting release notes and version validation by @dezito in #83
  • Implement fail-safe mechanism for database corruption by @dezito in #84
  • Add funding section and "Buy Me A Coffee" link to README by @dezito in #85
  • Add 'Show all days' functionality and improve overview by @dezito in #86
  • Refactor month iteration and formatting in charging history by @dezito in #87
  • Implement max age for battery energy management by @dezito in #88
  • Add customizable sidebar icon for BattMind dashboard by @dezito in #89
  • Enhance startup error handling and notifications by @dezito in #90
  • Enhance pricing and forecasting logic in BattMind component by @dezito in #91
  • Enhance optimizer logic for convergence and control rules by @dezito in #92
  • Implement reserve logic for selling rules by @dezito in #93
  • Enhance charging logic for 15-minute price periods by @dezito in #94
  • Add validation for finite prices and update documentation by @dezito in #95
  • Update discharging rules for solar refill logic by @dezito in #96
  • Enhance optimizer and planner logic for charging sessions by @dezito in #97
  • Implement max age energy tracking and discharge rules by @dezito in #98
  • Handle NaN and infinity battery levels as unavailable sensors by @dezito in #99
  • Update optimizer to handle negative prices by @dezito in #100
  • Implement discharge logic for sale hours by @dezito in #101
  • Enhance discharge rules for optimized solar usage by @dezito in #102
  • Add reserve handling to selling logic by @dezito in #103
  • Refactor comments for clarity on energy usage in optimizer and tests by @dezito in #104
  • Enhance battery level retrieval with recent sensor checks by @dezito in #105
  • Implement sale blocking logic for held hours by @dezito in #106
  • Update AGENTS.md with reserve handling details and enhance tests for sale blocking logic by @dezito in #107
  • Allow battery size to be set to zero by @dezito in #108
  • Add persistence tests for what-if service by @dezito in #109
  • Enhance documentation and tests for dashboard analysis and what-if simulator by @dezito in #110
  • Enhance what-if simulator with monthly breakdown and bill analysis by @dezito in #111
  • Add current battery label and update bill notes in what-if module by @dezito in #112
  • Update what-if card charts to reflect current battery costs by @dezito in #113
  • Update what-if module bill notes for clarity by @dezito in #114

**Full Chang...

Read more