How do I make this motion trigger?

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Alex
Posts: 11
Joined: 04 Dec 2015 02:27

How do I make this motion trigger?

Post by Alex » 04 Dec 2015 02:34

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?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: How do I make this motion trigger?

Post by Martin » 04 Dec 2015 20:52

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

User avatar
Alex
Posts: 11
Joined: 04 Dec 2015 02:27

Re: How do I make this motion trigger?

Post by Alex » 05 Dec 2015 01:56

Thank you Martin. This is a great help!

Post Reply