• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Notification not triggering task in Tasker

omojo

Newbie
Sep 2, 2018
13
0
Hi everyone, having a bit of a problem. I created a notification profile with SmartThings was the app owner which is to launch Deezer once the notification "play music" is received from SmartThings. I use a Samsung galaxy s6 running Android Nougat. Now I get the notifications but tha task never fires at all. Can anyone help
 
The following profile/task will display Sample each time t;a5 is run.

Profile: Sample
Event: Notification [ Owner Application:* Title:tla5 Text:* Subtext:* Messages:* Other Text:* Cat:* New Only:Off ]
Enter: Anon
A1: Flash [ Text:Sample Long:On ]

tla5
A1:: Notify [ Title:tla5 Text: Icon:null Number:0 Permanent:Off Priority:3 ]

The answerto your question is unknown. I suggest that you start out with something simple and when it works add to it. You will then evolve into a solution.

… Thom
 
Upvote 0
Post the definition here of what you currently have that is not working for you the say you want.

---

Did you try the example I posted?

There are many ways it can be coded wrong. The simplest way to trigger is to only specify the title of the notification you want to trigger on.

If you get the simplest one working then you can constrain the definition more and more as you see fit.

… Thom
 
Upvote 0
Post the definition here of what you currently have that is not working for you the say you want.

---

Did you try the example I posted?

There are many ways it can be coded wrong. The simplest way to trigger is to only specify the title of the notification you want to trigger on.

If you get the simplest one working then you can constrain the definition more and more as you see fit.

… Thom

hi Thom, tried it but still not working. My setup is notification based, when a notification with title 'stop' my music player should stop but that isn't happening. any suggestions
 
Upvote 0
Post the definition here of what you currently have that is not working for you the say you want.

---

Did you try the example I posted?

There are many ways it can be coded wrong. The simplest way to trigger is to only specify the title of the notification you want to trigger on.

If you get the simplest one working then you can constrain the definition more and more as you see fit.

… Thom

hi Thom, tried but no luck. my setup is when notification with title 'stop ' is received, I have a task that should stop my music playing if it's playing but that doesn't happen. any suggestions
 
Upvote 0
Is the Profile enabled?

Select Profile name of profile
Select three dots
Select Export
Select Description to Clipboard
Paste into a message here.

Select Task name of task that displays notification
Select three dots
Select Export
Select Description to Clipboard
Paste into a message here

Post message you created.

… Thom
Profile: deezer (14)
	Event: Notification [ Owner Application:* Title:stop Text:* Subtext:* Messages:* Other Text:* Cat:* New Only:Off ]
Enter: Anon (15)
	A1: Media Utilities Action [ Configuration:play/Pause Timeout (Seconds):0 ]
 
Upvote 0
Profile: deezer (14)
Event: Notification [ Owner Application:* Title:stop Text:* Subtext:* Messages:* Other Text:* Cat:* New Only:Off ]
Enter: Anon (15)
A1: Media Utilities Action [ Configuration
stickouttongue.png
lay/Pause Timeout (Seconds):0 ]

deezer stop (15)
	A1: Media Utilities Action [ Configuration:play/Pause Timeout (Seconds):0 ]
 
Upvote 0
I was confused by what you posted. I have a feeling that the following is what you were trying to do …

deezer stop (578)
A1: Notify [ Title:stop Text: Icon:null Number:0 Permanent:Off Priority:3 ]

… Thom

Ok let me explain; i have a Deezer app which is a music app, when it's playing, I want to be able to stop the music when a notification is sent and rescue on the tablet it's playing on. I've tried a whole lot of combination with notification but no luck, maybe I'm doing something wrong, however if I use sms received as the stop trigger, it works flawlessly.
 
Upvote 0
Ok let me explain; i have a Deezer app which is a music app, when it's playing, I want to be able to stop the music when a notification is sent and rescue on the tablet it's playing on. I've tried a whole lot of combination with notification but no luck, maybe I'm doing something wrong, however if I use sms received as the stop trigger, it works flawlessly.

