homeassistant-config icon indicating copy to clipboard operation
homeassistant-config copied to clipboard

☀⚡🧠Smart(er) Home Battery Charging

Open dannytsang opened this issue 1 year ago • 2 comments

Better manage the overnight charging along with Octopus tariff. In my case, Octopus Agile.

In the winter, it was 99% fully charged overnight so very little logic is required to managed the grid charging. As Spring starts, the reliance on the grid charging can be reduced as more solar generation is present.

This enhancement is to better manage the grid charging using cheaper electricity whilst leaving capacity during the day for solar storage.

A few factors it should consider:

  • [x] Solar forecast - make sure it does not over charge the battery and allow the ☀sun do it's work.
  • [ ] Weather forecast - offset/adjust the in tandem with the solar forecast.
  • [ ] Temperature forecast - The temperature can also affect the efficiency of the panels.
  • [x] Electricity provider rates - Octopus Agile has different rates every 30 minutes so it should target the cheaper slots.
  • [x] Household load - the amount of electricity consumed varies and affects how much is required.
  • [x] Take into account current charge / target SOC for time of day
  • [x] Current battery state of charge
  • [x] Take into account holiday mode

dannytsang avatar Mar 19 '24 11:03 dannytsang

Total Capacity: 13kwh Charge at 3kWh = 33.30% per hour (when below 90%).


Target charge: 45% (5.85kwh).

21:00 - Forecast and reporting time. 70% of 13kWh = 9.1kWh 60% of 13kWh = 7.8kWh (usable capacity)

2:30 - First cheapest rate to charge. 33% of 13kWh = 4.29kwh 23% of 13kWh = 2.99kWh (usable capacity)

5.5h difference between 21:00 & 2:30

dannytsang avatar Apr 25 '24 16:04 dannytsang

Target charge: 45% (5.85kwh).

21:00 - Forecast and reporting time. 64% of 13kWh = 8.32kWh 54% of 13kWh = 7.02kWh (usable capacity)

3:30 - First cheapest rate to charge. 28% of 13kWh = 3.64kwh 18% of 13kWh = 2.34kWh (usable capacity)

6.5h difference between 21:00 & 3:30

dannytsang avatar Apr 26 '24 08:04 dannytsang

Compensation is in place and require fine tuning before implementing.

dannytsang avatar Nov 06 '24 14:11 dannytsang