Need Help on Notification Trigger For Selected Notification Title

alexhee

Member
Good morning, I'm new to Macrodroid. I would like to create a macro to trigger certain action when some keywords are found.

1. Trigger - "Notification Received" using "Matches" with symbol "|" for keywords A & B & C for Telegram app.
2. Action - Do the actions that I needed.
3. Contraints - Time of Day.

In this scenario, the macro is running fine when one of my keyword is found. However, in this Telegram app there are trigger from different group chat. If I want this macro to trigger based on the group name. I have tried setup contrains for this based on group name (Notification Title) but not working. So I'm asking whether we have a function to use this {not_title} magic text if possible.

Add {not_title} = C D E then trigger.

Thanks 1st.
 

Endercraft

Moderator (& bug finder :D)
 

alexhee

Member
Thanks for the headup.

I just try & found one funny issue where after I added the contraints. I have to use Excludes instead of Contains for the keywords then the system only trigger.

For example:-

1. Notifcation Title = Group A
2. Notification text = Photo

My trigger is as below:-

Option 1
Trigger = Notification Received - Contains: Photo
Contraints = Compared Values - {not_title} Contains A

Above setting won't fired unless I changed:-

Option 2
Trigger = Notification Received - Contains: Photo
Contraints = Compared Values - {not_title} Excludes A

I just wondering whether my understanding to this logic is incorrect or else? If I want to a trigger for notification with photo from group A, shouldn't I use the Option 1?
 

Endercraft

Moderator (& bug finder :D)
Is the enable regular expression matching box ticked ? I just tested without it and reproduced the same behavior you are experiencing.
 

alexhee

Member
Is the enable regular expression matching box ticked ? I just tested without it and reproduced the same behavior you are experiencing.
Yes. I did. However, it's still not working, not even with single value to be matched (A) which I tested. Really no idea.
 

alexhee

Member
I just tested & found the Compare Values contraints only work if I set it in Contraints section instead Triggers section if attached it with any triggers. Is it a bug or else?
 

MacroDroidDev

Administrator
Staff member
There does appear to be a bug when using this trigger that the notification text is not available in any constraint added to it. This issue will be fixed in the next update, thanks for alerting me to this.
 

alexhee

Member
There does appear to be a bug when using this trigger that the notification text is not available in any constraint added to it. This issue will be fixed in the next update, thanks for alerting me to this.
OK. Noted with thanks. Hope it will be fixed in next update.
 
Top