1) Give a description of the problem
I’m trying to create a nightlight piston. The problem is that maybe about 10% of the time, the nightlight doesnt activate even when the piston has successfully launched. Looking at the logs, it seems that it may be a communication issue. So I’ve placed a turn on, wait 3 seconds, turn on string of commands, and this seems to solve the issue. This seems a little archaic, so I tried to do this with loop commands (send turn on command until light is on, or while loop). the until loop doesnt work at all. The while loop goes through more than 10 cycles before it stops looping. I thought it may be a lag, even a 10 second delay does not seem to help.
2) What is the expected behavior?
ST will send a signal to turn on the light. if that fails to light, then it will loop until it is successful.
3) What is happening/not happening?
The loop continues for many cycles. So if I were to turn off the light manually, it will continue to turn on until the loop ends.
**4) Post a Green Snapshot of the piston![
Will a device poll solve my problem. Does this poll a single device? Refresh did not work.
Thanks in advance!