Simulated fan controller


#1

2) What is the expected behavior?
Everything is simulated here.
There are 2 master switches (which are Sw1 and Sw2 in these anonymized screenshots). Each controls the respective cooling/heating stage (Sw4/Sw5).
For cooling stage, Sw3 needs to be turned on before the actual cooling cycle (Sw4) using the following logic:
If tempDiff >=1 (inside >outside), turn on Sw3.
If tempDiff<1, turn off Sw3 and turn on Sw4.
Everything is tied to motion and door sensor (which are Water sensor 1 and 3).

3) What is happening/not happening?
If I replace tempDiff with a temperature sensor (like in the first screenshot, line 27-29), everything works fine.

If I use tempDiff, changing temperature on the simulated temp sensor doesn’t trigger anything. Not sure what got stuck here?

4) Post a Green Snapshot of the piston

Using temperature sensor

Using variable tempDiff