Turn on heating

Hi @serchoner!

I’m copying here a response I sent to another user, as I think this might be helpful in your case as well:

You can build like a sliding scale of temperatures using two variables to determine in which side of the scale you are, for example between 0 and 18º degrees Celsius (this is your XX), or between 18 and 32:

0 ++++++++++ 18 ------------------ 32

  • One variable, “base_level” is set to true when the temperature is over 1.
  • A second variable, “threshold_level” is set to true when the temperature is over 18.
  • Both variables are reset to false everyday at a convenient time, or depending on your automation
  • If base_level is true, but threshold_level is false, then you are in the range between 1 and 18 (in the ++++++ area → this is when you want to turn on the heating)
  • If both are true then you are in the range between 18 and 32 (in the ------- area)

Let us know more about how you are trying to use Apilio, and if this idea works for you, thanks!