Automate music and maps on startup for android car multimedia

1,270 views
Skip to first unread message

Francis Halley

unread,
Jan 11, 2022, 3:02:04 PM1/11/22
to Automate
Hello there!
Complete newbie here...
I tried to automate the "play music", using soundcloud, but couldn't find a button/command for it. I have already done this on my Samsung cellphone using the bixby app, it`s very straightforward. There is kind of a play button block ready.

I wanted to automate the following: When I turn on the car/multimedia, wait for a few seconds, then start playing music on soundcloud, and then open waze on the screen.

Next step will be automate some random greetings phrase reading. "Welcome back my lord"... "Good day, sunday"... kkkk. Using google robotic voice, or anything else. It is not necessary, but will be very fun!

So... can I get some help? =P

Thanks!

Henrik "The Developer" Lindqvist

unread,
Jan 12, 2022, 10:08:55 AM1/12/22
to Automate
Try something like:
  1. Flow beginning
  2. (detect car, maybe using Audio device connected)
  3. App start: Sound Cloud
  4. Delay 2s (to ensure Sound Cloud app has started)
  5. Audio player control
  6. App start: Waze
  7. Speak
  8. (loop back to #2)

Francis Halley

unread,
Jan 12, 2022, 5:28:22 PM1/12/22
to Automate
Well, lets show some pictures...
This is my car android device, with the Automate app open on the screen:
20220112_190809.jpg

Francis Halley

unread,
Jan 12, 2022, 5:29:45 PM1/12/22
to Automate

This is the flow I'm trying to do. (didn't connect with start block yet, to make sure it don't turn it on before it's ready and mess everything up)

 20220112_190815.jpg

Now, choose soundcloud, allright...

20220112_191012.jpg

Francis Halley

unread,
Jan 12, 2022, 5:31:45 PM1/12/22
to Automate

Now there is a list of commands... I think...(?) But there is no "com.soundcloud.justplay" or something like this...

20220112_191153.jpg

I woud expect the play command to be somewhere on this block already,  not needing to put dedicated blocks for delay and then the play...

Francis Halley

unread,
Jan 12, 2022, 9:31:18 PM1/12/22
to Automate
Well, I tried putting the dedicated blocks...
open soundcloud -> wait 5s -> press play (?) -> wait 2s ->
Open waze -> end
20220112_200427.jpg

It opens soundcloud and waze, but doesn't play the music =/

Henrik "The Developer" Lindqvist

unread,
Jan 13, 2022, 8:03:32 AM1/13/22
to Automate
Only the Package field is necessary, the the App start block will start the app just like a launcher does.

Henrik "The Developer" Lindqvist

unread,
Jan 13, 2022, 8:08:24 AM1/13/22
to Automate
Don't use "Is device interactive", use "When..." instead, please read: https://llamalab.com/automate/doc/faq.html#excessive_battery_usage

Try the different "Method" in the Audio player control block. If none works, then using the Interact block to simulate a click on any "play" button is likely the only alternative.

Francis Halley

unread,
Jan 14, 2022, 11:48:14 PM1/14/22
to Automate
Different method, for audio player - works!

Now for the automation of the starting proccess...
20220115_004114.jpg

What happen is - when the car engine is off, the multimedia is shut down. But not completely, in some way. When I turn on the engine again, the device comes back where it stopped.
So, well, that "is device interactive" block doesn't work with that "proceed" - "when changed".
It just works if I click stop, then start the flow.

What block should I use for checking for a previous reboot, so? And start the flow... and keep it then...

Henrik "The Developer" Lindqvist

unread,
Jan 15, 2022, 12:49:33 PM1/15/22
to Automate
It seems Android Auto devices usually don't reboot, they just "hibernate".
Sadly i don't know how to detect a "startup", as said try the Audio device connected block, or maybe the Device unlocked block.

Tamsta Tomas

unread,
Jan 16, 2022, 9:54:31 AM1/16/22
to Automate
Just an idea: to detect startup, use "Display on?" block.
Reply all
Reply to author
Forward
0 new messages