Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

bike task not starting

99 views
Skip to first unread message

Andrea Borgia

unread,
Sep 29, 2024, 10:06:44 AM9/29/24
to Tasker
Hi.

I would like to detect when my phone is connected to my e-bike over BT.

So I took a tried and tested profile for my auto (for detecting connection to the car audio adapter), changed the BT MAC with that of my bike using the picker (the bike IS paired) and tried it out... even when the bike is connected with its own app (beeps and then lights come on), the task does not run.

<TaskerData sr="" dvi="1" tv="6.3.13">
<Profile sr="prof5" ve="2">
<cdate>1438290902246</cdate>
<edate>1727618375101</edate>
<flags>9</flags>
<id>5</id>
<mid0>37</mid0>
<mid1>41</mid1>
<nme>TVadoConnChk</nme>
<State sr="con0" ve="2">
<code>4</code>
<Str sr="arg0" ve="3">Turbo Vado 4.0</Str>
<Str sr="arg1" ve="3">.... MAC address ....</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="1"/>
<Int sr="arg5" val="0"/>
<Int sr="arg6" val="0"/>
</State>
</Profile>
<Task sr="task37">
<cdate>1438290921306</cdate>
<edate>1726764038838</edate>
<id>37</id>
<nme>TVadoConnSet</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TVadoConn</Str>
<Str sr="arg1" ve="3">X</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="0"/>
</Action>
</Task>
<Task sr="task41">
<cdate>1438290981924</cdate>
<edate>1726764053021</edate>
<id>41</id>
<nme>TVadoConnReset</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%TVadoConn</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>

If I edit this task while connected to the bike, I even get a warning that the condition does not match any device and will not trigger.

I am puzzled, what could be the problem here?

Thanks,
Andrea.

aa6vh

unread,
Sep 29, 2024, 10:53:41 AM9/29/24
to Tasker
None of us mere humans read XML. That is for computers to do. You want to export the profile's description instead.

Andrea Borgia

unread,
Oct 2, 2024, 1:14:30 PM10/2/24
to tas...@googlegroups.com
Here is the description:


Profile: TVadoConnChk
Settings: Notification: no
State: BT Near [ Name:Turbo Vado 4.0 Address:.... MAC address .... Major
Device Class:Any Standard Devices:On Low-Energy (LE) Devices:On Unpaired
Devices:Off Toggle BlueTooth:Off ]



Enter Task: TVadoConnSet

A1: Variable Set [
Name: %TVadoConn
To: X ]



Exit Task: TVadoConnReset

A1: Variable Clear [
Name: %TVadoConn ]


I set a variable to represent a state so that I can use this same state
in multiple profiles but that is kind of beside the point: alright at
save-time I get a warning that it won't trigger.


BR,

Andrea


Rich D

unread,
Oct 4, 2024, 4:13:20 PM10/4/24
to tas...@googlegroups.com

What are the details of the error?

Why are you using 'Bluetooth near' and not the 'Bluetooth connected' profile context?


--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/97fc5b9f-b202-4007-89bb-5b7609998b74%40borgia.bo.it.

Andrea Borgia

unread,
Oct 5, 2024, 2:33:36 AM10/5/24
to tas...@googlegroups.com
Details are...

Warnings:
No currently paired device matches this context so it can never activate.

I believe the "bt near" came as a last ditch effort, the original (car audio) used "BT connected". 

I will retry with "BT connected", just to be extra safe.

Thanks,
Andrea.

Andrea Borgia

unread,
Oct 5, 2024, 5:22:03 AM10/5/24
to Tasker
Yup, switched to "bt connected", no warning on saving the profile, it simply does not work: I've tested it when the bike was already connected to the and ready to record the route, neither "bt near" nor "bt connected" was triggered!
I'm puzzled...

aa6vh

unread,
Oct 5, 2024, 11:52:46 AM10/5/24
to Tasker
So do you want to show us the profile as changed (description of course)?

Note that in the profile type of "BT Connected" I believe that if you specify both a name and a MAC address, they both have to match. I would suggest only specifying one (I use the MAC address). Make sure whatever you specify exactly matches the device itself.

Andrea Borgia

unread,
Oct 5, 2024, 12:48:07 PM10/5/24
to tas...@googlegroups.com

Hi again,


ah-ha, if the name also has to match, then we're on to something! The old profile for car audio had a reasonable name so I left it alone, whereas the bike has a serial number (which is fine in the shop to find the correct one but otherwise not really).

The device name has this form: WBS + serial number


What I wrote as "name" below is a shortened version of the commercial name.

The current profile:


    Profile: TVadoConnChk

    Settings: Notification: no

    State: BT Connected [ Name:TVadoConn Address:....Mac address ....]

    

    

    

    Enter Task: TVadoConnSet

    

    A1: Variable Set [

         Name: %TVadoConn

         To: X ]

    

    

    

    Exit Task: TVadoConnReset

    

    A1: Variable Clear [

         Name: %TVadoConn ]

    

    I'll try again as soon as I have a chance, thanks.


Andrea Borgia

unread,
Oct 7, 2024, 1:41:34 PM10/7/24
to Tasker
Case closed, just another case of PBCAK ;)
Thanks again for your tip, indeed *both* name and mac address have to match... I probably knew that once but I haven't been mucking around with new rules in ages, basically if it works just leave it be :)
Reply all
Reply to author
Forward
0 new messages