display turns ON after BT connected

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
undymm
Posts: 6
Joined: 21 Oct 2014 07:15

display turns ON after BT connected

Post by undymm » 21 Oct 2014 07:25

Hello, can anyboby please help me with this? If my phone /Sony Z3Compact, KITKAT/ connect to my car BT /BMW X5 professional/ the display always turn on itself. I want to make flow which will not allow the display to turn on after every connection to car.

If I start the car, phone BT connect to car BT, the display is turned on by the connection itself. How can I do the flow? I tried: Condition: BT connected--action: lock display. But it do not work. If I hit execute, display immediately lock /super/ but in reality after starting car, BT connect in few seconds, and display turns ON.

I also tried another action after bt connection--action: vibrate- it works perfectly. So Automagic can recognize the BT connection, but I can understand how make the action /lock phone/ to work.

Thank You for answer and sorry for my English :-)

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: display turns ON after BT connected

Post by kintrupf » 21 Oct 2014 08:26

undymm wrote:If I start the car, phone BT connect to car BT, the display is turned on by the connection itself. How can I do the flow? I tried: Condition: BT connected--action: lock display. But it do not work. If I hit execute, display immediately lock /super/ but in reality after starting car, BT connect in few seconds, and display turns ON.
Maybe it's just a timing problem? The Automagic trigger might be fired before the Bluetooth connection itself turns on the screen, so with the Screen Lock action you would then simply turn off a screen that has not yet been switched on ;)
Try adding a Sleep action before the Lock Screen action to add a delay of a few seconds. Maybe that solves the problem?
If yes we can come up with a more elaborate scheme to turn off the display right after it has been switched on.

undymm
Posts: 6
Joined: 21 Oct 2014 07:15

Re: display turns ON after BT connected

Post by undymm » 21 Oct 2014 09:06

Yes You are right! If I try vibrate after BT connected, it vibrate 5 seconds before the display go on, so i will try the sleep and will let You know. Thank You!!!

undymm
Posts: 6
Joined: 21 Oct 2014 07:15

Re: display turns ON after BT connected

Post by undymm » 21 Oct 2014 10:36

Unfortunatelly, it does not work, I tried sleep from 1s to 35 s, still the same result. My timeout is set to 30 s. I do not know how to continue...

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: display turns ON after BT connected

Post by MURTUMA » 21 Oct 2014 15:04

Could you send the flow here?

undymm
Posts: 6
Joined: 21 Oct 2014 07:15

Re: display turns ON after BT connected

Post by undymm » 22 Oct 2014 05:50

Yes, this is it:


<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<data version="1.24.0">
<trigger type="bluetooth_device_connected">
<useDefaultName>true</useDefaultName>
<name>Bluetooth Device Connected: BMW 43310 </name>
<enabled>true</enabled>
<all>false</all>
<deviceAddress></deviceAddress>
<deviceName>BMW 43310 </deviceName>
</trigger>
<action type="lock_device">
<useDefaultName>true</useDefaultName>
<name>Lock Device</name>
</action>
<flow type="flow">
<name>Flow1</name>
<enabled>true</enabled>
<lastExecutionStartTime>1413954672360</lastExecutionStartTime>
<lastExecutionEndTime>1413954672360</lastExecutionEndTime>
<executionPolicy>PARALLEL</executionPolicy>
<triggercontainer id="t1" x="70.0" y="52.5">
<trigger>Bluetooth Device Connected: BMW 43310 </trigger>
</triggercontainer>
<actioncontainer id="t2" x="105.0" y="297.5">Lock Device</actioncontainer>
<connection from="t1" to="t2" type="NORMAL" sourcePosition="SOUTH" targetPosition="NORTH" />
</flow>
</data>

undymm
Posts: 6
Joined: 21 Oct 2014 07:15

Re: display turns ON after BT connected

Post by undymm » 23 Oct 2014 09:23

I was playing in my car with this BT and now I believe it is impossible to set the display to not turn ON after connected to car BT :-(

The application can recognize BT connection /verified by " vibrate action"/ which is executed after BT connection, then after 8 seconds display on phone anyway allways turns ON. I tried all options, sleep, stay awake for period from 1 up to 31 seconds, result is still the same. After phone connects to car BT, display turns and remain ON.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: display turns ON after BT connected

Post by MURTUMA » 23 Oct 2014 13:11

Does your phone have settings related to docking in car? Maybe it's conflicting with the flow?

undymm
Posts: 6
Joined: 21 Oct 2014 07:15

Re: display turns ON after BT connected

Post by undymm » 23 Oct 2014 15:06

No, there is no setting about it in phone / Sony Z3 compact, android 444/ And I do not use dock in car, only holder. Thank You, Martin

Kobudo
Posts: 2
Joined: 26 Oct 2014 12:56

Re: display turns ON after BT connected

Post by Kobudo » 26 Oct 2014 13:01

Maybe try this:

When BT is connected to your car, start loop with sleep 5 seconds.
If screen is on, turn screen off, exit loop.

Execute and monitor if screen on is detected and if it's turning off

Locked