Tasker Profile To Pause and Resume Spotify For Incoming Calls - Tasker Tips & Tricks

hello, i would like to make a task for incall on bluetooth in my car,
my ide' is when i recive a call the task will kill spotify app and after the call ends my spotify app turn on again and start playing music.
i have a tasker for spotify, men my phone connect to my 3mm bluetooth converter it turns on spotify and play. But now when i recive a call on my car bluetooth headset it's pause spotify and after the call ends it's not unpause my spotify.
with this task i will make spotify unpause and start play music again, so i won't have to unpause by my self.
can someone help me with this tasker or make it for me please it's would be really nice.
my spotify task script is this
http://richardpeacock.com/blog/2015...when-you-get-your-car-or-any-other-bt-device-

I've got good news for you. There is an app called Bluetooth connect & Play that does this.
With this app, you'll set the media player of your choice. When an incoming called is received the music will stop. After the call has ended the music will resume where it left off.
Download Bluetooth connect & Play
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Nice but since its supposed to be a Tasker forum, why not using Tasker
You could add an action in your already existing "Spotify In Car" task:
A1: Launch app Spotify
A2: Wait 5 sec
A3: Media Volume: Level 14
A4: Send Intent
A5: Tasker --> Profile Status --> Spotify Resume After Call --> Set ON (<----- New action]
But before you need to make a new profile named "Spotify Resume After Call" (will be turned on/off by your "Spotify In Car" task)
New profile ---> Spotify Resume After Call ---> State ---> Call (Type: Any)
Then make a new task named "Resume Spotify"
A1: (same as your Spotify In Car action #4) ---> Send intent
Set this task (Resume Spotify) as the EXIT task (red arrow pointing left) of your "Spotify Resume After Call" profile
Add an exit task to your "BT connected to your car bluetooth" profile
Task: Tasker --> Profile Status --> Spotify Resume After Call --> Set OFF
So now when your phone is connected to your car bluetooth, spotify will launch and play and if you get a call, it will resume itself after the call.
Will make the profiles and tasks and share it here in a few min

@alray that sounds really good thanks

ekka1337 said:
@alray that sounds really good thanks
Click to expand...
Click to collapse
Here it is, You'll need these 2 profiles and 3 Tasks attached below
Tested and working fine on my phone.
Hope it helps
Alternatively the other solution is fine, I just wanted to try a Tasker only solution

Thanks i'am gona try this out to day

The only thing that dont work with the tasker is, when it start spotify it's not start playing any music

Related

Unified Remote - it works on Galaxy Gear!

After listening to some tips on this forum about Unified Remote, I just wanted to share good news with you guys.
The app DOES WORK! It doesn't require tethering through phone, as there is a direct connection made between Gear-PC. Your PC must be equipped in bluetooth of course. Make sure you turn on bluetooth in Unified Remote options on your PC. After that search for new server with your Gear.
Below few screenshots of sample remotes. There is about 0,3 sec lag so it's nearly latency free
I love the idea of controlling my PC from my wrist. I can change volume, shuffle songs, play/pause movies and way more.. LOVE LOVE LOVE IT!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Mouse control - just move your finger around the screen to control the pointer
Media controller - change volume, songs etc (Winamp, Media Player, MusicBee, Foobar etc)
i created this small remote to control media player classic. i can play/pause videos, switch to next episode, rewind etc.
it's sending keystrokes to your currently running app, so you can create anything you like.
How it works? And for wich gear it is?
Hello!
This works on gear 1 or gear 2? Or both?
And how you got the App on the gear? Or it´s a ready Download on GalaxyGear Apps?
Thanx
Tonerwerk
I have a HTPC (Home Theater PC) at home which I control using a BT keyboard (and build-in mousepad).
I have XBMC running on it.
Would I be able to control my XBMC with this app ?
Would be awesome if I could
Where is this app?
Android or Tizen?
I have it on my Gear 1 with the Null Rom. Unified Remote is a Play Store app so you need to be on Null. I've used it via BT on my HTPC with XBMC and Spotify. Works great!
wilbr said:
I have it on my Gear 1 with the Null Rom. Unified Remote is a Play Store app so you need to be on Null. I've used it via BT on my HTPC with XBMC and Spotify. Works great!
Click to expand...
Click to collapse
Great to hear !
I also have Null 23 on my Gear 1 and a HTPC with XBMC, so I will surely give it a try !
Thanks mate !

How to use answering machine

I set up the greeting for the answering machine and enabled it but calls still just go to my regular voicemail? How to I properly set this up?
Check Step 5 to adjust time before answering machine start record call
Step 1
Go to settings on the Sony Xperia Z2. You can access settings via the notification bar or the app launcher.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 2
Open the Call settings option.
Step 3
You’d be able to see quite a few options in the 'Other Call Settings'. Tap on 'Answering Machine' to proceed.
Step 4
Simply hit the checkbox against the Answering Machine. Now, let’s take a look at the options available allowing you to take the maximum benefit of this feature.
Step 5
The 'Pick up after' option gives you the ability to configure the exact time when the call should be answered automatically. You can also use this feature when you’re roaming, although you’ll incur charges for incoming calls.
Step 6
'Greetings' is a vital feature, since this is where you’ll be recording the voice message you want to be played back to callers. You can also record different messages for various situations and then simply select any of them, depending upon your need. Sadly, there’s no granular control and all the callers will get to hear the same message – you can't limit this to certain contacts or set different greetings for different ones.
Step 7
The best part about the feature is that the caller can also record a message for you after hearing your greeting, ensuring that you can get important messages in case of an emergency.
Here’s the Answering Machine feature in action
You can also pick up the call when the person is leaving you a message, if you deem it important.
There you go, you’ve successful set up the Answering Machine feature on your swanky Sony Xperia Z2! Let us know in comments below how this feature works for you and whether you’d like such options to be available on other smartphones.
Thanks got it working, the only thing I don't like is if I reject the call, it sends them to my T-Mobile Voicemail instead of the built in answering machine.
slyr114 said:
Thanks got it working, the only thing I don't like is if I reject the call, it sends them to my T-Mobile Voicemail instead of the built in answering machine.
Click to expand...
Click to collapse
You can have the voice mail service turned off by your provider, I do this by default as mine charged for listening to voice mails.

[GUIDE][Difficulty: Advanced] Custom Sleep Timer for any Audio App

Sleep timers are a pretty crucial feature for anybody who likes to listen to music, podcasts, or other audio at night. Using Tasker, we can make our own custom sleep timer.
Disclaimer: this was created by Rachet_Guy over on /r/Tasker. Credits to him for putting this together!
Instructions
Create a new profile and name it "Sleep Timer".
Add a Time context, and set it to every 2 minutes (or however long you want it to run before the volume decreases).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Create a new task, and name it "Sleep Timer".
Variables --> Variable Set. Name %media_start_vol and set it to a value you feel comfortable with.
Variables --> Variable Set. Name is %vol_decr and set it to a decrement value. NOTE: you must pick a starting volume and/or a decrement volume such that when you subtract the two eventually the value should equal 0, otherwise Tasker will not be able to set the final volume level and will fail.
Task --> If. If %SleepTimerRunning != 1 AND %PENABLED !~ *Sleep Timer. This is basically checking where I'm at. If I haven't started the sleep timer yet, then we'll start it from the beginning.
Alert --> Flash. Text: SLEEP TIMER - CYCLE BEGIN.
Audio --> Media Volume. Set Level to %media_start_vol.
OPTIONAL: if your music player supports an intent broadcast or has a plugin to start audio playback, then you can create an action to start it here. Otherwise, start audio playback before running the task.
Tasker --> Profile Status. Name: Sleep Timer. Set: On.
Task --> Wait. Wait 1 second.
Variables --> Variable Set. Name %SleepTimerRunning To 1.
OPTIONAL: Plugin --> Zooper Widget Variable. Configuration: #TSLEEPTIMER# = 1. This is if you want a Zooper widget that shows when the sleep timer is on.
Task --> Else If. If %SleepTimerRunning = 1 AND %PENABLED ~ *Sleep Timer* AND %VOLM > 0. This is checking to see if the sleep timer is still active and if the media volume is still active.
Variables --> Variable Set. Name %curr_vol to %VOLM. Set the current volume variable to the media volume.
Variables --> Variable Set. Name %next_media_vol to %curr_vol-%vol_decr. We're decrementing the current volume.
Audio --> Media Volume. Level: %next_media_vol. Changing the media volume.
Alert --> Flash. Text: VOLUME LOWERED TO - %next_media_vol
Task --> Else.
Tasker --> Profile Status. Name: Sleep Timer, Set Off.
Task --> Wait. Wait 2 seconds.
Media --> Media Control. Cmd: Toggle Pause. Simulate Media Button: On. For App: choose the music app you want it to broadcast to. Check If and set it to If %SleepTimerRunning eq 1.
Variables --> Variable Set. Set %SleepTimerRunning to 0.
OPTIONAL: Plugin --> Zooper Widget Pro Variable. Configuration: #TSLEEPTIMER# = 0. We're toggling the Zooper Widget to show us that it's off.
Audio --> Media Volume. Level: %media_start_vol
Alert --> Flash. Text: SLEEP TIMER - CYCLE END
Task --> End If.
Exit out, and the profile creation is done.
Now, TURN OFF THE PROFILE! You don't want it running unless you explicitly tell it to! You can run it in many different ways, me personally I use a Zooper Widget to make it run, but you can simply create a homescreen shortcut using Nova or Apex Launcher to launch the Sleep Timer task.
Here are screenshots of the task:
I'll attach the XML file below. Import it by moving it to /sdcard/Tasker/Profiles, then opening Tasker and long-pressing on the Profile tab up top then pressing Import.
Thank you. Does this works on Youtube?
I'd change it so that it would PAUSE ( + Close + Disconnect any bluetooth speakers ) the media app

activate a activity when in location HELP

Hi everyone. I set up an activity that should be activated with the location via GPS and the network. however it does not work even if they are in the exact position. Could someone tell me if these functions on the position work immediately and with the screen off or is it useless that I continue to study? thank you
Yeah, it works. I use it every day.
Can you explain your profile? Maybe I can help.
aleavenger said:
Yeah, it works. I use it every day.
Can you explain your profile? Maybe I can help.
Click to expand...
Click to collapse
please help me:
i have the necessity to open google assistant and then play a media of a command with my voice. this when i arrive near my door elecric automatic that opens with a scene of IHC app (broadlink). i already tested the command and it works. now i set the tasker so:
in profiles i set position (network and gps) set at 30 mt. range.
in activity i set: open app (google assistant) and play media (my registration vocal)
when i execute the activity voices all work, but if i go near the door nothing execute.....
perhaps i wrong something, please can you help me step by step?
i hope and thank you
myabc said:
please help me:
i have the necessity to open google assistant and then play a media of a command with my voice. this when i arrive near my door elecric automatic that opens with a scene of IHC app (broadlink). i already tested the command and it works. now i set the tasker so:
in profiles i set position (network and gps) set at 30 mt. range.
in activity i set: open app (google assistant) and play media (my registration vocal)
when i execute the activity voices all work, but if i go near the door nothing execute.....
perhaps i wrong something, please can you help me step by step?
i hope and thank you
Click to expand...
Click to collapse
Tasker location is not precise like that, you can try a geofence with autolocation plug-in, but you can't make it precisely activate when you are near the door. And Tasker checks locations based in configuration (check in Tasker preferences, monitor: GPS check seconds and Network location check seconds).
In your situation a NFC trigger is better.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
aleavenger said:
Tasker location is not precise like that, you can try a geofence with autolocation plug-in, but you can't make it precisely activate when you are near the door. And Tasker checks locations based in configuration (check in Tasker preferences, monitor: GPS check seconds and Network location check seconds).
In your situation a NFC trigger is better.
Click to expand...
Click to collapse
NFC or auto barcode for that matter

About to give up - Galaxy S21 / Always use Temporary Mute

Can anyone please help me out here
- I would greatly appreciate it as I am about to give up after trying to make this work for absolute ages.
Profile: Set Temporary Mute (2)
Restore: no
State: Custom Setting [ Type:Global Name:mode_ringer Value:0 ]
Enter: Anon (7)
A1: Custom Setting [ Type:Global Name:mode_ringer_time_on Value:1 Use Root:Off Read Setting To: ]
A2: Custom Setting [ Type:Global Name:mode_ringer_time Value:3 Use Root:Off Read Setting To: ]
So what I am trying to achieve is a Profile that runs every time I set my phone to Mute, and sets the setting "Temporary Mute" for 3 minutes.
I have used the Find functionality within Tasker and so I now 100% positively that my settings are identical to how they are set when I do it manually via the GUI.
Still the outcome is different, and i cannot for the life of me figure out why.
When setting it manually, a countdown starts (see screenshot, "Remaining time: [counting down]).
When I do it via Tasker I get a "Null" value in the place where the countdown should have started (see screenshot).
I am pretty new to Tasker so I am hoping someone experienced out there can make some suggestions as to why this would happen.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this might not help you out but just for a guideline ....
TASK ( use If statement )
Action 1
Conditions : if %VOLR >1
OR
Conditions : if %VOLN >1
Action 2
set you ringing volume to "0"
set you notification volume to "0"
Action 3
wait 3 minutes
Action 4
restore ringing volume to normal
restore notification volume to normal
Assign an icon for this task.
Close down completely the Tasker Apps.
Go to your desktop & please widget of this task on desktop.
So that each time you press this icon it will work all above action and count 3 mins then automatically restore all tones back to normal.
Thank you very much.
edmond.
eeeemc said:
this might not help you out but just for a guideline ....
TASK ( use If statement )
Action 1
Conditions : if %VOLR >1
OR
Conditions : if %VOLN >1
Action 2
set you ringing volume to "0"
set you notification volume to "0"
Action 3
wait 3 minutes
Action 4
restore ringing volume to normal
restore notification volume to normal
Assign an icon for this task.
Close down completely the Tasker Apps.
Go to your desktop & please widget of this task on desktop.
So that each time you press this icon it will work all above action and count 3 mins then automatically restore all tones back to normal.
Thank you very much.
edmond.
Click to expand...
Click to collapse
Thank you, that's a workaround that will work I believe.
I kind of got stuck in being annoyed about not getting why the way in the original question wouldn't work
dBqtjPxBDLHy2BA said:
Thank you, that's a workaround that will work I believe.
I kind of got stuck in being annoyed about not getting why the way in the original question wouldn't work
Click to expand...
Click to collapse
If my suggestion is working for you .... don't struggle with why the original method is not working....
( honestly , I faced the same in the past as you mentioned and somewhat I see solution little later from other places )
Thank you very much.
edmond

Categories

Resources