Start flows from external apps (flic.io)

455 views
Skip to first unread message

Wolfram

unread,
Oct 7, 2015, 4:48:55 PM10/7/15
to Automate
Having received some flics this week, I am trying to set up a way to launch flows in Automate by the press of a button. It seems like the flic app is able to send intents, but I didn't manage to work anything out yet by sending the following intent of the respective flow (com.llamalab.automate.provider/flows/11/statements/1). Also, using broadcast receivers in the following didn't result in any success.

In general, I would love to see support for flic.io in Automate. They also seem to have an API (https://flic.io/partners).

Any help would be appreciated.

Automate developer

unread,
Oct 7, 2015, 5:30:08 PM10/7/15
to Automate
I can't find any documentation on the intents. But to receive intent broadcasts in Automate, use the Broadcast receive block, don't set the flow or fiber URI, only an action and maybe a category should be enough.

Wolfram

unread,
Oct 7, 2015, 6:14:30 PM10/7/15
to Automate
Thanks for your reply. I am kind of lost with this one as I am not familiar with Android development. I also didn't find any further documentation on that, I just want to be able to trigger a workflow in Automate by pressing a flic button.

If I use the broadcast receiver block and leave all input arguments null, should that enable me to get all broadcastet intents system wide? Does the device need to be rooted for that?
In my case the block to await broadcast receive doesn't get triggered at all in the case which I find kind of strange.
Also, if I create a new flow with only a broadcast send and receive, I don't see any broadcast received in the logs.

Automate developer

unread,
Oct 7, 2015, 6:28:18 PM10/7/15
to Automate
You'll need to find out what "action" the flic app broadcasts, if it does.
Otherwise you need to find another way to trigger Automate, maybe the flic app can start app shortcuts?

Wolfram

unread,
Oct 7, 2015, 6:49:27 PM10/7/15
to Automate
Thanks for the quick reply again. I actually got it to work!

I basically got confused that if you leave the action input for the broadcast receiver block blank it doesn't match to any broadcasted intents instead of all which I was trying to use for investigating any intent sent. Is there such a way that I can leave the action of the input variables blank and the block listens to any intent?

Automate developer

unread,
Oct 7, 2015, 7:20:01 PM10/7/15
to Automate
No, not when receiving broadcasts.
I'll add a check for it.

wim...@gmail.com

unread,
Sep 15, 2018, 1:40:08 AM9/15/18
to Automate
Thanks for the quick reply again. I actually got it to work!
 How did you made it?
Reply all
Reply to author
Forward
0 new messages