sorry I meant when a notification is sent and received, typo error
 
Upvote 0
I think there is some confusion about what a Notification is. In everything you have posted I see nothing that posts a Notification.

Did you try …

deezer stop (578)
A1: Notify [ Title:stop Text: Icon:null Number:0 Permanent:Off Priority:3 ]

… did it work?

… Thom

Thanks Thom , I've been able to get it to work bases on what you asked me to try. meanwhile I want to know how to set a time activity for a task to occur at a certain time every day. pls help me out. thanks
 
Upvote 0
I believe the following does it. I would have to wait 24 hours to guarantee that it does.

After creating the Profile/Task and Task you need to set the time in %TimeItVar and run SetTime once.

Profile: TimeIt
Time: From %TimeItVar
Enter: Anon
A1: Flash [ Text:>> %TIME << Long:On ]

SetTime
A1: Variable Set [ Name:%TimeItVar To:9:05 Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Flash [ Text:Time Set Long:On ]

… Thom

(Moderators - please start a new thread called T"rigger every 24 hours".)
 
Upvote 0
I believe the following does it. I would have to wait 24 hours to guarantee that it does.

After creating the Profile/Task and Task you need to set the time in %TimeItVar and run SetTime once.

Profile: TimeIt
Time: From %TimeItVar
Enter: Anon
A1: Flash [ Text:&gt;&gt; %TIME &lt;&lt; Long:On ]

SetTime
A1: Variable Set [ Name:%TimeItVar To:9:05 Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Flash [ Text:Time Set Long:On ]

&#8230; Thom

(Moderators - please start a new thread called T'rigger every 24 hours'.)

Thom now I'm lost with this, could you break this down in lay men's term
 
Upvote 0
That is not possible. I have no idea what it is that you want explained.

You nee to create the Profile/Task and Task and then execute the Task. This should result in a Flash of the time appearing at 9:05a every day.

&#8230; Thom

Ok, I want my music to start playing everyday by 5am everyday. I created a profile based on time, there we have ' from, every and to' in the from field I set the time to 5:00am and in the to field I set the time to 5:01am and want this to occur everyday at the stipulated time. will this work
 
Upvote 0
There is a problem with the previous example that I posted. If the device is rebooted the profile is triggered even when not at the desired time.

The following example corrects this problem. The TimeIt task must be run once to set the desired time. It will then continue to run even after the device is rebooted. It will display the Flash every day at 14.40,

Profile: TimeIt
Time: From %TimeIt
Enter: TimeIt
A1: If [ %TimeIt !Set ]
A2: Variable Set [ Name:%TimeIt To:14.40 Recurse Variables:Off Do Maths:Off Append:Off ]
A3: End If
A4: If [ %TimeIt ~ %TIME ]
A5: Flash [ Text:>> %TIME << Long:On ]
A6: End If

After the example is working for you change the time in A2 and the action in A5.

… Thom
 
Upvote 0
There is a problem with the previous example that I posted. If the device is rebooted the profile is triggered even when not at the desired time.

The following example corrects this problem. The TimeIt task must be run once to set the desired time. It will then continue to run even after the device is rebooted. It will display the Flash every day at 14.40,

Profile: TimeIt
Time: From %TimeIt
Enter: TimeIt
A1: If [ %TimeIt !Set ]
A2: Variable Set [ Name:%TimeIt To:14.40 Recurse Variables:Off Do Maths:Off Append:Off ]
A3: End If
A4: If [ %TimeIt ~ %TIME ]
A5: Flash [ Text:&gt;&gt; %TIME &lt;&lt; Long:On ]
A6: End If

After the example is working for you change the time in A2 and the action in A5.

&#8230; Thom

hi Thom, to be honest I don't understand what you sent. can you give a step by step set process cos to me what you sent is like codes
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones