Mqtt monitoring / syncing states, need bit of help

thanks!
you elaboration makes perfect sense and moving RBE to the end did the trick