How to translate service intent (Tasker) to Automate?

255 views
Skip to first unread message

bms...@gmail.com

unread,
Feb 1, 2020, 12:26:20 PM2/1/20
to Automate
Can anybody help me with this, please:
I want to automate startup AudioBT Plus (a BT sound channel re-routing app) service, when connected to my cars BT -and stop service when disconnected from car BT.
According to the dev's description (XDA AudioBT thread, https://forum.xda-developers.com/showthread.php?t=2123493) service intents -as for Tasker use- are these:

com.turboled.audiobtplus.ON : Cat = Default, Target = Service. Turns ON the AudioBT Plus service.
com.turboled.audiobtplus.OFF: Cat = Default, Target = Service. Turns OFF the AudioBT Plus service.

Can anybody help me, how to translate these instructions/ intents to an equivalent Automate block (shell? App start block? Other? With which parameters?).
Thanks for any help, I cannot figure this myself!

El Cid

unread,
Feb 1, 2020, 2:48:06 PM2/1/20
to automa...@googlegroups.com
what have you tried
just a guess as i do not have app installed

blocks to try - app start, service start, or broadcast send

package name - com.turboled.audiobtplus
action - com.turboled.audiobtplus.ON
class/service - pick fro drop down list under audiobt.

what reason have you installed this app?

bms...@gmail.com

unread,
Feb 1, 2020, 5:27:41 PM2/1/20
to Automate
I have not tried anything yet -this is beyond my knowledge; and also, I have never used Tasker before; I used to us Llama before (worked great), but it does not work any more on Android 9 (S8+, unrooted).
Do You think this is the way to go; start an app block with these flags? I can give it a try,thanks for the help!

@AudioBT Plus: this app re-routes audio BT channels, works very good for routing the phone notifications (ie Waze, Google Map, Google assistant) to the car's phone ring/ alarm channel -enabling listening to the car radio, with interruptions only of phone notificaton; no need to keep BT voice in the foreground.
Maybe there are also other solutions for this; but for me it works just fine. However, after leaving the card AudioBT service needs to be terminated.

bms...@gmail.com

unread,
Feb 1, 2020, 5:53:34 PM2/1/20
to Automate
Just tried all the three suggestions (app start, service start, broadcast) with the suggested parameters; but, sadly, none of them worked for me. OR application not starting (not on the running application/ notification list), OR error messages (red).
Any other suggestion on this, please?
Message has been deleted

El Cid

unread,
Feb 1, 2020, 6:55:19 PM2/1/20
to automa...@googlegroups.com
try picking class from drop down list

or

May be you can route waze and google maps with out this app.

have you tried the bluetooth SCO set state block?

bms...@gmail.com

unread,
Feb 2, 2020, 2:23:36 AM2/2/20
to Automate
Thanks!
1, I shall try fiddling with class settings..;)

2, "May be you can route waze and google maps with out this app. Have you tried the bluetooth SCO set state block?"
This sounds very interesting, IF it is possible to listen phone notifications thru phone/ringing/alarm channel in the car -but, once again, I don't have the technical background to judge on it.
I have found the description of AudioBT, how it works (and works!): "Listen to GPS directions while using your handsfree or car music. Uses SCO profile to route audio as phone call and auto cut your music.
AudioBT is an application that unleashes the power of your in-car handsfree Bluetooth (BT) system or mono earpiece. It allows you to hear application audio messages such as GPS turn-by-turn directions from Google Navigation while you are listening to your regular radio station or music through your car stereo. This application temporarily routes audio messages from other applications to the Bluetooth incoming call audio channel, just like when an incoming call rings, interrupting your in-car audio momentarily. When the audio message is done playing, the system can return to its previous state."

Do You think it is possible to reach this (intermittent notifications on the car radio) with Bluetooth SCO set state block? And if yes, would You help me, how to set this up? Thanks again.

El Cid

unread,
Feb 2, 2020, 3:44:39 AM2/2/20
to automa...@googlegroups.com
A quick test in my car and bluetooth sco set state will route google maps to my car headset. The problem is it cuts radio permanently, until turned off. you may be able to monitor the audio level in sco channel with audio level block, and turn sco on and off according to audio level.

here is  a flow that enables and disables audiobt.

at the moment it works by pressing the A key on keyboard to enable and B key to disable just for testing
<Untitled>.flo

bms...@gmail.com

unread,
Feb 2, 2020, 5:23:48 AM2/2/20
to Automate
Thanks for the flow with AudioBT; I shall test it.

"The problem is it cuts radio permanently, until turned off." This is exactly the reason why I use AudioBT.. ;))

"you may be able to monitor the audio level in sco channel with audio level block, and turn sco on and off according to audio level.": this sounds very interesting; is this something You can put in a flow/ blocks? Would be a nice alternative to the use of AudioBT..

Message has been deleted

bms...@gmail.com

unread,
Feb 2, 2020, 6:07:35 AM2/2/20
to Automate
Should audio level check sco audio channel volumes? Or the notification/system channel? And, if this works, would this replace the use of AudioBT to reach the same result?
Sounds almost to good to be true.. 😉

El Cid

unread,
Feb 2, 2020, 7:48:55 AM2/2/20
to Automate
Are you trying to play notification on headset? or waze and maps? or both?

bms...@gmail.com

unread,
Feb 2, 2020, 10:28:19 AM2/2/20
to Automate
I need to play waze and Google maps navigation instructions on the car (interrupting the radio program, without switching to the BT input) AND Flitsmeister warnings - but Flitsmeister let's the user chose the output audio channel (media or alarm channel).
Further, of course, incoming calls, whatsapp calls are directed to the car radio; and Google assistant (when started on the phone).
These functionalities are provided by AudioBT, quite nicely; sometimes, after a phone call it drops the channel routing, needs restart.

El Cid

unread,
Feb 2, 2020, 12:26:40 PM2/2/20
to Automate
Ok, then best stick to audiobt as it is a small program an does what you need. coding all that in automate would be a lot of work.

bms...@gmail.com

unread,
Feb 2, 2020, 4:43:36 PM2/2/20
to Automate
Thanks. Gonna do that.
Reply all
Reply to author
Forward
0 new messages