Thanks @Robert.Wall!
I’ve editied the post with the current code and some observations about the results now I’ve had it working for a few days. If anyone has any ideas about how to get power graphs to assume the power remains level until the next data point that would be awesome.