Phone modes

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Phone modes

Post by Nerey » 08 Mar 2014 17:39

Here is my variant of implementation of modes

Here we have 5 flows
4 is a "mode start" flows, you can call it any way you want. I'm using shortcuts and some automation
"_End mode" is a flow that "clears" anything that "mode start" flow did

It uses 3 global variables: global_current_mode (text, current mode, used to clear mode and in automation), global_last_mode (text, previos used mode, used in automation), global_last_mode_time (time, time when previos mode ended, used in automation)

You can use variables in your automation, here the constants: "normal", "night", "incar", "silent".

There is action "Message Dialog" in flow "_End mode'. I'm using it due to some features of my phone, probably you don't need it

More info about modes:
Normal.
Enter: Nothing to do.
Exit: Nothing to do.

Night.
Enter: Save volumes, set all volumes to minimum, set brightness to minimum.
Exit: Restore volumes, set brightness to auto.
Extra automation: White list caller groups.

In car.
Enter: Turn on GPS, turn on auto screen rotate, run Navitel.
Exit: Turn off GPS, turn off auto screen rotate.
Extra automation: Enter Normal mode when Navitel closed, exit mode when charger disconnected, enter mode if charger connected in 30 minutes after autoexiting.

Silent.
Enter: Save volumes, set all volumes to minimum.
Exit: Restore volumes.

You can add and remove modes. You should add a new flow to enter mode and a new branch in "_End mode" flow to clear mode.

Automation IS NOT INCLUDED since it simple and maybe wouldn't be useful for you, but you can always ask me for it.

Hope you'll enjoy
Attachments
modes.rar
(2.23 KiB) Downloaded 1086 times
Sorry for bad english, my native is russian.

Post Reply