1

autonotification action antouchaction not working ?

I've installed KDE Connect on my Pixel 6 and Dell laptop. But they don't seem to automatically connect. I posted a question on the KDE subreddit, and had a couple of responses that KDE Connect it doesn't seem to work as expected. The only way I've been able to get the phone and laptop to connect is my manually tapping the KDE Connect notification.

So, I thought I could use Tasker to simulate tapping the notification. I've done some searches, and from that created the below profile. However, it doesn't seem to work either.

The match on A4 is triggered, and it falls thru A5 thru A13, but the A12 AutoNotification Query still returns 'Not connected to any device' . I'm using the Flash as debugging, wouldn't be part of the final solution.

I have discovered that if I edit the task A8, and go to

AutoNotification Action

Configuraton

Advanced

Intercept Action ID

%antouchaction ( without the () )


and blank out the %antouchaction and then manually run the task, it works. But if I re-run the task if fails. ( I have to reboot phone to reset the KDE Connect notification to the not connected value ). it will then fail, so if I re-edit the task and set it back to %antouchaction , and manually run the task it will work. So toggling the 'Intercept Action ID' solves the problem. But of course is an impractical solution - to have to change it each time.

I've been running the task manually from within the task task, not waiting for 15 minute time period to expire.


Profile: KDE Connect AutoNotification
Time: From 8:00AM every 15m Till 11:59PM


Enter Task: Anon

A1: [X] Beep [
Frequency: 8000
Duration: 1000
Amplitude: 50
Stream: 3 ]

A2: Wait [
MS: 0
Seconds: 3
Minutes: 0
Hours: 0
Days: 0 ]

<KDE Connect must have been paired to the PC at least once>
A3: AutoNotification Query [
Configuration: Persistency Type: Persistent Only
Notification Apps: KDE Connect
Text: Not connected to any device
Get All Fields : true
Timeout (Seconds): 20
Structure Output (JSON, etc): On ]

A4: If [ %antext() ~ Not connected to any device ]

A5: Flash [
Text: antext matched
Continue Task Immediately: On
Dismiss On Click: On ]

A6: Flash [
Text: %anapp()
%antext()
%antouchaction()
Continue Task Immediately: On
Dismiss On Click: On ]

A7: Wait [
MS: 0
Seconds: 3
Minutes: 0
Hours: 0
Days: 0 ]

A8: AutoNotification Actions [
Configuration: Notification Apps: KDE Connect
Intercept Action ID: %antouchaction
Timeout (Seconds): 20
Structure Output (JSON, etc): On ]

A9: Wait [
MS: 0
Seconds: 3
Minutes: 0
Hours: 0
Days: 0 ]

A10: Flash [
Text: KDE Connect notification pressed
Continue Task Immediately: On
Dismiss On Click: On ]

A11: Wait [
MS: 0
Seconds: 5
Minutes: 0
Hours: 0
Days: 0 ]

A12: AutoNotification Query [
Configuration: Persistency Type: Persistent Only
Notification Apps: KDE Connect
Get All Fields : true
Timeout (Seconds): 20
Structure Output (JSON, etc): On ]

A13: Flash [
Text: After press ...
%antext()
Continue Task Immediately: On
Dismiss On Click: On ]

4 replies

DS

Not sure about the URI, but did find mention of it in the export under Tasker.  Don't see a way to attached it to this reply.  I see you've mentioned 'paste it here', so here it is.

Thinking maybe there was something odd about the KDE Connect notification, I created a different profile from scratch, that had an AutoNotification Query and AutoNotification Action using 'Intercept Action ID of %antouchaction' for the VPN I have running, it didn't simulate a tap on that notification either.  I do have KDE Connect app excluded from the VPN .  

