Page 1 of 1

How do I make this motion trigger?

Posted: 04 Dec 2015 02:34
by Alex
Just started with Automagic yesterday. I want to trigger an action by first turning the phone onto its left side, then onto its right side. A single Device Orientation trigger would be too easily accidentally triggered. Any suggestions?

Re: How do I make this motion trigger?

Posted: 04 Dec 2015 20:52
by Martin
Hi,

This could be a bit tricky and probably requires two flows.
Following might work:

Flow1
-trigger Device Orientation: Face left
-action Set Flow State: Enable Flow2
-action Sleep: 5s
-action Set Flow State: Disable Flow2

Flow2
-trigger Device Orientation: Face right
-action Vibrate: Pattern 7 or other actions

The idea is that the first flow detects the phone on the left side and temporarily enables Flow2 for 5 seconds, so you have to place the phone on the right side within 5 seconds to execute your actions.
Alternatively you could use trigger Device Orientation: Face left and then check condition Device Orientation: Face right after a short delay, maybe in a loop a few times.

Regards,
Martin

Re: How do I make this motion trigger?

Posted: 05 Dec 2015 01:56
by Alex
Thank you Martin. This is a great help!