Page 1 of 1

magnetic sensor help please?

Posted: 07 Apr 2018 17:42
by Autumn-Leigh
Some one help please, I have this flow for security, problem is, I have a smart case so when i shut it, i have a display bit so its classed as display on.
is there a way I can trigger this flow when the case is shut and picked up by the magnet? if so, how please? and should i set the magnetic sensor as?

Re: magnetic sensor help please?

Posted: 07 Apr 2018 18:24
by Desmanto
The flow will drain a lot battery if you use trigger magnetic sensor. Proximity sensor trigger will also drain quite a lot during idle. So you have to create a helper flow and disable them after the check.

The magnetic flow will be enabled by another flow using Trigger User present. So magnetic flow only available when you have passed the lock screen. It will continue to check until you close the case, which trigger the magnetic flow and do all the check. At the last action, disable this magnetic flow (itself). So it won't consume any battery during device idle, as you don't need to continuously check when device sleep.

Flow 1
Trigger : User Present
Action : Set Flows State : Magnetic flow - enable

Flow 2
Trigger : Magnetic sensor
Action : all the check action
Action last : disable flow 2

Re: magnetic sensor help please?

Posted: 07 Apr 2018 18:28
by Autumn-Leigh
Desmanto wrote:The flow will drain a lot battery if you use trigger magnetic sensor. Proximity sensor trigger will also drain quite a lot during idle. So you have to create a helper flow and disable them after the check.

The magnetic flow will be enabled by another flow using Trigger User present. So magnetic flow only available when you have passed the lock screen. It will continue to check until you close the case, which trigger the magnetic flow and do all the check. At the last action, disable this magnetic flow (itself). So it won't consume any battery during device idle, as you don't need to continuously check when device sleep.

Flow 1
Trigger : User Present
Action : Set Flows State : Magnetic flow - enable

Flow 2
Trigger : Magnetic sensor
Action : all the check action
Action last : disable flow 2
okay, so what i want it to do is when BLE isnt near, set keyguard, when it is near, disable it, but i mean doing it immediatly when the case is shut and even if smart case display is on. also, i dont know how to work the magnetic feild?

Re: magnetic sensor help please?

Posted: 08 Apr 2018 11:35
by Desmanto
Do your case have magnet attached? The magnetic sensor works by the sensing nearby magnetic field, so the case must have magnet. If not, you can't use that. You can use proximity sensor instead, it is almost the same. Just replace the trigger in my previous post with proximity near.

When the proximity sensor is near, then it will trigger the flow immediately, do all the check and disable itself. When the device is unlocked (user present), proximity will be enabled back and ready to be trigger again.

Re: magnetic sensor help please?

Posted: 08 Apr 2018 11:56
by Autumn-Leigh
Desmanto wrote:Do your case have magnet attached? The magnetic sensor works by the sensing nearby magnetic field, so the case must have magnet. If not, you can't use that. You can use proximity sensor instead, it is almost the same. Just replace the trigger in my previous post with proximity near.

When the proximity sensor is near, then it will trigger the flow immediately, do all the check and disable itself. When the device is unlocked (user present), proximity will be enabled back and ready to be trigger again.
Okay, so i set that up, now how do i do this?

when Display is on, and using it, and BLE isnt picked up, it goes to lock screen with pin then ends?

Re: magnetic sensor help please?

Posted: 08 Apr 2018 12:32
by Desmanto
The BLE check only triggerred when the case is closed. So you only need that proximity sensor as the trigger. (no display state on and periodic timer anymore) User present trigger only enable the proximity flow, and should be put on another flow. (since it is active all the time) Or maybe you want to do another additional check before closing the case? I think the closing the case is enough for this case. (no pun intended :D)

Re: magnetic sensor help please?

Posted: 08 Apr 2018 12:57
by Autumn-Leigh
Desmanto wrote:The BLE check only triggerred when the case is closed. So you only need that proximity sensor as the trigger. (no display state on and periodic timer anymore) User present trigger only enable the proximity flow, and should be put on another flow. (since it is active all the time) Or maybe you want to do another additional check before closing the case? I think the closing the case is enough for this case. (no pun intended :D)
My proximity sensor worker once, and stopped :/

Re: magnetic sensor help please?

Posted: 08 Apr 2018 13:19
by Desmanto
Did the flow got enabled back by user present? When you edit the trigger Proximity sensor, does the value change when you cover and uncover it?

Re: magnetic sensor help please?

Posted: 08 Apr 2018 13:26
by Autumn-Leigh
Desmanto wrote:Did the flow got enabled back by user present? When you edit the trigger Proximity sensor, does the value change when you cover and uncover it?
trouble is, with proximity sensor, its turning of my smart case sview also :/

Re: magnetic sensor help please?

Posted: 08 Apr 2018 17:02
by Desmanto
So, what is something that is always happen when you close the case, but doesn't interfere with the sview? Does the Display state off triggered when you close it? If yes, just use that, much battery-friendly. Or maybe the sview has the broadcast intent too that you can catch, try general Broadcast maybe?