I had seen I think the tasker video with the lastest updates, and it mentioned Accessibility in Setting (for a different use than AutoNotification in Tasker, but thought I'd look).  I didn't see any Accessibility entires for AutoNotification.

I have a feeling it is something stupid I've done.

taskerprofile://H4sIAAAAAAAAAO1d7XPbuNH/fPorMJ55ru1M9MJXSTlFM47jtu7lcnli33We6YcMREIyG4pkScqJ+tc/AEhQIAFSsta5Nj5+uJjELrC/BRdYYAHtLe5w9omkb3COUZa+urhA/kPw6sK4QPnDqwt3ZIzM+cVy8N3ifRqvg5BwpoQ+G5Tlgby6MBn1u4Xn45wsDXdmTg3DmE+nhrsYF4WMTATZmppTe+7a5nQxJhV5HeJNtpwtxsUDKwr8pWEsxvQPe9sG/mRpzBdj/sBKoi1Z/vjmGl3FUUS8HF3u8vhdnAfrwMN5EEeLMeNgnHfBtoDtxdGEo6UC77m0+/Jtu5zQt23xlpJkaS7G7I94f8Dh0nB4GXvkxfn90rQW47xsI98uHYov540sxkwo67Zx2W/smXU1B5LTB2Ou6ThzYtlT8xEdx3ppXvVSkgZLY0JVYQ+s4NJjXcFlYi+fFF9sWvaBF/u05SntZP7Ey+JoucZh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Y9akNLLlK5jglQRlepkyb5l0xRmdvGksJSVuVJmCQDq94b9FYF6gxyLdW4msV67m5RLZbFaQ3DqpVp+LoF6ayKExSNFF2Oa6HHXzMoqUThOdK4Yk2a1akMumtFqiDV5U+rwezMmqZie1Q2re6UXn1qrnMOIarUXNzLBv6g3H3d+IO7w5FH4Je/2qhK+C+52O/RE5Kyn2YR/wU7csER5Irnk2T0+tbPyJ4kY9jzOCHrD8i6D8j6I7DnegRmeTN3ZRBr6Pu+PbTnMzxcGb479Ezf9eZkQiZr6xs4Amts4rLf9WmY2hlf8WBsdubpgJyevnZhiP/vC4iPjP5w4BkcDsy/zcMBuoWg8+hyUPwl6Ruc4+Xg/wFSWwwuQ8MAAA==

DS

ADDITIONAL

For testing, I created a new task (not associated with a profile) that had two entries

1. AutoNotification Query with just the app selected

2. AutoNotification Action with just the app selected, and the 'Intercept Action ID of %antouchaction'       ( no Parenthesis )

I run it using the arrow key in the lower left of the screen, and it works.

DS

ADDITIONAL -part 2

I restarted my phone, and the test task with the 2 entries now does not work when I manually ran it.  So I turned off the two entries, and added two new entries (quesy and action) and manually ran it, and it worked.  Restarted phone, and manually ran the test task, and it did not work again.

DS

Thanks for you help, this seems like it should be a simple task to AutoNotification Action to simulate a tap of the notification.  I must really have something messed up.

I created the two actions, with the same result, and run it manually, and it failed.  tried it twice. 

I did some more tests without your suggestion of two ACTIONs, and can't find a pattern :

edit task to blank out %antouchaction

restart phone

works

change to use %antouchaction

restart phone

manually run

works

restart phone with %antouchaction

manually run

works

restart phone with %antouchaction

fails

manually run without %antouchaction

failed

restart phone without %antouchaction

manually run

failed

change to %antouchaction

works

restart phone with %antouchaction

falied

change to without %antouchaction

manually run

worked

restart phone without %antouchaction

manually run

failed

change to %antouchaction

manually run

failed

change to without %antouchaction

manually run

worked

And to complicate things, with your suggestion of the ACTION twice - one with and one without %antouchaction .  I tried with letting tasker trigger the profile with the 'every 15 minutes' expiring, and it only seems to get to the first AutoNotification ACTION .

This is the task as it is now :

   Profile: KDE Connect AutoNotification
    Time: From  8:00AM every 15m Till 11:59PM
   
   
   
    Enter Task: Anon
   
    A1: Beep [
         Frequency: 8000
         Duration: 1000
         Amplitude: 50
         Stream: 3 ]
   
    A2: Wait [
         MS: 0
         Seconds: 3
         Minutes: 0
         Hours: 0
         Days: 0 ]
   
    <KDE Connect must have been paired to the PC at least once>
    A3: AutoNotification Query [
         Configuration: Persistency Type: Persistent Only
         Notification Apps: KDE Connect
         Text: Not connected to any device
         Get All Fields : true
         Timeout (Seconds): 20
         Structure Output (JSON, etc): On ]
   
    A4: If [ %antext() ~ Not connected to any device ]
   
        A5: Flash [
             Text: antext matched
             Continue Task Immediately: On
             Dismiss On Click: On ]
   
        A6: Flash [
             Text: %anapp()
             %antext()
             %antouchaction()
             Continue Task Immediately: On
             Dismiss On Click: On ]
   
        A7: Wait [
             MS: 0
             Seconds: 3
             Minutes: 0
             Hours: 0
             Days: 0 ]
   
        A8: AutoNotification Actions [
             Configuration: Notification Apps: KDE Connect
             Timeout (Seconds): 20
             Structure Output (JSON, etc): On ]
   
        A9: Flash [
             Text: KDE Connect notification pressed 1
             Continue Task Immediately: On
             Dismiss On Click: On ]
   
        A10: Wait [
              MS: 0
              Seconds: 3
              Minutes: 0
              Hours: 0
              Days: 0 ]
   
        A11: AutoNotification Actions [
              Configuration: Notification Apps: KDE Connect
             Intercept Action ID: %antouchaction
              Timeout (Seconds): 20
              Structure Output (JSON, etc): On ]
   
        A12: Flash [
              Text: KDE Connect notification pressed 2
              Continue Task Immediately: On
              Dismiss On Click: On ]
   
        A13: Wait [
              MS: 0
              Seconds: 3
              Minutes: 0
              Hours: 0
              Days: 0 ]
   
        A14: AutoNotification Query [
              Configuration: Persistency Type: Persistent Only
             Notification Apps: KDE Connect
             Get All Fields : true
              Timeout (Seconds): 20
              Structure Output (JSON, etc): On ]
   
        A15: Wait [
              MS: 0
              Seconds: 5
              Minutes: 0
              Hours: 0
              Days: 0 ]
   
        A16: Flash [
              Text: After press ...
             %antext()
              Continue Task Immediately: On
              Dismiss On Click: On ]

 
and I turned on the LOG

   

image-1683307900957.png

Can you please export that as an URI (not a link, but a direct URI) and paste it here so I can then import it and test it myself?

Thanks in advance!

DS

Apologies, I've been working on this awhile and now realize that it might not make sense for someone coming into this cold.  I'm using and Pixel 6 with the latest maintenance with KDE Connect installed.  The laptop I'm connecting to is Windows 10 with the latest maintenance.

KDE Connect is sort of like Phone Link (or Link to Windows in the android play store) from Microsoft, Dell has or had one also.  I found both to be buggy.  Plus I sometimes use Linux (but not involved in this testing).

KDE Connect will allow messages from the phone to appear on the PC, share files, etc.

I'd previously posted on the Tasker subreddit, and initially had a couple of responses that KDE Connect was sort of buggy when connecting, now the one response says "Just use %antouchaction. Remove the round brackets."  I've tried both with and without the    ()   .

Now to you question. this is the output from A6

This is what the android notification looks like, that I want to have Tasker to press (the KDE Connect one) :

and what it looks like after I manually press (and what I'd hope Tasker AutoNotification would do) :

and what the desktop after connecting :

Thanks for the extra explanation! That makes it a bit clearer. :)

Ok, so, if I'm getting this correctly, it works sometimes with %antouchaction and other times without it?

What if you add 2 actions, one with and one without, and have them both run? 😅 Does that make it always work?

Sorry, this is a bit confusing since I never used KDE before myself. So, to clarify, what does A6 show? Does it show the touch action correctly?