- Create a manual scene in Mi Home for the device you'd like to control
- Use Http Toolkit to figure out the scene id.
- Install the app on PC and Android, follow the instructions - install CA certificate and connect
- Set to only intercept the Mi home app
- While snooping, start the scene in Mi home, then you can disconnect http toolkit
- Look for this request:
https://de.api.io.mi.com/app/scene/start
- The request body should look like this (actual values replaced with *)
data=*&rc4_hash__=*&signature=*&_nonce=*&ssecurity=*
- You will need the values for data, nonce and ssecurity. Run each one by https://www.urldecoder.org/.
- Download this python script: https://gist.github.com/socram8888/4b8949023c8e8153970764d20c935785