Skip to content

Stretching the battery through the night

From posts by Niyi Solar and bigbrovar in the DIY Solar Nigeria group (March 2023 and June 2024).

My battery cannot carry the whole night. I have grid supply most of the time. How should I use the two together?

This is for homes with a grid connection and an inverter that can blend grid and battery power. The question is not whether to use the grid, but when.

bigbrovar’s reasoning, after more than eight years on solar: you cannot economically build enough solar and battery to get through the worst of the rainy season. A system big enough for that wastes a large share of its capacity for the rest of the year, and the money has other uses. Keeping the grid as a managed backup leaves you independent in practice, at far lower cost.

Niyi Solar’s worked example:

Battery 14 kWh
Lowest level you want to reach in normal use 30%
Inverter’s low-battery shutdown 20%
Energy available for the night About 10 kWh
Load A steady 2.2 kW
Time 6 pm, battery full, no more sun
Goal Reach 8 am, 14 hours away

At 2.2 kW, 10 kWh lasts about five hours. The battery cannot carry 14. There are three ways to bring in the grid.

Do nothing special. The battery runs the house until it reaches 30%, and the system switches to the grid.

  • The battery is at 30% by about 11 pm and sits there until sunrise.
  • If the grid fails at 3 am, you have only the energy between 30% and 20%. That is about 45 minutes before the inverter shuts down.

It is the simplest, and it leaves you most exposed in the early hours.

Use a schedule to hold the battery back. The grid runs the house from 6 pm to 3 am, and the battery takes over from 3 am to 8 am.

  • If the grid fails at 3 am, you just make it to morning.
  • The cost is that you may use more grid energy than you needed to, in exchange for that assurance.

This is what Niyi Solar runs. The battery and the grid carry the load together the whole night, with the battery’s share set so that it lasts exactly as long as you need.

The sum:

  • 10 kWh over 14 hours is 714 W from the battery.
  • The load is 2,200 W, so the grid supplies the other 1,486 W.

The result:

  • You arrive at 30% at 8 am, as planned.
  • If the grid fails at 3 am, most of the battery is still there. You have about 2 hours 20 minutes at full load, three times what Option 1 leaves you.

On his system the grid’s share is not a fixed number. A script recalculates it from the load, so the battery’s contribution stays at the planned figure whatever the house is drawing.

Battery at 3 am Backup if the grid fails at 3 am Grid energy used
1. Battery first 30% About 45 minutes Least
2. Grid first Full Until morning, just Most
3. Shared all night About half About 2 hours 20 minutes In between

His own summary is that no approach is foolproof, but some are more elegant than others.

  • Grid rarely fails at night: Option 1 is fine, and the cheapest to run.
  • Grid often fails in the early hours: Option 2 or 3.
  • You want the battery cycled gently: Option 3. A steady 714 W is far easier on a battery than 2.2 kW for five hours.
  • Option 1 is the default behaviour of most hybrid inverters.
  • Option 2 needs a timed charge or time-of-use setting, which many hybrid inverters have.
  • Option 3 needs an inverter that can draw a set amount from the grid while the battery supplies the rest. On Victron systems this is the grid setpoint in ESS. Niyi Solar drives it with his own script. A fixed setpoint, worked out once from your usual night load, gets most of the benefit without any scripting.

bigbrovar takes the idea one step further on his system: an automation reads the solar forecast and decides how much grid to allow before a poor day. See Automating your system and Getting through the rainy season.

  1. Usable energy = battery size × (100% minus the lowest level you want to reach).
  2. Battery share = usable energy ÷ the hours you need to cover.
  3. Grid share = your night load minus the battery share.

If the battery share comes out higher than your night load, the battery can carry the night alone and none of this is needed.

Articles are licensed under CC BY-NC-SA 4.0: share and adapt with credit, not for commercial use. Licence details.