Enphase Automation via Python

I created these Selenium Python scripts out of frustration because Enphase provides no support for running commands against their API’s. I wanted to be able to set a schedule that automatically switches my battery profile between FullBackup and SelfConsumption. I am aware that SelfConsumption kicks in when their is no SUN light. I wanted it to kick in later in the night because I first wanted to make use of my excess solar power sent to the grid. We have a “use it or lose it” setup, so nothing is carried over to the next month therefore I have to use that excess. For same minded individuals here is my github https://github.com/Skullack/EnphaseEnergy

Perhaps someone in the community can assist with running this via HA. I currently have it running as a task.