Easer icon indicating copy to clipboard operation
Easer copied to clipboard

[FR:] Flight Mode can't be evaluated

Open just-Nob opened this issue 3 years ago • 2 comments

Unfortunately, there's no possibility to evaluate (by a condition) whether the flight mode is activated or it's not.

The only thing that's close to that is the "Connectivity Type" section which is part of the possible conditions, namely the choice / check box "not connected". But that's different from 'flight mode", because a device may be not connected to anything with flight mode disabled.

just-Nob avatar Feb 28 '22 21:02 just-Nob

Yes, I agree with the description.

Essentially, this is the same as adding a Condition skill to check flight / airplane mode. There is no official API to directly do this, but a quick search gives semi-official ways: https://stackoverflow.com/questions/4319212/how-can-one-detect-airplane-mode-on-android.

I may implement this if time allowed. As always, open to PRs for anyone interested. (See this page on how to do this.)

renyuneyun avatar Mar 20 '22 23:03 renyuneyun

Hi @renyuneyun, it works fine for me in Automation. Perhaps you may like to have a look at it.

(I used Automation some time before you released the current version 0.8.2.3-beta2, because that version's predecessor wasn't really useful/practicable for me. Automation is a nice solution as well, having some interesting approaches. Additionally, it's very easy to handle, but not that powerful - especially concerning Easer's conditions with its predecessors/successors - like Easer is.)

just-Nob avatar Apr 28 '22 05:04 just-Nob