How do I change detect OK Emy on Huawei Mate 10?

1,959 views
Skip to first unread message

she...@1337ventures.net

unread,
Nov 4, 2017, 6:05:30 AM11/4/17
to Automate
I would like to activate Ok Google when wake up my Huawei Mate 10 with OK Emy. How do I detect the Ok Emy activation? In the Tasker app, it would be by detecting if the Sound Trigger title is diplayed in the App window indicating that I have activated Ok Emy. How is this done in Automate? Thanks!

Henrik "The Developer" Lindqvist

unread,
Nov 4, 2017, 3:43:41 PM11/4/17
to Automate
Try using the Interact block with action Inspect.
http://llamalab.com/automate/doc/block/interact.html

she...@1337ventures.net

unread,
Nov 11, 2017, 5:04:01 AM11/11/17
to Automate
Hmm...seems to start and stop. I am a complete noob so what am I doing wrong?
https://ibb.co/mtCbtG
https://ibb.co/ePJGtG
https://ibb.co/kdeBSb

Henrik "The Developer" Lindqvist

unread,
Nov 11, 2017, 2:40:27 PM11/11/17
to Automate
In the Interact block, you likely want to use the "Inspect" action, and proceed "When UI element appear".

she...@1337ventures.net

unread,
Nov 15, 2017, 8:01:36 PM11/15/17
to Automate
I did what you said - inspect and proceed when UI element appears for "sound trigger" but the log shows that it is stuck at this block and not proceeding. Any idea why it is not working?

Maybe because the "sound trigger" words do not really appear? I got it from: https://www.xda-developers.com/enable-ok-google-always-on-hotword-detection-on-huawei-honor-phones-no-root/

Henrik "The Developer" Lindqvist

unread,
Nov 15, 2017, 9:59:00 PM11/15/17
to Automate
You said "In the Tasker app, it would be by detecting if the Sound Trigger title is diplayed"

That's what the Inspect block, with Inspect action, does. Maybe the title is "Sound Trigger" not "sound trigger"?

camt...@gmail.com

unread,
Nov 28, 2017, 12:29:23 PM11/28/17
to Automate
I am following this discussion. When you use wake up voice assistant (Huawei one), the display message is "Place a call or find your phone".

I am trying to use interact block with inspect  --  It will trigger with any keyword actually (no matter what I set, it will continue the flow) 

Is this a bug?

Henrik "The Developer" Lindqvist

unread,
Nov 28, 2017, 2:08:35 PM11/28/17
to Automate
How is the Interact block configured?

camt...@gmail.com

unread,
Nov 28, 2017, 5:27:51 PM11/28/17
to Automate

Please see the attached. 

camt...@gmail.com

unread,
Nov 28, 2017, 5:46:06 PM11/28/17
to Automate
OK I realise I have put the text in wrong place.
 Now it is in UI text. It works to trigger with a wifi name etc. but it is still not working for the wake up search screen. 
The wake up message triggered when screen is off and then show something like this:

camt...@gmail.com

unread,
Nov 28, 2017, 6:35:52 PM11/28/17
to Automate
Hi, 
Thanks again. I have sort of got a solution for now.
Using a bluetooth device to keep the phone unlocked using smart unlock. Then use the automate to recognise the text on the screen with "Place*" keyword.

Finally use App start to run the google assistant.

The flow is here:

@Henrik, there is currently a 5 seconds delay for app start for unknown reason (from the unlocked screen not the launcher screen)
I wonder is there a way to go into the launcher from the unlocked screen by "swiping up/bottom" and then I can use the home button to launch google assistant.

Henrik "The Developer" Lindqvist

unread,
Nov 29, 2017, 3:46:50 PM11/29/17
to Automate
Some Android versions has an "security" feature which delays starting of activities.
Reply all
Reply to author
Forward
0 new messages