Hi.
I get cheap electricity overnight (7p per unit starting at 11.30pm) and so charge up my car and Huawei Luna 2000 battery at this time. Any power I generate during the day I use to keep the battery topped up and then sell the excess back to the grid at 15p per unit.
What I’d like to do is discharge the battery each evening so that the discharge ends around 11.30pm so that I can maximise how much I’m selling to the grid. At 11.30pm I’d then charge the battery again at the lower rate. I think I’d need to take into account how much charge is in the battery and, therefore, how long it would take to discharge.
Has anyone managed to write an automation to achieve this? If so, can I get some pointers please.