Continuing the discussion from webCoRE Beta Milestone 2:

Hi All–
I’m making a piston to respond to my thermostat’s temp up and temp down commands. Since it’s an IR up/down switch, the command has to be executed the number of times as i where “i = (originalSetpoint - NewSetPoint).”

The problem I’m running into is that I don’t know how to make originalSetpoint (which is based on the actual setpoint) remain a static number. So i keeps going to 0 before the repeat loop finishes its i={i-1} until i=0 executions of the command.

I tried all different types of variables as well as the “Capture Attributes” option (which I’m probably not comprehending nor sure of the syntax).

Thanks for any advice you may offer.

Can anybody please offer some advice? I’m at a loss. I can’t imagine that it would not be an available option.

Thanks man. I actually figured it out. It was the Previous CoolingSetPoint option that I needed to be using.