In the UK you can get agile tarrifs now where the price changes through the day according to demand and supply predictions. There's an API you can use to control chargers, heaters, bitcoin miners etc.