So does the version I posted only you don’t appear to understand how it works.
It does work and employs a common design pattern that has been suggested to many users for the exact same requirements as yours.
Which is perfectly correct if “now” is not within the time range of 18:00-22:00 (or if you created the automation within the time-range and the temperature was already below the threshold value; it will work afterwards).
The automation I suggested does that.
You’re welcome but I don’t know why you’re thanking me. You rejected the automation I suggested.