by F. F.
Flow to trigger some actions based on the battery level (19 blocks).
This flow posts temporary notifications when the battery level falls under 16% or charching has been completed. Those notifications can be used to assign a custom tone to be played. The according notification channels are named 'Low battery' and 'Charging completed'.
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.
Synchronization between the processing fiber and the blocking fiber monitoring the battery level is done by applying 'Variables Give' and 'Variables Take' blocks.