Just learning my way in Home Assistant and I was wondering if its possible to create a template sensor that will set itself to on or off based on if a sensor is below the value of another sensor, something like this …
if sensor.livingroom.temp < sensor.livingroom.temp.setpoint then make the template sensor on otherwise off
Yes. This is possible with both an helper and with “And if” Condition in the visual automation helper.
Use the visual editor select “And If” then “Add Condition” then select “Entity” then select “Numeric State” then select the sensory then select “Below Mode” then enter the value in “Numeric value of another entity”