How to add a password in Mi Home App in order to prevent devices from being controlled directly from the home page ?

Solution:

Step 1 : Open Mi Home App and click on Profile icon

Step 2 : Go to Settings then select “Privacy settings”

Step 3 : Set your password