The Xiaomi Mi Band 2 is a great fitness tracker but only comes with a limited set of functions. However, with apps such as Mi Band 2 func button, Tools & Mi band and Tasker, the Mi Band 2 can do much more, such as control IoT devices.

The Tasker profiles and tasks are available on GitHub: https://github.com/maximemoreillon/mi_band_2_iot

More information about this project on my website:
http://maximemoreillon.com/projects/iot/mi_band_2.php

source