This runs if my bluetooth gets disconnected and will abort if reconnected. It also will only run if bluetooth is on. It checks that on the enter task. That way I can turn off bluetooth while driving without this constantly trying to mark my spot.
Parking Simplified (378)
Run Both Together
A1: Secure Settings [ Configuration:GPS Enabled Timeout (Seconds):0 ]
A2: Get Location [ Source:Any Timeout (Seconds):75 Continue Task Immediately:Off Keep Tracking:Off ]
A3: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ]
A4: Variable Set [ Name:%CARLOC To:%LOC Recurse Variables:Off Do Maths:Off Append:Off ]
A5: Beep [ Frequency:1804 Duration:74 Amplitude:50 Stream:5 ]
A6: Play Ringtone [ Type:Notification Sound:Free Stream:5 ]
A7: Vibrate Pattern [ Pattern:0,200,200,200,200,200 ]
A8: Secure Settings [ Configuration:GPS Disabled Timeout (Seconds):0 ]
A9: Notify [ Title:Your parking location has been saved Text:Your car is at %CARLOC Icon:mw_image_assistant_photo Number:0 Permanent:Off Priority:3 Actions:(1) ]
Thanks
Easier and more educational to rebuild by hand.
Profile: BT Connected To Car (30)
State: BT Connected [ Name:XXXX XXX Address:XX:XX:XX:XX:XX:XX ]
Enter: BT Connected To Car (31)
A1: Variable Set [ Name:%XXXXXXX To:1 Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Ringer Volume [ Level:10 Display:Off Sound:Off ]
A3: Media Volume [ Level:10 Display:Off Sound:Off ]
A4: Notification Volume [ Level:10 Display:Off Sound:Off ]
Exit: BT Disconnected From Car (32)
A1: Variable Set [ Name:%XXXXXXX To:0 Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Music Play [ File:Notifications/TextToSpeech/BluetootDisconnectedCheckingLocation.mp3 Start:0 Loop:Off Stream:3 Continue Task Immediately:On ]
A3: Media Volume [ Level:10 Display:Off Sound:Off ]
A4: Notification Volume [ Level:5 Display:Off Sound:Off ]
A5: Notification Volume [ Level:5 Display:Off Sound:Off ]
A6: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A7: Perform Task [ Name:Location Check Priority:1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A8: Get Location [ Source:GPS Timeout (Seconds):120 Continue Task Immediately:Off Keep Tracking:Off ]
This all seems to work ok but I also have other profiles setup to do certain things when I am at a certain location (like mute all at work etc.) But I am finding that the next task for when I am at the location never seems to kick in until I wake up the device. This could be 10 seconds after I arrive or 5 mins it seems to wait until that action. Any way around this?
Autoinput is a separate plug-in that works with Tasker. You can download it from the Play Store.
To do it without a plug in you can use the action-> alert-> popup . Set the time out to 1 sec.