Switch the color of the Xiaomi gateway

Please help set up automation. I want to switch the color of the Xiaomi gateway night light by pressing the Xiaomi button twice. I’m still a beginner and I can’t seem to be able to create such an automation in HA, although in the MiHome application I can easily configure it.