Skip to content

New optional web interface; Fox, Solis, SolaX, Enphase, Growatt and PredBat Hub configured through discovery; named fixed load forecasts; cancel car slots for a high export rate

Latest

Choose a tag to compare

@springfall2008 springfall2008 released this 06 Dec 21:28

Predbat 10 brings an optional new web interface. Try it from Try the new interface in the classic menu. The classic pages are unchanged, and you can switch back at any time.

Most cloud inverter integrations now set up your inverters the same way. Fox Cloud, Solis Cloud, SolaX Cloud, Enphase, Growatt and the PredBat Hub join GE Cloud and GivTCP in configuring their inverters through discovery. An inverter you configured by hand in apps.yaml keeps its slot, and an apps.yaml value for a setting the integration doesn't configure is kept, where before it could be overwritten or deleted.

Also new: named fixed load forecasts, such as "the heating will use an extra 2 kWh between 17:00 and 19:00". A car charging slot can now be cancelled for an ordinary high export rate, on any charger. GE Cloud now stays within GivEnergy's new daily API allowance.

Before you upgrade

  • Cloud inverters configured through discovery (Fox Cloud, Solis Cloud, SolaX Cloud, Enphase, Growatt, PredBat Hub):
    • Inverters you configured by hand in apps.yaml keep their slots, and the discovered inverters take the slots after them.
    • A leftover hand-written slot for the same integration, such as FoxESS, SolaxCloud, EnphaseCloud or GrowattCloud, is now kept and warned about, where before it was overwritten. If it is the same inverter, for example an old automatic configuration saved into apps.yaml, remove the slot. Otherwise the inverter is counted and driven twice. SolaX Cloud, Enphase and Growatt take such a slot over by themselves when its entities name the plant, site or device.
    • Solis Cloud, two inverters: a single (non-list) inverter_limit_charge, inverter_limit_discharge or soc_max in apps.yaml now applies to inverter 0 only. Give a list to set both.
    • SolaX Cloud and Enphase: grid_power_invert and load_power_invert are now set to False for their slots, because Predbat publishes those sensors itself. A value you set is replaced, with a warning.
    • PredBat Hub: an inverter setting in apps.yaml now wins over the Hub's own, where before it was silently overwritten. The ems_total_* settings are no longer written.
  • GE Cloud and GivTCP: a value you set in apps.yaml for a setting the integration doesn't configure is kept again, instead of being deleted.
  • GivTCP All-in-One: a hand-set battery_scaling is kept again. Without one, a directly connected All-in-One now defaults to 13.5 kWh usable, instead of the 15.9 to 16.8 kWh gross figure GivTCP reports.
  • GE Cloud API allowance: GivEnergy now limits personal API keys to about 333 calls a day with paid Premium. The default 5-minute status poll uses about 730. Set ge_cloud_status_poll_minutes to 15 (about 260 to 300 calls a day) or 30 to stay within it.
  • Car slot cancel for export: with switch.predbat_car_charging_cancel_for_export on, an Octopus Intelligent car on a charger Predbat cannot hold now has its slots cancelled too. Add an automation on the new binary_sensor.predbat_car_charging_cancelled, or turn the switch off. Otherwise the car charges anyway while the battery exports.

What's Changed

