Premium DND Monitor

by F.

Version 1 (July 27, 2022)

Download (11 downloads)

Flow to switch configurable phone settings based on the DND mode.


This flow deactivates / activates configurable phone settings (WIFI, Bluetooth, data synchronization, low power mode) when 'Do Not Disturb' mode has been activated in configurable time frames and restores those settings when leaving DND if desired. Optionally it posts a temporary notification when DND has been activated while the device is laying face-down on the table. This allows assigning a tone to be played as acknowledge when the 'Flip to Shhh' feature is used on Google's Pixel phones.

The flow set contains 2 starting points - a service flow doing the processing and a configurator flow to administrate the options, which are stored persistently in a file.

The flow has been created and tested on a Google Pixel 4a (Android 11), so no warranties are given it will run smoothly on any other device.

Once the configurator flow modifies the settings, it provides them to the eventually running service flow within a broadcast message. Synchronization between the processing fiber and the blocking fibers monitoring the DND mode and a possibly changed configuration in the service flow is done by applying 'Variables Give' and 'Variables Take' blocks.

If you want to make use of the acknowledge tone for the 'Flip to Shhh' feature, make sure to exclude the 'DND activated' notification channel from being suppressed by DND in the Android notification settings for the Automate app!

It should be easy to extend the flow to toggle the mobile data switch as well but this would require a rooted device.