Quote:
Originally Posted by lilrascal
Thanks, I'll take a look at those.
I like what you did for your phone. Would you mind sharing how you did that?
I did it in a couple layers because I have some other tasks going on as well so you could actually do this in one less step, but here's what I did (you may not need all the 'WAIT' commands I have or you may need to change the times depending on your device. These exist to make sure certain things finish before 'SAY' commands begin otherwise you might not hear them):
1) Create task 'ReadText' which contains the following:
The variables %SMSRN and %SMSRB are built-in variables containing the sender name and body of the incoming text. The %VOICE variable is the text of whatever it hears you say during the 'Get Voice' command. More detailed explanation of this step is here:
youtube
2) Create a profile 'SMS read'
The context is Event > Phone > Received Text
The associated task is the 'ReadText' task above.
3) Create a task 'Car Enter'
Tasker > Profile Status
Hit the search icon by Name and choose 'SMS read'
Set = On
4) Create a task 'Car Exit'
Tasker > Profile Status
Hit the search icon by Name and choose 'SMS read'
Set = Off
5) Create a profile 'Car'
Context is State > Net > BT Connected
Hit the search icon on either the name or address and it should show a list of all bluetooth devices you've previously paired. Choose your car.
Hit back and it will ask you to assign a task. 'Car Enter'
6) On the Profile screen, long-press the Car Enter task next to the green arrow and in the menu that pops up choose 'Add Exit Task'. Choose 'Car Exit.'
So we created the task that reads the text aloud with voice prompt. Then we create a profile where whenever a text is received it will do this task. But we can also turn this profile on/off. Then we created Car Enter and Car Exit which exist just to turn that reading profile on or off (in those enter/exit tasks you could add other stuff like adjusting volumes). Then we create a profile that detects when it's connected to the car's BT and runs the Enter task, and then when it disconnects it runs the Exit task.
Let me know if you have questions.