Automatic sms reception as a trigger

84 views
Skip to first unread message

Teddy R.

unread,
Mar 5, 2023, 5:38:00 PM3/5/23
to Tasker
Hi there,

I want to use the reception of an SMS as an action trigger,

The problem is that I would like this SMS to come from an automatic SMS (like double authentication SMS for example) from a specific company.

How can I use Tasker in this case ?
Thanks to those who will help me

Have a nice day

Teddy

Soudane GMTA

unread,
Mar 5, 2023, 7:28:36 PM3/5/23
to Tasker
You can use the Received Text context and cause it to fire off an action that you can create.

You can specify Sender as one of the options to the Received Text context, but if that doesn't give you enough information to determine whether you're getting the message from some sort of automatic or double-authentication-based source, you can examine the following variables within your action to get more info:

%SMSRF => sender address
%SMSRN => sender name
%SMSRB  => message body
%MMSRS  => MMS subject
%SMSRD  => date received
%SMSRT => time received

These variables are all described in the Tasker docs.

Also, you can create a Received Text context and then click on the question mark at the upper right of the screen which comes up in order to get more infomation about how to use that context.

Teddy R.

unread,
Mar 6, 2023, 6:35:41 AM3/6/23
to Tasker
So,
If I understand correctly, 
in the sender field, I put : %SMSRN="Google" or something like that ?

It's a Sender like this (attached picture,) So it's not a Number phone but a Name.

Soudane GMTA

unread,
Mar 6, 2023, 11:48:11 AM3/6/23
to Tasker
I don't know the details of Google's SMS validation messages.  I suggest that you write an action for Received Text which logs the values of all 6 of those variables into a file, and then you can examine them after you get another SMS like this from Google. This will help you decide which values to check for.
Reply all
Reply to author
Forward
0 new messages