1) Give a description of the problem
I’m implementing a more robust Thermostat SetPoint piston that retries setting the Heat and Cool SetPoints five times or until the SetPoint temperatures match with what’s expected. It then notifies me if it takes more iterations thatn one OR it notifies me that it failed after 5 tries.
The piston below is a test version of that new piston - intentionally written (see line ##41) to fail and therefore trip the loop counter. The loop counter is either not incrementing or it’s being reset to zero when the piston restarts.
2) What is the expected behavior?
Overall, the loop counter should increment and do appropriate things. More specifically, I didn’t expect that the piston would actually restart - and thereby resetting the loop counter. I thought the loop would run again and again until the conditions are met one way or another - OR I expected the loop counter to increment.
3) What is happening/not happening?
As written for this test, the piston should fail because line# 41 will never be true. The piston should loop 5 times, stop and then notify me that it failed.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
Thanks in advance.