Time delay question - Frage zur Zeiteverzögerung

Post your questions and help other users.

Moderator: Martin

Post Reply
limomobile
Posts: 2
Joined: 25 Oct 2014 08:40

Time delay question - Frage zur Zeiteverzögerung

Post by limomobile » 25 Oct 2014 08:51

Ich möchte das eine App 1 minute nach der bluetooth verbindung in meinem Auto started, aber nicht wenn diese bluetooth verbindung vor ablauf getrennt wird.
Mit der "pause" funktion klappt das nicht, da der flow weiterläuft

I would like to get an app started 1 minute after I get a bluetooth connection in my car. But if the connection is disabled before this minute ends, I want the app not started.
I have the trigger "Bluetooth Device Connected" with the action "sleep" (1 minute), and the action "Launch App".
This is not what I want, because even is the trigger is disabled, my flow continues and the app starts.

Any advice what I can do?

Thanks a lot

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Time delay question - Frage zur Zeiteverzögerung

Post by Bushmills » 25 Oct 2014 09:15

ich seh da zwei Möglichkeiten: aufbauend auf deinen bisherigen flow könntest du am Ende der Pause nochmal testen, ob noch verbunden ist, und nur dann die app starten, wenn das der Fall ist. Alternativ den connect Event dafür benutzen, einen anderen flow zu starten, welcher erst pausiert, dann die app startet, und mittels disconnect Event den (laufenden und pausierenden) flow wieder abbricht (flows stoppen heißt die Aktion glaub ich).
Bzw deinen momentanen flow mittels selber Aktion stoppen im Falle von bluetooth disconnect.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Time delay question - Frage zur Zeiteverzögerung

Post by MURTUMA » 25 Oct 2014 15:00

I have similar flow for disabling wifi when not connected. When I enable wifi or it loses connection, the flow checks if the connection is established (again) within preset time period. If the wifi doesn't get connected, the flow disables it.

You can use similar looping check in your flow.

http://automagic4android.com/flow.php?i ... 98c9ada095

limomobile
Posts: 2
Joined: 25 Oct 2014 08:40

Re: Time delay question - Frage zur Zeiteverzögerung

Post by limomobile » 27 Oct 2014 14:19

Hello and thanks for the help.
Bushmills advice worked perfect. I added the condition "bluetooth connected" (yes) after the action "sleep" (1 minute). Now it works perfect.

Danke und thanks

Post Reply