How to optimize Stiebel heat pump usage based on energy prices?

There is a discussion here on how to do this with an Energy Manager app: [APP][Pro] PELS Energy Manager - Power control and cheaper-hour scheduling for EV charging, heating and hot water - #135 by Ole_Markus_With