Expression for "if X is 5 degrees greater than Y"?


#1

1) Give a description of the problem
My piston is controlling a duct blower fan that moves air from one room to another. I currently am using the greater than if statement. The fan runs too much because the temps between the rooms can vary by only fractions of a degree and the pistion will continue to run the blower

2) What is the expected behavior?
I would like it to turn on when temp in room x is 5 degrees greater than temp in room y.

4) Post a Green Snapshot of the pistonimage

thanks for any help!


#2

You can try it as an expression:

if ([sensor1:temperature] - [sensor2:temperature]) > 5


#3

Just what I needed, thanks!

wow the wikki has come a long way since I last saw it, I should have checked there first…