vibrate when in pocket

Post your questions and help other users.

Moderator: Martin

Post Reply
bzb416
Posts: 3
Joined: 08 Jun 2015 01:51

vibrate when in pocket

Post by bzb416 » 08 Jun 2015 02:03

Hì there,
I'm a newbie and trying to test it before I buy it. I'm trying to create a flow that when the phone is in my pocket it will vibrate when calls and text arrive and ring when it is not in pocket using light sensor. I'm been trying but unsuccessful, can someone please help me. Thanks you

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

Re: vibrate when in pocket

Post by Martin » 08 Jun 2015 15:54

Hi,

You could either try to use the light sensor or the proximity sensor to detect whether your device is in the pocket or not and change the ringer mode accordingly.
Following flows could work:
-trigger Proximity Sensor: Distance < 2.5cm
-action Set Ringer Mode: Vibrate

-trigger Proximity Sensor: Distance > 2.5cm
-action Set Ringer Mode: Normal

Please note that constantly listening for sensor events can require quite a bit of battery. Some devices also turn off the sensors when the screen is off so the flows might not work on all devices.

Regards,
Martin

Post Reply