Yes it’s a bit of a complex one, my original idea isn’t very efficient.
6.1p is now far too high. Tomorrow for instance there are a few hours where its less than a penny and this is when you want your hot water and space heaters to take advantage, but if it’s already fully charged by then you can’t.
The idea solution really would be, you enter how many hours you need a storage heater or the water tank to run a day. So say 6 hours for the water is plenty, it then works out the cheapest 12 half an hour periods the next day and turns on only for those. Even if the cheapest is 8p that day at least it’ll turn on.
Programming this logic, whilst possible because the API gives you the next 24 hours results is pretty far out of my depth unfortunately.
For things like washers, dryers, dish washer etc, there’s an ios app where you tell it how long you need to use the device (say two hours for the wash) and it’ll show you the cheapest two hour period for the day. It of course works on consecutive hours it assumes it’s something which can’t stop until it’s finished, unlike the items above which could be switched on and off more or less whenever you wanted