Car Bluetooth + USB Cable = Play spotify

Kappa82

New member
Hello everyone!
I've been testing the app for a while and it works fine but I can't get the last macro I'm trying to create.
I would like Spotify to start after the phone connected to the bluetooth of the car but also only after I connected the phone to the usb cable.
I have created the events bluetooth, battery charging, I have entered the if conditions but they do not seem to be taken into consideration.
Am I doing something wrong? An if condition with "and/or" must be setted in particular ways?
I searched if there were similar macros but there are only those in which spotify starts after the bluetooth connection or having connected the earphones, nothing with usb cables.
 

420

Active member
Hello everyone!
I've been testing the app for a while and it works fine but I can't get the last macro I'm trying to create.
I would like Spotify to start after the phone connected to the bluetooth of the car but also only after I connected the phone to the usb cable.
I have created the events bluetooth, battery charging, I have entered the if conditions but they do not seem to be taken into consideration.
Am I doing something wrong? An if condition with "and/or" must be setted in particular ways?
I searched if there were similar macros but there are only those in which spotify starts after the bluetooth connection or having connected the earphones, nothing with usb cables.
Without seeing your macro there really is no way to tell why it is not working, a screenshot of your macro would be helpfull!

I think something as simple as this should work, the macro will run when either of the triggers fire but the action will only run if both of the constraints in the if clause are true... I do not have spotifiy, the empty action should obviously be a media play action and not an empty one :p )

Screenshot_20210903-131349.png
 

420

Active member
Next time you can go into the Macrodroid settings, change the language to english, take the screenshot, and change the language back to what it was, that way more people can read it, and help you.

Anyway, your if clauses only check if the bluetooth connected/disconnected triggers have fired, so your charger connected/disconnected triggers will do absolutely nothing...

You should try the setup in my screenshot, i'm outside right now but i can edit the example when i get home, so it will also stop the music when bluetooth device gets disconnected.
 

Kappa82

New member
Sorry, i don't noticed it was in italian.
By the way, the if condition is correct, "E" in italian is "AND".

photo_2021-09-03_14-52-02.jpg
 

Dm114

Well-known member
Mmm, after setting the app in English I retried and this time the macro is working...
.
Just 2 kind advices: you should add a 'Wait' action (may be 1 second) after launching Spotify. Then, you'd better use 'If... Elsif... Elsif... Else... Endif' rather than several 'If... Endif' actions (execution is a bit faster and it's easier to maintain in case of many tests (like for testing various possible answers to a question or to select an option among a list).
 
Top