Page 1 of 1

vibrate when in pocket

Posted: 08 Jun 2015 02:03
by bzb416
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

Re: vibrate when in pocket

Posted: 08 Jun 2015 15:54
by Martin
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