Trigger/AutomateIt Bluetooth Issue

I'd like to set a rule that automatically turn off bluetooth when a device is disconnected.
Using apps like Trigger, Tasker or AutomateIt it's possible to do this, but there's an annoying problem:

The rule "If GearFit is disconnected -> Turn off Bluetooth" is applied when I turn on bluetooth to connect the Gear to the phone. So the bluetooth is turned off instantly. I've the same problem with Trigger and AutomateIt, so I don't think is bug related to the app.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?