Simple Rule to manage a space heater

I have found some similar posts but the actual intent of the rule was a bit different. I am a newbie to rule engine so I hope this is not too basic a question to ask.

Desired Automation:
from 19h to 7h when the temperature goes below 21 degrees start the space heater (in a smart plug) until the temperature reads 23 degrees then turn it off.

I have not yet written the rule since my zigbeen temp sensor and outlet are only arriving today.

My question is can I use the Wait command for this? Something like:

If time is between 19h and 7h
if Baby Room Temp Monitor <= 21
Turn on Baby Room outlet
Wait until baby room temp >= 23
Turn off baby room outlet

Thanks!

No help with your rule, but for an already made thermostat (with safety measures)...
This is what I use with my office space heater.

Oh I had no idea such an app existed...this might be a better solution. Thanks!

Here's the Rule I use to protect the pipes in my crawlspace.
[ "Radiator.." is the Outlet for the electric heater]

No leaky, no drama. :innocent:

Edit: in case it should've been said:

Avg.Tmps.Yard comes from a few Hue motion sensors in yard. Only one sensor reading was necessary, but I grouped a few for the heck of it). As well, the Required Expression isn't necessary.

CSp.T4.Temp. is a temperature sensor in the crawlspace. That's necessary [g].

...bob