I tested this and It's work, but now I'have a new problem, my Bluetooth stops after a few minutes.
I tested with a simple macro (Like the first image, "MCD-ON / OFF2") to verify that everything is working fine without the Bluetooth disconnecting by itself after a few minutes. (It's ok)
Now what I would like to add to this simple macro is to do the same in reverse.
So the first part is the one that works, the trigger is the opening of my application, for the second part the trigger must be the change of state of Bluetooth, (automatic disconnection from the device).
1- launch of "Dacia Media Center (trigger)
2- launch of Bluetooth
3- Bluetooth connection on my device (my car).
Then when I switch off the ignition of my car.
1- the trigger deflects the disconnection of the bluetooth device, which is done automatically when I switch off the ignition.
2- the first action must be to stop my phone's bluetooth.
3- the second action must be to stop the "Dacia Media Center" application.
Can you help me?