That makes it very tricky to avoid such problems. I suspect you will be able to trip it into the loop condition by switching both switches at approximately the same time.
One possibility might be to feed the three MQTT values into a Join node in key/value pairs mode, sending after every value comes in.
I know logically what to do next but I am not sure the best way to code it. I am starting a new thread to ask for help with the best way to do it.
1 Like