You can turn on "background operation" setting of MESH app to run your recipe when the phone goes on sleep mode.
Please follow the instruction below.
1. Tap "..." icon on the upper right to show setting menu on canvas.
2. Select "Settings" on the setting menu.
3. Turn on "Background Operation"