Bizarre task execution behaviour

42 views
Skip to first unread message

Daniel Matthews

unread,
Sep 19, 2025, 6:15:48 PM (6 days ago) Sep 19
to Tasker
I've got a task which turns BT off the notifies visa a toast and alert.

If I perform the BT off after the notifications everything works as expected, but if I perform the BT OFF first then the notifications, the notifications never fire.

Here's the task description:

```
Task: BT off
Settings: Abort Existing Task

A1: Stop [ ]
    If  [ %BLUE eq off ]

A2: Perform Task [
     Name: BT cancel timer & notification
     Priority: %priority+1 ]

A3: If [ %OsSupportsBtChange != 1 ]

    A4: Perform Task [
         Name: Toast
         Priority: %priority+1
         Parameter 1 (%par1): {
             "message": "BT change not supported",
             "title": "BT",
             "category": "%Category_Bluetooth",
             "icon": "android.resource://net.dinglisch.android.taskerm/drawable/mw_device_bluetooth"
         }
         Structure Output (JSON, etc): On ]

    A5: Stop [ ]

A6: End If

<bug: turning off before stops notify and toast running>
A7: [X] Bluetooth [
     Set: Off ]

A8: Perform Task [
     Name: Notify
     Priority: %priority+1
     Parameter 1 (%par1): {
         "message": "BT turned off at %TIME.<br/>Last known battery level: %PreviousBatteryLevel%",
         "title": "%BtLastDevice",
         "useNotify": %NotifyBtBatteryWhenBtTurnedOff,
         "category": "%Category_Bluetooth",
         "icon": "android.resource://net.dinglisch.android.taskerm/drawable/mw_device_bluetooth"
     }
     Structure Output (JSON, etc): On ]

A9: Perform Task [
     Name: Toast
     Priority: %priority+1
     Parameter 1 (%par1): {
         "message": "BT turned OFF",
         "title": "BT",
         "category": "%Category_Bluetooth",
         "icon": "android.resource://net.dinglisch.android.taskerm/drawable/mw_device_bluetooth"
     }
     Structure Output (JSON, etc): On ]

A10: Bluetooth [
      Set: Off ]


```

Daniel Matthews

unread,
Sep 22, 2025, 5:59:22 AM (3 days ago) Sep 22
to Tasker
No-one else experienced execution not continuing when turning off BT?

Rich D

unread,
Sep 22, 2025, 6:39:39 AM (3 days ago) Sep 22
to Tasker Google Groups Post
When troubleshooting and posting for help you should always break it down to its simplest form. If the simplest from works then slowly add your old code back in until it breaks..

This works for me....

    Task: test bluetooth
    
    A1: Bluetooth [
         Set: Off ]
    
    A2: Flash [
         Text: working
         Continue Task Immediately: On
         Dismiss On Click: On ]
    
    

Rich D

unread,
Sep 22, 2025, 6:42:50 AM (3 days ago) Sep 22
to Tasker Google Groups Post
When troubleshooting and posting for help, you sould always break it down to its simplest form. If the simplest form works the slowly add you old code back in untill it breaks.

This works for me..

Daniel Matthews

unread,
Sep 22, 2025, 9:19:13 AM (3 days ago) Sep 22
to tas...@googlegroups.com
I already did, that doesn't work for me either, the flash doesn't appear.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/fRoXU-vm5Js/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tasker/CADuUTAoXHbpu48BqUMnnwy%2BYsYSFWYChw-%3DixL8XCCOA9muehw%40mail.gmail.com.

aa6vh

unread,
Sep 22, 2025, 10:29:06 AM (3 days ago) Sep 22
to Tasker
Did you set the action option "Continue Task on Error"? Its possible an error condition was thrown, which will stop the task execution. You can then check for an error after the action, and flash the error message if there is one.

Daniel Matthews

unread,
Sep 23, 2025, 3:15:02 PM (2 days ago) Sep 23
to Tasker
Yes, I did check that, no error, and execution stops at the BT off step. So strange.
Reply all
Reply to author
Forward
0 new messages