by Uwe Scholz
For the german corona app
Original idea from user "Max Mustermann"
- Activates bluetooth when leaving home (depending on WiFi)
- Checks WiFi status every 5 minutes to save energy
- Deactivates bluetooth when coming home or within sleep time
Be sure to add your home SSID (WiFi) in the flow and to adjust the time window when you might not be at home (i.e. when bluetooth can be switched on).
- fix for showing status updates
- let user pick Home WiFi at start
- don't disconnect bluetooth if device is connected