Need some help setting up automation on my AC unit

I’m a newbie to home assistant and need some help setting up my portable AC unit with automation.
My AC unit is a simple dumb portable AC unit, However it can be automated using a smart plug and thermometer as if you unplug it while it’s running it will remember the last setting. since i don’t have the thermometer and smart plug just yet, i’ll use standins for the names, the thermometer is going to be: bedroom_temp
and the smart plug will be: bedroom_ac_plug.

So, specifics of what i hope to achieve.
I want the AC to turn on above a certain temp and turn off below a certain temp, possibly also a minimum time delay before turning on. this is required as if the unit is unplugged the compressor timer is reset and it will short-cycle the compressor.

Any ideas?

ill take a look, thanks!