The app https://github.com/Freeyourgadget/Gadgetbridge sends you broadcasts when the button on Mi Band 2 is pressed. the oh app could fetch them and set an item to a specific value. Than a rule on the oh server can listen for this item and do stuff.
The devs of GB say that GB will never have internet permissions and there is no foss tasker alternative, so there is currently no foss app to handle these broadcasts.
The app https://github.com/Freeyourgadget/Gadgetbridge sends you broadcasts when the button on Mi Band 2 is pressed. the oh app could fetch them and set an item to a specific value. Than a rule on the oh server can listen for this item and do stuff. The devs of GB say that GB will never have internet permissions and there is no foss tasker alternative, so there is currently no foss app to handle these broadcasts.