Have been using your script below for quite a while …
On 29 Sep we switched from the Agile tariff to the GO tariff.
Your script has continued to work without modification ![]()
So I guess your script will continue to work with any Octopus time of use (TOU) tariff - present or future.