2 things I would like to do, but not sure how. I have set up a few basic tasks, but these 2 not sure how to do.
1. IF Bluetooth is connected, crank up brightness to 100%
2. IF bluetooth is connected, read any incoming SMS
I want these as I only use Bluetooth in my car, when in my car I need the display to be brighter and I want SMS read to me since that would be safer.
thoughts?
EDIT: Manual Intent Shortcuts and BlueDock ($1) seems would be needed. These are plugins that go into Tasker to expand tasker as currently, it seems as is it cannot tell I am connected to my BT in my car.
EDIT 2: I tried them both BUT to get Manual Intent to work you have to know how to write the correct string, like net.dinglisch.android.tasker.ACTION_TASK, and there is simply no documentation on this. You could set Tasker to increase brightness if an app is run, like BluDock (which would only run if it connects with my car BT), but to then get Manual Intent to trigger to sense the Bt connection.. no way.
Since you already know you need BlueDock and Manual Intent Shortcuts, you've probably seen this already but here's a link that might help:
Tasker Wiki: Bluedock&Tasker
(Tasker has an Application context, which I think you're referring to above, but that's not what you need)
To do what you're looking for you would need to do the following in Tasker:
Create a profile named
ReadSMS, with these contexts:
Received SMS (no parameters necessary)
Variable Value %CARCONNECTED = 1
The actions for the Enter Task would be:
Say Message from %SMSRF
Wait 3 seconds
Say %SMSRB
Create a profile named
CarBluetooth, with this context:
Variable Value %CARCONNECTED = 1
The actions for the Enter Task would be:
Display Brightness 255
Create a task named
CarConnected. The actions in that task would be:
Variable Set %CARCONNECTED 1
Create a task named
CarDisconnected. The actions in that task would be:
Variable Clear %CARCONNECTED
In BlueDock, select the paired bluetooth device in your car, and set the Connect Action to a Manual Intent Shortcut. Give the shortcut the following parameters:
Name: <any name you want>
Action: net.dinglisch.android.tasker.ACTION_TASK
Extra key: task_name
Extra Value:
CarConnected
In BlueDock, select the same bluetooth device, and set the Disconnect Action to a Manual Intent Shortcut. Give the shortcut the following parameters:
Name: <any name you want>
Action: net.dinglisch.android.tasker.ACTION_TASK
Extra key: task_name
Extra Value:
CarDisconnected
That's it. Note that for the Say action, you may want to change the stream that it uses, and check the volume level for that stream, otherwise you may not hear what's being said.
What should happen is:
When you connect to the bluetooth in your car, BlueDock should notice that this has happened and, by way of a Manual Intent Shortcut, tell Tasker to run the
CarConnected task, which will set %CARCONNECTED to a value of 1, causing the
CarBluetooth profile to become active. When the profile becomes active, the Enter Task will run, maximizing the screen brightness.
With %CARCONNECTED set to a value of 1, any incoming SMS will cause the
ReadSMS profile to become active, and Tasker will run the Enter Task, reading the SMS sender and body aloud.
Once your bluetooth is disconnected, BlueDock should notice, and trigger Tasker to run the
CarDisconnected task, which will clear the %CARCONNECTED variable. This will deactive the
CarBluetooth profile, causing Tasker to return the screen brightness to its previous level. Clearing the variable will also prevent the
ReadSMS profile from becoming active with incoming SMS messages.
I think this should work, but it's untested. I have no experience with BlueDock or Manual Intent Shortcuts, but have a lot of experience with Tasker.