Automation for a power plug and temperature sensor

HI,

I want to trigger a power plug based on the room temperature. But with a little complex use

Let me explain.

  • temperature goes below 18; then trigger the power plug ON for XX minutes
  • in this XX minutes if temperature goes above 19, turn power plug OFF
  • after this XX minutes; the power plug should stay OFF for YY minutes nevertheless

then cycle again

Does it make sense? How to automate?

Take a look at the options of the generic thermostat - https://home-assistant.io/components/climate.generic_thermostat/

If you can’t make a compromise you’d have to base this on separate automations but what you want looks pretty complex.