Start/Stop Google Music in Car Automatically

Description:  IF bluetooth network “BTC450” connects to phone THEN simulate Play Media

OS – Android Version:  6.0.1
App – Tasker [Link] – can use this or Trigger [Link]
App – Bluetooth Auto Connect [Link] – not required, but use to prioritize my car bluetooth over headphone bluetooth
App – Google Music [Link] – not required, but like automatic playlist updating so what  I use
Device: BTC450 [Link] – not required unless want to play through auxiliary input

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Profile sr="prof2" ve="2">
<cdate>1455003566461</cdate>
<edate>1460651608890</edate>
<id>2</id>
<mid0>3</mid0>
<State sr="con0" ve="2">
<code>483817592</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.kanetik.bluetooth_profile_condition.extra.BLUETOOTH_PROFILE>0</com.kanetik.bluetooth_profile_condition.extra.BLUETOOTH_PROFILE>
<com.kanetik.bluetooth_profile_condition.extra.BLUETOOTH_PROFILE-type>java.lang.Integer</com.kanetik.bluetooth_profile_condition.extra.BLUETOOTH_PROFILE-type>
<com.kanetik.bluetooth_profile_condition.extra.INT_STATE>1</com.kanetik.bluetooth_profile_condition.extra.INT_STATE>
<com.kanetik.bluetooth_profile_condition.extra.INT_STATE-type>java.lang.Integer</com.kanetik.bluetooth_profile_condition.extra.INT_STATE-type>
<com.kanetik.bluetooth_profile_condition.extra.INT_VERSION_CODE>4103</com.kanetik.bluetooth_profile_condition.extra.INT_VERSION_CODE>
<com.kanetik.bluetooth_profile_condition.extra.INT_VERSION_CODE-type>java.lang.Integer</com.kanetik.bluetooth_profile_condition.extra.INT_VERSION_CODE-type>
<com.kanetik.bluetooth_profile_condition.extra.LONG_DISABLE_DELAY>0</com.kanetik.bluetooth_profile_condition.extra.LONG_DISABLE_DELAY>
<com.kanetik.bluetooth_profile_condition.extra.LONG_DISABLE_DELAY-type>java.lang.Long</com.kanetik.bluetooth_profile_condition.extra.LONG_DISABLE_DELAY-type>
<com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE>00:18:91:D8:F1:05</com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE>
<com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE-type>java.lang.String</com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE-type>
<com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE_NAME>BTC450</com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE_NAME>
<com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE_NAME-type>java.lang.String</com.kanetik.bluetooth_profile_condition.extra.STRING_DEVICE_NAME-type>
<com.kanetik.bluetooth_profile_condition.extra.UUID_PROFILE_ID>eccd75ad-4b0e-4590-bc49-6d18d0afd999</com.kanetik.bluetooth_profile_condition.extra.UUID_PROFILE_ID>
<com.kanetik.bluetooth_profile_condition.extra.UUID_PROFILE_ID-type>java.lang.String</com.kanetik.bluetooth_profile_condition.extra.UUID_PROFILE_ID-type>
<com.twofortyfouram.locale.intent.extra.BLURB>BTC450 connected</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%connecteddeviceLast connected deviceDisplay name of the most recently connected BT device&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%connectedcountCount of connected devicesCount of all of the currently connected BT devices.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;%connecteddevicesAll connected devicesArray of all of the currently connected BT device name. Reference each one by adding a number to the end of the variable name: %ConnectedBTDevices1, %ConnectedBTDevices2, etc.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;%nearbydeviceMost recent nearby deviceDisplay name of the most recently discovered nearby BT device&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;%nearbydevicerssiMost recent nearby device signal strengthSignal strength of the most recent nearby device&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;%nearbycountCount of nearby devicesCount of all of the nearby BT devices.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6&gt;%nearbydevicesAll nearby devicesArray of all of the nearby BT device names. Reference each one by adding a number to the end of the variable name: %NearbyBTDevices1, %NearbyBTDevices2, etc.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7&gt;%nearbyrssisAll nearby devices' signal strengthsSignal strengths of all nearby device. Reference each one by adding a number to the end of the variable name: %NearbyBTDevicesRssi1, %NearbyBTDevicesRssi2, etc.&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.kanetik.bluetooth_profile_condition</Str>
<Str sr="arg2" ve="3">com.kanetik.bluetooth_profile_condition.ui.EditActivity</Str>
</State>
</Profile>
<Task sr="task3">
<cdate>1455003662435</cdate>
<edate>1468146730850</edate>
<id>3</id>
<nme>Outlook</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>443</code>
<Int sr="arg0" val="3" />
<Int sr="arg1" val="1" />
<App sr="arg2">
<appClass>com.android.music.activitymanagement.TopLevelActivity</appClass>
<appPkg>com.google.android.music</appPkg>
<label>Play Music</label>
</App>
</Action>
</Task>
</TaskerData>

Leave a Reply

Your email address will not be published. Required fields are marked *