Page 1 of 1

been spending hours trying to work this out!

Posted: 22 Mar 2018 15:51
by Autumn-Leigh
Got a question< been spending hours trying to work it out.
so i have a flow, bluetooth enabled, connect to bt speakers, play music.

Now, i would LIKE bluetooth to turn of when no screen on, Unless this flow is working, if it is working (it is connected up, and playing music) its stay on, even with screen off, if it isnt connected to speakers and not playing music, turns it off.

is this possible please?

Re: been spending hours trying to work this out!

Posted: 22 Mar 2018 16:22
by Wibbly
I have a similar (?) flow. Its intent is to look for Bluetooth being disconnected for over 5 mins, the phone being left alone, on battery power and, if so, disable Bluetooth. The flow is set to stop executing existing instance and execute afterwards if it's retriggered. So it's doesn't (and I'm not sure you can) test for music actually being played.

But if you control the music player via a flow too, you can of course tell when you have stopped the music.

Image

Re: been spending hours trying to work this out!

Posted: 22 Mar 2018 17:22
by Desmanto
When Screen off >> Trigger Display state off.

Only when not connected to bluetooth and not playing music >> condition bluetooth connected false and Music Active false.

No need to check for the flow is running.

==========
Trigger : Display off
Condition 1 : Bluetooth Device Connected : Any
false >> Condition 2 : Music Active
false >> Action : Set Bluetooth State : Off
==========

If you turn off you display frequently and think this flow consume more (actually almost nothing), you can add an extra flow with trigger Bluetooth State On, and enable this flow. At the main flow, add additional set flow, disable itself after set bluetooth state off.

Re: been spending hours trying to work this out!

Posted: 22 Mar 2018 17:46
by Wibbly
Ah ha! Music Active condition is something useful I'd not spotted before :-)

Re: been spending hours trying to work this out!

Posted: 22 Mar 2018 19:02
by Autumn-Leigh
Desmanto wrote:When Screen off >> Trigger Display state off.

Only when not connected to bluetooth and not playing music >> condition bluetooth connected false and Music Active false.

No need to check for the flow is running.

==========
Trigger : Display off
Condition 1 : Bluetooth Device Connected : Any
false >> Condition 2 : Music Active
false >> Action : Set Bluetooth State : Off
==========

If you turn off you display frequently and think this flow consume more (actually almost nothing), you can add an extra flow with trigger Bluetooth State On, and enable this flow. At the main flow, add additional set flow, disable itself after set bluetooth state off.
Your a legend! and my hero! Thank you :D

Re: been spending hours trying to work this out!

Posted: 22 Mar 2018 19:04
by Autumn-Leigh
Wibbly wrote:Ah ha! Music Active condition is something useful I'd not spotted before :-)
im so excited for this new condition haha :lol:

Re: been spending hours trying to work this out!

Posted: 22 Mar 2018 19:19
by Autumn-Leigh
Wibbly wrote:I have a similar (?) flow. Its intent is to look for Bluetooth being disconnected for over 5 mins, the phone being left alone, on battery power and, if so, disable Bluetooth. The flow is set to stop executing existing instance and execute afterwards if it's retriggered. So it's doesn't (and I'm not sure you can) test for music actually being played.

But if you control the music player via a flow too, you can of course tell when you have stopped the music.

Image
Thank you, this will come in use to me too :D