Time for bed

by Dean Barnard

Version 1 (November 22, 2015)

Download (160 downloads)

This flow waits for all 4 conditions to be true before putting my phone into Priority mode so I don't get any interruptions whilst I sleep, unless it's a call from a close family member.
If any one of the conditions is false it turns off priority mode.

The conditions are...
* It's past 22:30.
* The phone is plugged in to AC power.
* Bluetooth is not connected to a device.
* I'm not at certain location.

For the moment I've left toast notifications in so I could see when the conditions change.

Thanks for the help on the binary stuff Henrik.