• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Disconnect earbuds after a certain time

I've just started using Tasker and am seeking a way to disconnect the earbuds after an hour. Specifically I'm listening to music to help fall asleep but in the morning I need the built in alarm clock to sound over the speakers and not the headphones (which in most cases I have pulled out of my ears in the middle of the night).
 
I've figured it out. Not exactly the way I had envisioned but it works the same. First I added Wait for a certain period of time then "Media Action - Music Stop" and then "Audio Action - Speakerphone - On". In the morning the alarm sounds over the speakerphone instead of the headphones.
 
Back
Top Bottom