w1tw0lf
Expert Member
Sounds like you are at the entrance to the rabbit hole....Whoa. That's hardcore. Awesomeness !
I was however looking for something a little more simple. Maybe some additional explanation is required starting off with I'm no HA guru ( started out 2 weeks ago ) !
Currently I use the timer function on the inverter to limit the battery discharge to 40%. Ideally I'd like to treat that timer like a device or switch that can simply be flipped to on or off. So I don't want HA to manage the inverter entirely, just the timer function
The github code is what I use to control only the timer. It will sort the time according to what level it needs to be to get throught load shedding. It works out if it is a 2 hour or 4 hour slot. Then it works out in which slot on the timer it will fall in with and adjust the timer's SOC level to what it needs to be. It also sets the allow and not allow between 7am and 5pm to charge from the grid.







