I thought it might have to do with there being a current difference of -2.2 degrees with outdoor_temperature_sensor being greater, but I don’t know what to do to fix this. It accurrately showed a value of -0.2 degrees F when the difference was small.
First, it’s probably just a copy/paste error, but double check that the real sensor template isn’t missing }" like what you have posted.
Is sensor.outdoor_temperature_sensor unavailable or unknown? That would be the most likely cause. The fix to avoid this issue would be to set an availability to require both sensors to have values in order for the difference to be calculated.
I checked the sensor values individually in Developer Tools, which is how I know the difference was -2.2 (gw2000 was 66.2 and outdoor sensor was 68.4).Now that I think about it I don’t think I checked temp_difference in Developer Tools, but I noticed the 66.2 value for temp_difference on an Entities card in Lovelace, so maybe it was a case of the card got updated at a time one was unavailable. Thanks for the explanation. Anyway, it’s working fine now with no change to anything.