If you have a lot of sensors it might be better to look at the raspbee module with the pimatic-raspbee plugin. I’m now working on getting more Xiaomi plugins to work. The raspbee module supports up to 200 devices.
currently only the motion sensor and contact sensor are in the plugin. I wil add a pull request for the light sensor today and maybe I can get more sensors to work.