For heatpumps/heating in general - we have a after market-product here that you can install in your old "dumb" central heating system - you connect it between the outside thermometer and your boiler/pump/what have you. It then fiddles with the outside temperature readings as to trick the pump to run harder/easier depending on the electricity price (and thus in extension, towards peak production).
I used it in my previous house and it worked well! (no affiliation except as a former customer, but the product in question _I used_ is called ngenic tune [0])
[0] https://ngenic.se/en/tune/