I have a flow that, when a device is connected OR disconnected from Bluetooth, checks some conditions and executes based on the results. Of those shown in the attached image, all conditions work perfectly EXCEPT for the True condition of the second "Bluetooth device connected--any" check. In particular, the audio stream volume doesn't set to the desired level, and instead sets itself to the maximum volume level like the final step in the HandsFreeLink Connected > True set of actions.
I added a sleep to the check in the hopes it would cause it to actually slow down and execute correctly, but no dice. I'm at a loss as to what I'm doing wrong, especially since the other two are working. Any help would be appreciated.
Thanks!
Flow actions not executing correctly after condition met
Moderator: Martin
Flow actions not executing correctly after condition met
- Attachments
-
- Screenshot_20190623-084751__01.jpg (110.8 KiB) Viewed 7654 times
Re: Flow actions not executing correctly after condition met
What is the situation when you are expecting the second condition to return true - it looks like the case when HandsFreeLink is disconnected and another device is still connected? Are you sure that another device is indeed still connected?
Perhaps insert a Debug condition after the first Bluetooth device Connected condition - False to pause the flow and see what devices are actually still connected?
Perhaps insert a Debug condition after the first Bluetooth device Connected condition - False to pause the flow and see what devices are actually still connected?
Re: Flow actions not executing correctly after condition met
The second condition should execute properly if you connect any bluetooth device that is not HandsFreelink. Try to connect any other BT device and watch how the flow execute.
The typical usage of the condition with 2 level check is to go from the general then specific. So it is recommended to have the first condition as bluetooth connected any, then if true, check again if bluetooth connected is HandsFreelink.
The typical usage of the condition with 2 level check is to go from the general then specific. So it is recommended to have the first condition as bluetooth connected any, then if true, check again if bluetooth connected is HandsFreelink.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Flow actions not executing correctly after condition met
So a little context: the initial check in the flow is to see if the bluetooth device that was just connected is my car bluetooth (handsfreelink). If not, THEN check if any OTHER Bluetooth device is connected. What's currently not working are the actions if the second condition returns true. The flow just blasts through the the actions without executing any of them-- but curiously, it ends by re-setting the volume to maximum level, which is the last step of the HandsFreeLink step.Wibbly wrote: ↑24 Jun 2019 07:43What is the situation when you are expecting the second condition to return true - it looks like the case when HandsFreeLink is disconnected and another device is still connected? Are you sure that another device is indeed still connected?
Perhaps insert a Debug condition after the first Bluetooth device Connected condition - False to pause the flow and see what devices are actually still connected?
If I connect another BT device (in this case my headphones, which is the only other Bluetooth device I use), it performs as I described to Wibbly above. But now that you've mentioned it, I'll try swapping the flow from general to specific to see if that helps.Desmanto wrote: ↑24 Jun 2019 18:03The second condition should execute properly if you connect any bluetooth device that is not HandsFreelink. Try to connect any other BT device and watch how the flow execute.
The typical usage of the condition with 2 level check is to go from the general then specific. So it is recommended to have the first condition as bluetooth connected any, then if true, check again if bluetooth connected is HandsFreelink.