Category: Control

  • Our battery optimiser

    I wanted:

    • a stripped down, dedicated controller that is as reliable as the system it controls;
    • to improve accuracy by correlating heat pump power consumption with outside temperature: both measured by our EmonCms energy monitoring system;
    • to use local temperature forecasts from the MetOffice to better predict heat pump energy consumption (rather than relying on solar generation forecasts alone);
    • to factor in latent costs due to battery wear;
    • use best in class optimisation methods to allow for constantly changings forecasts for the coming day and, simultaneously, minute-by-minute net consumption changes due to passing clouds and fluctuating loads.

    So I extended the planning tool to include an optimiser that runs on a Raspberry Pi.

    Our battery optimiser: written in PHP and MySQL, and hosted over Ubuntu on a Raspberry Pi5 (16GB RAM, 1TB M.2 SSD), networked and powered across Ethernet PoE

    You are welcome to try and use it. Just remember that it will require hosting on your LAN and currently controls GivEnergy AIO batteries only1 and relies on an EmonCms energy monitoring system (another Raspberry Pi) for some data.

    The optimiser requires only occassional monitoring and has been controlling our GivEnergy AIO battery for several weeks now. Below is an excerpt from its web dashboard:

    When the solution is zero import/export2 the optimiser leaves control to the battery. When the solution requires import or export, it takes over and controls the battery’s charge/discharge rate minute by minute, based on cost optimisations using real time and historical inputs from:

    1. Caveat emptor: no guarantees that it will work for you … or that it won’t burn your house to the ground! ↩︎
    2. I.e. the house is powered entirely by the battery plus solar, if any. ↩︎

  • Battery optimisers

    As home storage batteries reduce in cost, they are becoming a popular means to reduce electricity costs, by:

    • storing generated solar energy for later consumption, in place of exporting it to the grid and later having to import it for consumption at a higher price.;
    • importing energy at off-peak times and re-exporting the same back to the grid at higher peak prices (so called “arbitrage”).

    Batteries allow users to set timers to charge and discharge at particular times of day. Many users set them to charge during off-peaks times and discharge during peak times. This way, to the extent that batteries have sufficient capacity, users benefit from off-peak rates at other times, and even make profitable trades at peak times.

    In practice, however, there are many problems with using timers alone:

    • constantly changing daily solar generations change the amount of off-peak import energy that is needed: if you import too much, you have spent too much;
    • evening and early morning consumptions (e.g. heating during the winter) make exports unprofitable because energy has to be re-imported;
    • variable rates (e.g. Octopus Agile’s rate changes every 30 minutes) are complicated and constantly changing;
    • wear costs from over or under charging, or from overheating caused by rapid charging, can exceed grid savings;
    • differences between peak export and off peak import rates may not be sufficient to justify charge-discharges on some days, especially when wear is considered;
    • fluctating solar generation require the battery charge/discharge rates to vary with net house load (i.e. after solar generation) to prevent the battery:
      • charging from the grid during off peak times when clouds are overhead;
      • discharging to the grid during peak times, when excess solar generation is otherwise sufficient;
    • optimal tariffs vary throughout the season, requiring time consuming changes to timer settings.

    Automated real time controllers can minimise these issues and save several hundred pounds or more a year in electricity costs over using fixed timers.

    Battery features

    Some batteries have features that help optimise control to an extent. For example GivEnergy’s ECO mode charges when solar generation exceeds demand, and discharges to meet demand when solar is insufficient. However, it does not adapt to your consumption patterns or speculatively arbitrage the grid according to weather forecasts and changing tariffs.

    Other “smart” features allow energy suppliers to take control of the battery to charge and discharge automatically. But looking at users’ comments, these appear not to dynamically control the battery in response to changing weather, consumption and forecasts. That would probably require a lot of computation. And why would a supplier do so if the end result is to trim customers’ bills? Possibly for the same reasons, these smart features do not advise when another tariff makes more sense.

    Subscription services

    MyEO and smug offer web subscription services to do this for ranges of batteries and tariffs using solar forecasts. However, at the time of study, I did not find disclosures on methods or whether actual weather forecasts and outside temperature measurements are used: the two most reliable predictors of energy consumption. The services are further not free, which all makes it difficult to confirm whether the benefits outweigh the subscription costs.

    Home Assistant

    Other optimisers use the Home Assistant (HA) open source home automation platform with plugins. HA is an excellent platform, runs locally and can be hosted on low cost Raspberry Pi’s. One plugin example is GivTCP for GivEnergy batteries which can use free domestic solar forecasts from Solcast. Another plugin Predbat supports additional brands including Fox, Sigenergy and SolarEdge. However HA’s open community integrations may not always work reliably, especially when combined with other plugins.

    Dedicated controllers

    From what I can see, no optimiser has yet emerged that works with all the major battery brands, learns from home consumption patterns and sensor data, uses both solar and weather forecasts and works with all the major energy provider tariffs.

    It would be nice if web service did all this, and I am sure this will happen. Meanwhile, I extended our simulator to run as a dedicated real time optimising controller for our case.

  • Control

    Renewable systems planning doesn’t end with installation.

    More work is needed to:

    • control storage batteries, if they are included, are expensive and if used to the wrong extent waste the investment put into them;
    • control other energy storage appliances, such as when to heat the hot water cylinder – and when to heat the house;
    • stay on the right tariff.

  • Avoid lone heat pumps

    Replacing boilers with heat pumps alone makes no financial sense with today’s energy prices, even after the £7,500 BUS grant.

    Electricity’s (currently 25.7p / kWh) 4x price premium over oil and gas (6.3p / kWh) exceeds their efficiencies1 relative to the boilers they replace, and makes them more expensive to operate. Worse, they may never repay their capital costs.

    There’s a lot of hype about how batteries allow heat pump owners to benefit from off peak prices. The maths says differently: get a battery solely for a heat pump and you are simply digging a bigger hole.The battery will never pay, whatever the duration.

    Our house: viability of different combinations of renewables relative to staying with our 2 year old oil boiler

    Make things sunnier

    Adding solar PV to a heat pump is like sprinkling instant sunshine, and can transform the economics of heat pumps.

    Daily solar generation for our home across the year

    In winter, solar generation is around 10-20 percent of summer levels. This is still a significant contribution because each “free” kWh of solar generated is 1kWh less imported from the grid. And come spring or autumn, there may be enough solar generated to power the heat pump entirely.

    We are fortunate to have been able to add a relatively large number of panels (40) compared to the 10kW capacity of our heat pump which, even in the depth of winter, translates on average to about 30kWh of “free” thermal energy daily.

    We’d still have been better off with PV on its own, keeping the boiler. But now heat pumps, and a CO2 free world, does make more sense than a boiler on its own – and so we got one.

    If you are considering a heat pump2, maximize solar capacity, and consider battery storage if you’re in for the (very) long run.

    1. Relative efficiency is the heat pump SCOP divided by the efficiency of the oil boiler. In our case this was 4.0 (3.62 / 0.9). ↩︎
    2. Some housing types may never justify heat pumps on financial grounds. Passive houses, for instance, have such low heating requirements that cheap electric storage heaters on low green off-peak tariffs can be more attractive.
      ↩︎