I am a bit pressed for time at the moment, but I wanted you to get familiar with the dragging & dropping of code, since that is used in nearly every piston I edit.
I would probably structure your original request something like this
Notice this structure has only one trigger. (IF Outside Temp changes)
Everything else must remain as conditions for this logic to flow correctly.
I am using AccuWeather for my outside temp above, but any device that reports temp should work. On the other hand, if you are trying to use $twcweather for the outside temperature, then this piston will not work.
(You’d have to program periodic polling to find the current temp)