New web interface

  • Add optional redesigned React based web interface by @calvind80 in #5393
    • A responsive interface with light and dark themes: Overview, Dashboard, Plan (timeline, table, history and debug), Charts, Compare, and configuration and system pages.
    • It runs beside the classic pages under ./ui/. Switch with Try the new interface or Classic interface in the menu. Your browser remembers the choice, and no restart or configuration change is needed.
  • feat(web): components page edits in place and shows discovery by @springfall2008 in #6568
    • Edit on the new Components page opens the component editor in a dialog, as on the classic page. Only the settings you changed are saved, and the page shows what discovery found.
  • fix(web): apps.yaml editor no longer marks every line as an error by @springfall2008 in #6565
    • On cloud integrations, whose templates leave out load_today, the new interface's apps.yaml editor underlined the whole file and disabled Save.
  • fix(web): apps.yaml editor errors marked in place; accept textual booleans by @springfall2008 in #6567
    • An error inside a list is now marked on the line where it is, not at the top of the file, and 'false' / 'true' are accepted as booleans.
  • config: apps.yaml descriptions live in APPS_SCHEMA by @springfall2008 in #6566
    • The editor now has a real description for every apps.yaml setting. 76 settings that showed generic filler now have their own.
  • feat(web): add the PredHeat charts to the Charts view when PredHeat is on by @springfall2008 in #6540
    • PredHeat, PredHeatCost and PredHeatCalibration charts, listed only when PredHeat is configured and enabled.
  • fix(web): give the chart toolbar its own row so it no longer covers the legend (#6529) by @springfall2008 in #6531
  • fix(chat): forget a conversation the server no longer knows by @springfall2008 in #6569
    • A message typed on the Chat tab flashed up and vanished when the remembered conversation had been pruned or deleted. The page now forgets it and sends your message in a new conversation.

Plugins

  • Add native plugin pages to Predbat navigation by @joeShuff in #6556
    • Plugins can register their own pages with register_page(). They appear under a new Plugins menu, inside Predbat's own page header and navigation, at /plugin/<path>.
  • feat(web): show plugin pages in the modern web interface by @springfall2008 in #6570
    • The same plugin pages, with a Plugins menu in the new interface.

Inverters configured through discovery

  • feat(discovery): Fox Cloud configured through discovery; extra_entities for metered third-party generation by @springfall2008 in #6517
    • A battery inverter's own PV and a metered third-party generator (CT2) are both counted. An all-solar Fox account is now counted beside your other battery, where before it configured nothing.
  • fix(fox): keep apps.yaml values for settings Fox's record never binds by @springfall2008 in #6518
  • feat(discovery): Solis Cloud configured through discovery; coordinator writes reported tuning, user wins by @springfall2008 in #6523
    • Charge and discharge limits and the battery size reported by Solis are set per inverter. Your apps.yaml value wins.
  • feat(discovery): PredBat Hub configured through discovery; apps.yaml values win by @springfall2008 in #6535
    • An inverter the Hub finds after start-up takes the next free slot without a restart.
  • feat(solax): SolaX Cloud configured through discovery by @springfall2008 in #6558
    • A plant that appears after start-up is configured without a restart.
  • feat(enphase): Enphase configured through discovery by @springfall2008 in #6560
    • A login that fails while Predbat is starting is now retried with a growing wait, instead of every minute.
  • feat(growatt): Growatt configured through discovery by @springfall2008 in #6564
    • Battery size and power limits are set per inverter. One that doesn't report them keeps your apps.yaml value. Before, none was set unless every inverter reported them.
  • feat(discovery): take over a hand-written slot that names a device's account id by @springfall2008 in #6561
    • A saved copy of an old SolaX Cloud or Enphase automatic configuration is taken over, with a warning, instead of counting the inverter twice.
  • fix(discovery): keep the user's apps.yaml value for any setting a record does not bind by @springfall2008 in #6530
    • GE Cloud and GivTCP deleted hand-set values such as battery_size_power, battery_min_soc or the idle times. Every integration now keeps them.
  • fix(givtcp): keep the apps.yaml battery_scaling and default an All-in-One to 13.5 kWh usable (#6520) by @springfall2008 in #6526
    • Fixes a regression in v9.12.0, which planned a directly connected All-in-One with its gross capacity and dropped the documented battery_scaling correction.

Load forecast and planning

  • Add named fixed load forecasts (A) by @Scholdan in #3885
    • Add a known extra load to the forecast, such as heating using 2 kWh between 17:00 and 19:00. Several named loads can be set in apps.yaml under house_load_additional_forecast, or from an automation through select.predbat_load_forecast_delta_api.
    • They are added after historical scaling, in the PV10 and PV90 scenarios as well as the expected one.
  • Cap forced export near the battery reserve by @mgazza in #6541
    • Forced-export power is limited as the battery nears its reserve or export target, so it can't run past them between 5-minute plan runs.
  • fix(inverter): keep charging at a 100% target instead of freezing on rounded SoC (#6501) by @chalfontchubby in #6504
    • At a 100% target, a battery at 99.5% read as full and charging froze, stopping the final top-up the BMS needs for cell balancing. On Sigenergy this cycled between charge and discharge every few minutes.
  • feat(marginal): configurable marginal_forecast_hours (default 12, max 23) by @springfall2008 in #6485
    • Sets how far ahead the marginal energy cost table looks.
  • feat(plan): publish predbat.clip_exposure - potential clipping and refill per PV scenario by @chalfontchubby in #6456
    • For systems whose solar can exceed the inverter or export limit: how much solar could be clipped in PV10, PV50 and PV90, and how much afternoon solar could refill the battery, whatever the plan does.
  • fix(history): recognise a daily counter's reset at local midnight by @piomar123 in #6519
    • Wherever local midnight isn't 00:00 UTC, including the UK in summer time, a *_today counter that ended a day below 1 kWh lost energy the next day. This affected export, PV, load, car charging and the LoadML history.
  • feat(solar): report the Solar API unhealthy when a forecast refresh falls back to stale cache by @springfall2008 in #6554
    • The plan still uses the cached forecast. If the refresh keeps failing for an hour, binary_sensor.predbat_components_healthy turns off and the status says which forecast is stale.

Car charging

  • feat(car): car_charging_cancel_export_rate - cancel a car slot for a high export rate by @springfall2008 in #6538
    • New input_number.predbat_car_charging_cancel_export_rate (default 0, no change). Set it to the lowest export rate you want to cancel a car slot for, such as 20p in the evening peak. Before, in practice only a saving session could cancel a slot.
    • The tariff comparison now uses each compared tariff's own cheapest and dearest import rates.
  • feat(car): cancel car slots for every charger, with a sensor for automations by @springfall2008 in #6539
    • Ohme, Hypervolt and myenergi Zappi chargers are held off for a cancelled slot, even with Predbat-led charging off. This is untested with Octopus Intelligent on real hardware.
    • New binary_sensor.predbat_car_charging_cancelled lets an automation hold any other charger off.
  • fix(gecloud): skip start-charge while the car has paused the session by @springfall2008 in #6563
    • A GivEnergy charger reporting a session paused by the car was sent a rejected start-charge every cycle, about 600 API calls in one night.

Octopus

  • Price Octopus Power Up (TURN_UP) sessions the opposite way to Power Down (#6470) by @gcoan in #6472
    • With Octopus Energy direct, a joined Power Up was priced as a Power Down, so Predbat planned to import less and export more, the opposite of what the session pays for.
  • fix(octopus): count last night's dispatches against the IOG cap in the car plan and octopus_cap_used (#6483) by @chalfontchubby in #6537
    • The morning after evening dispatches, predbat.octopus_cap_used showed cap left that the rates had already used, so the car was planned as cheap at the day rate.
  • fix(octopus): detect IOG-SMB six-hour cap from the metric_octopus_import tariff attribute by @springfall2008 in #6480
    • Users taking rates from the Octopus Energy integration now get the 6-hour cap on an IOG-SMB tariff.
  • docs(octopus): recommend Predbat's own Octopus connection over the integration by @chalfontchubby in #6439
  • docs(octopus): say what Octopus Energy direct sets for you, and drop stale template lines by @chalfontchubby in #6492

GE Cloud

  • fix(gecloud): live within GivEnergy's daily API allowance (#6471) by @chalfontchubby in #6476
    • When the allowance is used up, Predbat holds off GE Cloud calls until midnight UK time and shows GivEnergy's message in its status, instead of retrying every call ten times. Work refused during the hold is done once GivEnergy answers.
    • New ge_cloud_status_poll_minutes (5, 10, 15 or 30; default 5, as before) sets how often status, meter and EV charger data are read. The device list is now re-read every 6 hours instead of hourly.
  • fix(gecloud): start up from stored settings when the 7-day full read is due by @springfall2008 in #6546
    • On a slow device, start-up could wait on a full register read until it timed out, leaving the inverter unconfigured and uncontrolled.
  • fix(gecloud): report an inverter left at Error status in the run status by @springfall2008 in #6557
    • An inverter GivEnergy reports at Error for 30 minutes now marks GE Cloud unhealthy and is named in Predbat's status. Before, the battery could sit idle for days with nothing shown.

Other inverters and integrations

  • fix(fox): floor scheduler maxSoc at the device's own maxsoc minimum (#6543) by @springfall2008 in #6545
    • On a Fox EVO with a 5% reserve, forced charge and discharge were written with a maxSoc below the device's minimum.
  • fix(sunsynk): integrate export_today from the CT, not etodayTo by @springfall2008 in #6544
    • On Sunsynk Cloud sites with an external CT, export energy, export income and savings were overstated by grid-side house load.
  • fix(axle): decide axle_control read-only from the event window, not the lagging sensor state by @springfall2008 in #6525
    • The plan run at the start of an Axle event could still write its own commands and cancel Axle's export.
  • Refresh expired MQTT tokens before connecting by @mgazza in #6446
    • The PredBat Hub connection refreshes an expired MQTT token before connecting, and backs off if the broker still rejects it.

Home Assistant

  • fix(ha): stop service-call handlers deadlocking the web socket loop (#3460) by @chalfontchubby in #6462
    • Update and settings save/restore notifications never arrived, and other service calls made at the same time were lost.
  • fix(ha): re-read every state after a web socket reconnect, once HA has started (#6355) by @chalfontchubby in #6464
    • After a Home Assistant restart, some Predbat sensors stayed missing until Predbat itself was restarted.
  • fix(ha): refetch a history window in one request when an older chunk comes back empty (#6240) by @chalfontchubby in #6463
    • On some systems load history stopped 2 to 4 days back although Home Assistant held more.

Maintenance

  • feat(replay): closed-loop replay with a PV10/PV50/PV90 solar outcome by @chalfontchubby in #6448
    • A developer tool: re-run a day from a debug dump with dull, expected or bright solar, to see what a setting costs on each.
  • Test coverage raised to 90% or more on the annual, ML load, chat and MCP tool modules (#6555, #6559)
  • Debug journal updates (#6469, #6489, #6510, #6527, #6549)
  • Triage bot: each daily journal PR stacks on the newest one still open, and pr-cleanup resolves only the threads a bot raised (#6534, #6571)

New Contributors

Full Changelog: v9.12.0...v10.0.0