You can use a battery, such as the Powervault 3, to store cheap off-peak electricity and then discharge it when the costs increase. The Powervault 3 has a smart tariff controller so you can easily adapt your charging schedule for off-peak hours.
Furthermore, if you have enough solar panels and battery storage, then you could potentially be 100% independent from the grid and not need to worry about electricity rates at all.