Tibber price level to turn on heating?

The thresholds are similar to what Tibber are using, here from Tibber Developer Reference docs.
I am not sure how these thresholds will adapt to my 4 level needs… :thinking:
So instead, I made my thresholds variables that I can change when/if I need to tune the settings of the thresholds. I hope it made it a bit more clear to you :smiley:
Please also have a look at my updated and commented code here:
CTC i350 (heat pump) smartcontrol using Tibber electricity prices by the hour