I would start by checking the Run Log.
Here you can find the RunLog file.
I stripped down the project and renamed the tasks so it makes a bit more sense and did some isolated tests (the previous situation was in a bigger project).
8/9 out of 10 times the Shake profile is also executed, which is odd, as I need to shake the phone firmly to enable the shake profile alone.
Isn't that going to be annoying if you want to assign a task/scene etc
from outside the project ? In other words, we would need a way in the
UI to quickly turn on / off this feature. Anyway, I'll put it on the
list.
Could you export here the descriptions of the 3 relevant profiles as
well please ?
A5: Vibrate [ Time:75 ] If [ %ID_PROX = 2 ]
A6: Stop [ With Error:Off Task:SubProxTask ] If [ %ID_PROX = 2 ]
A7: Run Shell [ Command:all Lights on Timeout (Seconds):2 Use Root:On Store Result In: Continue Task After Error:On ] If [ %ID_PROX = 2 ]
A8: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A9: Run Shell [ Command:Lights off 0 Timeout (Seconds):2 Use Root:On Store Result In: Continue Task After Error:On ]
Profile: Shake (10)
Event: Shake [ Axis:Left-Right Sensitivity:Low Duration:Long ]
Enter: Shake_Task (4)
Shake_Task (4)
A1: Run Shell [ Command: other light stuff Timeout (Seconds):0 Use Root:On Store Result In: Continue Task After Error:On ]
Matt
Have you tried starting from scratch? I just tried these 2 profiles and could not get the test shake to fire with the test prox. All work as it should..
Rich....
Profile: Test Prox (268)
State: Proximity Sensor
Enter: Test Prox On (269)
A1: Notify [ Title:Prox On Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ]
Profile: Test Shake (270)
Event: Shake [ Axis:Left-Right Sensitivity:Low Duration:Long ]
Enter: Test Shake On (271)
A1: Notify [ Title:Shake On Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ]
This seems like a longshot, but maybe try removing the vibrate actions from your proximity task? Perhaps the vibration motor in your phone is just close enough to the accelerometer to trigger it ...Matt
Just added this...
And all still works as it should...
Hope this helps.... Rich
Profile: Screen On (272)
Event: Display On
Enter: Screen On (273)
A1: Profile Status [ Name:Test Prox2 Set:On ]
A2: Wait [ MS:0 Seconds:6 Minutes:0 Hours:0 Days:0 ]
A3: Profile Status [ Name:Test Prox2 Set:Off ]
Profile: Test Prox2 (268)
State: Proximity Sensor
Enter: Test Prox On (269)
A1: Notify [ Title:Prox On Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ]
OK.....
I downloaded and tested
At first I could only get the shake to activate 1 out of 10 times at best and that was only when sitting on a hard surface. It would not activate when i had the phone on a soft surface.
I disabled the vibrate and could not get the shake to activate at all ( except of course when i shook the phone)
So i would say that it does behave as expected on my device.
I have a moto droid 4 running 2.3.6.
Using. Tasker Version 1.3.1m. NOT rooted
It has been reported that the key guard has some flakey behavior. Perhaps try to immediately exit the key guard and see if it still miss behaves.
Rich....
OK.....
I downloaded and testedAt first I could only get the shake to activate 1 out of 10 times at best and that was only when sitting on a hard surface. It would not activate when i had the phone on a soft surface.
I disabled the vibrate and could not get the shake to activate at all ( except of course when i shook the phone)
So i would say that it does behave as expected on my device.
I have a moto droid 4 running 2.3.6.
Using. Tasker Version 1.3.1m. NOT rootedIt has been reported that the key guard has some flakey behavior. Perhaps try to immediately exit the key guard and see if it still miss behaves.
Rich....
Are you rooted? I have read that some ROMS have tasker issues.
Are you rooted? I have read that some ROMS have tasker issues.
I think you are on the right track to figuring it out. I would suggest posting on a device and rom specific forum (like xda ) looking for tasker users. Just to cover more bases.
I do have another suggestion for your profile when you hopefully get it working. I believe the way it is set up now with the quick triggered nature of the proximity context and having the task set to 'run together ' you could get several occurrences of the task running at the same time and with waits involved you might get some unreliable results.
If what you are after is to 'do stuff' on the second occurrence of the proximity sensor after the screen comes on then I would suggest using two profiles with proximity contexts. The first would have a stop as a entry task and set a variable on the exit that would trigger the second profile with a proximity and variable value context. Then 'do stuff ' in the entry task and reset the variable and shut off the profiles in the exit. ( not tested but it should work)
Just a thought .... hope you don't mind... Rich