It does. However, the hotter the water becomes, the less effective the heatpump becomes. With anything beyond 60C becoming very inefficient.
With hot water tanks, they are unfortunately pretty badly insulated as well, with some of them loosing heat very quickly. Depending on how you plan on using that water, you also have to make sure the temperature never dips below ~60C to avoid legionella from spreading.
I actually think that heating your home slighly higher than you‘d usually do is the simplest and most effective approach, assuming it is properly insulated. Just rise the target temp for 1-2C when the energy is cheap and reset it once it isn‘t. Probably not as efficient, but extremely simple to implement.
With hot water tanks, they are unfortunately pretty badly insulated as well, with some of them loosing heat very quickly. Depending on how you plan on using that water, you also have to make sure the temperature never dips below ~60C to avoid legionella from spreading.
I actually think that heating your home slighly higher than you‘d usually do is the simplest and most effective approach, assuming it is properly insulated. Just rise the target temp for 1-2C when the energy is cheap and reset it once it isn‘t. Probably not as efficient, but extremely simple to implement.