There’s nothing better than going to sleep with some relaxing music in the background. With Tasker, you can automate this and stop everything at a specific time.
- Make a new task
- Media => Media Controls => cmd.
- cmd => Stop
- Click on the grid type square icon (the bottom right), this is the music app.
- Go to the menu of Tasker and select the icon Task timer and put it on your home screen.
- Link the sleep timer