Constraint: Proximity Sensor
About this constraint
This constraint can be used to allow a trigger to fire only when the proximity sensor is in the near/far state. Please note that this trigger will only work when the device's screen is on unless you modify the setting via the MacroDroid trigger settings.