See https://community.carbon.coop/t/hems-january-update/137/29?u=zapaman
The automation I have set up works to trigger our HW “immersion” when the Agile 1/2hourly rate goes below a certain price. The next improvement on that would be an automation the chooses the (say) 6no 1/2hour time slots with the lowest Agile price over the next 24hr period - something to work on.
This has already been done by others - it is called Octoblock.
GitHub - badguy99/octoblock: Octoblock is an app which works under AppDaemon within Home Assistant which finds the cheapest “n” hour block for import or the most expensive “n” hour block for export, and works out the price of that block, for the Octopus Energy, Agile Octopus / Agile Outgoing Octopus tariffs.
I just need to figure out whether it can be added to the HEMS unit somehow.