Hi all,
I've just spent a few days getting PredBat working on my GivEnergy setup with Octopus Agile. Kudos to Trefor for all the work on this amazing bit of software, it's taken a bunch of ideas that I had and converted it into an amazing tool covering pretty much anything I was thinking about. I'll need to take a few extra days to play with all the options that HA provides.
One question that I'm hoping this crowd might be able to help - my house setup is a three phase supply with each phase having a separate inverter and battery - so one inverter / one battery per phase. Right now, I've setup PredBat in monitor mode for one of the phases.
Reading though all the documentation that I can find, and also skimming the 10k+ lines of python for predbat. I'm wondering the best way to setup PredBat for all the phases - does anyone have any ideas / experience of this? I'm thinking there are two potential options.
Option 1 - run multiple copies of PredBat on the same VM
To do this adjust the predbat.py to initialise a new class (PredBat[1|2|3]), each reading a specific apps.yaml file, with each apps.yaml file connecting to a different inverter (by setting geserial) and setting a distinct prefix (apps.yaml line 10). Adjust all the charts / outputs (including the predbat plan) to use the new prefix.
Option 2 - run the current predbat.py on separate (three) VMs
To do this - clone the VM, changing the apps.yaml geserial
Option 3 - refactoring the code to process all three phases
Possible - but more work than my python skills would allow for.
Option 2 I'm pretty confident will work since the power used per phase comes from the GivEnergy API but has the disadvantage of multiple HAs to interface with - a minor inconvenience. But i'm tempted about Option 1...
Appreciate any comments / thoughts