Hi all. I’m using a template in HA to make decisions about cooling based on temperatures. I noticed that things weren’t happening exactly when I expected. I ended putting the template into the template editor then substituting the actual sensor values for the expression and finding something unexpected.
The template below is asking “Is 21 minus 20.7 greater than 0.3”. According to the math I learned at school many years ago the answer should be false, because 21 - 20.7 = 0.3, and 0.3 > 0.3 should evaluate to false.