- Download the Xiaomi app https://play.google.com/store/apps/details?id=com.xiaomi.smarthome
- Create an account
- Add the M1S Gateway in the app (hold button on M1S for 10 seconds to enter discovery mode)
- Folow the instuctions here: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
- Copy the output
You should get an output something like the following