Yeelight bulbs and miband

On Mi Band 2 func Button:

  • single tap -> send command to Tasker
  • the same for the double tap (& triple if you need it).

On Tasker app:

  • + button
  • event -> system -> intent received and press back
  • in the little menu of the new profile select new task (enter a name for the task, this is to keep the mi band connected so I call it “connection”)
  • + -> System -> Send Intent -> in Action write mb2fb_connect, then go back

for actions:

  • + button
  • event -> system -> intent received and in Action write mb2_tap1 for the single tap, then press back
  • in the little menu of the new profile select new task (enter a name for the task, like turn on)
  • + -> plugin -> Yeelight
  • in configuration select the Bulb with Add Device -> Device and the Action you want to make with the single tap (in my case ON) and go back
  • repeat this steps for the double tap (in Action you must write mb2_tap2 & mb2_tap3 for the double and triple tap, mb2_tap4 for the lift wrist if you need it)