platform: yr
name: outside_temp
monitored_conditions:
temperature
That both give value in °C.
I would like to make a third sensor with the difference between outside_temp and s3_temp.
In other words: outside_temp - s3_temp
I have tried a few different ways but can’t seem to get it to work.
Anyone here that could help me?
Your template would be {{states.sensor.outside_temp.state - states.sensor.s3_temp.state}}
You can check the template in the templates developer tool (it is on the bottom left of your HA instance frontend). You may have to cast the state for each sensor to a float or int. This can be done by using |int or |float.