This is where you should look at setting up the Home Assistant integrations, it can be installed on a mini pc, raspberry pi etc.. if you don’t already use it. I see you created a new topic on this. So happy to move the conversation over to that thread.
Moving conversation regarding automation/octopus integration here: Sensing Octopus daytime cheap energy and using it to charge my systems batteries