@SDKoala I tried messaging you directly but you seem to have blocked that off. Maybe better that way so others can chime in. Here's my message:
Hey,
I'm starting to see failures with phone key. Not a lot, but not 100% success, so I'm now onto the "next bottleneck." Decided to mess with tasker and re-read your original thread on how you did it.
I noticed that there is a profile condition called "Bluetooth Near." And it has an option to look for nearby BLE devices. Unfortunately you have to specify the MAC address for the device it's near, and the phone only provides the regular BT MAC, not the BLE MACs in the car.
I've seen screenshots where iPhone users can see all the MAC addresses of connected devices, including BLE. I'm wondering if there's a way to get that info in Android, or if I have to resort to setting up my wife's iPhone as a phone key.
If I have those BLE MAC addresses, seems like I can have tasker do a BT toggle as soon as it detects proximity to any of the car's 3 or 4 BLE radios. This assumes of course that the phone can even see those radios when it's not working as a phone key. I think it's worth trying.
In the BT Connected state, there's an option to enter MAC addresses as well. Perhaps it's enough to just build the profile you made but make the detection on the BLE MAC instead of the regular MAC. For example:
Profile = BT Connected [Inverted] [BLE MAC] + [Time Interval]
Task = [BT Toggle]
This would toggle the BT radio any time it detects there is no BLE connection with the car, at the time interval you specified. It would obviate the need for your secondary profile that prevents the toggle when you are standing outside your car. Now to see if I can get those BLE MAC addresses.