I'd like to have a flow that enables Bluetooth, and then disables it after ten minutes if nothing is connected. The idea is that if I leave home or work, I'm probably getting into my car, which has Bluetooth, but I might be going for a walk instead.
I had a flow that would enable Bluetooth, sleep for 10 minutes (without keeping the phone awake), check to see if devices were connected, and then disconnect if none were. Unfortunately, this would give me 10 minutes of being connected to my car, and then turn Bluetooth off.
I tried again with a flow that would enable Bluetooth, sleep for 10 minutes, then call another flow that checked to see if anything was connected and disconnect if nothing was. This seemed to work, but this morning it again disconnected me after 10 minutes. When I checked the log, it said that the Bluetooth devices connected condition evaluated to false.
The documentation for the condition says that the function is not directly supported by Android, and that Automagic has to keep track of connect and disconnect events. I suppose that it could be losing a connect event somewhere along the line.
Is there a better way that I should be doing this?
Bluetooth Devices Connected
Moderator: Martin
Re: Bluetooth Devices Connected
There's no better way that I'm aware of. You could try to turn on the screen before checking the condition in case the device does not inform apps about connected devices in deep sleep or when the screen is off.
Re: Bluetooth Devices Connected
Thanks!
The version with the second flow that checks and disconnects only hiccuped the one time, so I'll continue to do it that way.
I'm very impressed with Automagic. Thank you for the app and the support.
The version with the second flow that checks and disconnects only hiccuped the one time, so I'll continue to do it that way.
I'm very impressed with Automagic. Thank you for the app and the support.