Automating heating using external temp sensor

Hello, i am trying to set up a heating automation using a temp sensor different than the one included in the thermostat

What’s the best way to automate this?

The easiest way is to set an automation acting when temp is above or below a specific number, but this will only trigger when the temp goes above or beyond that specific number

Describe what your goal is… “automate this” is pretty vague.

It would also be helpful if you share what functional options your thermostat has. For example, if the target thermostat needs to have a target temperature that will require a different approach than one that has an option to just turn the heating on.

You may want to take a look at Generic Thermostat and, depending on the thermostat’s available functions, Template Switch.