Automate sequence of actions

Let’s say I want to build a coffee roaster. I have an oven, a heatgun, Sonoff TH with Tasmota and thermocouple, HA can see and operate it, the algorithm is:

  1. heat it up to +210C
  2. stop the heatgun
  3. start the heatgun again when the temperature drops to +200C
  4. goto 1.

I can have 3 separate independend automations with various conditions but I wonder if there is a better way. Is there any good example? Thanks

Consider using Generic Thermostat.

Set target_temp to 210.
Set cold_tolerance to 10.

This means it will heat until 210 then turn off heating until it drops to 210-10=200 then start heating again.

3 Likes