I have been trying to solve a problem with some devices being slow to respond to commands. This is an inconsistent issue in that sometimes a device, (say a Nest thermostat) will respond instantly, and other times it can take several seconds before the temperature at the thermostat is updated.
To deal with this problem I have been experimenting with in-line time delays and repeating a command, While loops. and Repeat loops. The Repeat loop appears to be the most promising, but I am not 100% convinced it is really doing what I think it is.
When a Repeat loop is run, the commands will be repeated until all of the conditions in the loop are satisfied. But are these conditions truly the state of the device? Or are they just responding to SmartThings saying “Got your command - thanks.”?