Another update: Since implementing the second Tasker profile to toggle Bluetooth off/on after it disconnects from the car, I have had no further failures to unlock the car in any of the situations that were troublesome for me before. I've not needed to tinker with Tasker or had to manually toggle my Bluetooth off/on to get it to connect. I've not had to reboot my phone, put it in airplane mode, restart the Tesla app, mess around with batter optimization settings, or perform any of the other suggested troubleshooting steps. Literally nothing. It just works now and I'm much happier.
To summarize:
Profile 1: Toggles Bluetooth off/on automatically every hour:
- Purpose: Refreshes the phone's Bluetooth so that it is prepared to connect to the car at all times
- Will not toggle Bluetooth if already connected to another device (keeps it from disconnecting when already connected to the car or using any other Bluetooth device)
- Will only run when Bluetooth is already on (keeps it from turning Bluetooth on if I've manually turned it off)
- Will not run if phone plugged in and charging (not a necessary condition, but I find no need to toggle Bluetooth off/on if my phone is plugged in overnight)
- Every hour may be too often, but there's no noticeable effect on battery life, so I'm not inclined to test out what the minimum interval is because it's working.
Profile 2: Toggles Bluetooth off/on after disconnecting from the car after a delay of 10 seconds
- Purpose: Squashes the bug where when using walk-away lock, going back to the car after barely walking out of Bluetooth range does not allow the phone to reconnect as the key.
- After the car's Bluetooth is disconnected from the phone, Tasker waits 10 seconds, then toggles Bluetooth off/on, refreshing the phone's ability to reconnect to the car. The delay is needed because without it, Bluetooth will toggle as soon as the Bluetooth connection is dropped, then try reconnect to the car instantly. Sometimes it's successful, which put the phone in a weird state where it shows it's connected, but it's not.
Instructions are in the posts above. No guarantees it will work with your specific phone, but on my Pixel 1, it's been flawless. I'll update again any new situations that arise that need troubleshooting.