Hi, I have a similar problem. My bluetooth headphones (Bragi Dash) auto connect to my smartphone when I turn them on. To use it on another device, I have to manually disconnect.
Couldn't find a way to set a tasker action to do this in Secure Settings, but did put together something using AutoInput.
You won't be able to use my task exactly but with the logic you'll be able to set up your own.
New Action.
1. Settings > Bluetooth Settings
2. Using AutoInput, I tap on the name of my wireless headset. (for me, plugin > autoinput > action > config> action: click. field type: text. In there I enter my headset name "The Dash")
3. System now asks if a want to disconnect. The options are "Cancel" and "OK". Using Autoinput, I click OK.
4. I now go "home" with an autoinput global action
5. Profit.
PS: I use an LG G4 running Android 6.0 (unrooted)