Xiomi (MI) Switch rule - nothing happens

Please use the code fences
What do you see in the logs when you press the button?