Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,137 Members 50,508 Now Online
XDA Developers Android and Mobile Development Forum

[How To] Launch Tasker tasks from the G Watch - AutoVoice integration possible

Tip us?
 
spiderflash
Old
#1  
spiderflash's Avatar
Senior Member - OP
Thanks Meter 77
Posts: 316
Join Date: Jun 2014
Location: Munich
Default [How To] Launch Tasker tasks from the G Watch - AutoVoice integration possible

This isn't really a full tutorial, more a merge of two separate ones so that you can start tasker tasks and / or autovoice, in order to do home-automation or basically just start any tasker task you want.

Let me show you what I'm talking about:


What you need:
Basicly you need to set up a notification using AutoNotification (You can use this tutorial to set up a notification if you do not know how).
Important:
  • You have to use Buttons for the actions, as only these will be visible and usable on the watch.
  • Do NOT select "Persistent" mode, else the notification will not show up on the watch
  • You have to select a sound for the notification, else the notification will not show up on the watch
  • Do NOT select "Dismiss on Touch", else the notification can only be used once
Also useful: If you do not set a text, the notification will only be visible on the phone when the status bar is expanded. This keeps you status bar clean, which I prefer.

Create the necessary profiles and tasks for each button (as shown in the tutorial). I have one button to start my task and one to dismiss the notification.
This being done you can now run the task to open the notification. The notification will show up on your watch and you can launch the actions you set for each button. If you don't want to use AutoVoice profiles, you're done here

If you do though (like me) in order to (for example) start more tasks using only your voice (useful for home automation) continue reading.

Setup AutoVoice profiles in tasker (you can use this tutorial if you don't know how) for each voice command you want to use. Then create a task to launch AutoVoice recognition. Set this task as the task that will be executed when you press the button you created above. Done, you can now use your watch to start AutoVoice recognition and execute any task you want by voice.

My setup:
A notification with 2 buttons: The first one opens AutoVoice recognition on my N5 so that I can say for example "Turn the lights on". The second one deletes the notification when I don't need it anymore.
I have seperate Tasker profiles with AutoVoice to start several home automation commands (control my lights, pc, etc).
That's it, it's really not that complicated.

I hope this was useful, as soon as the Google Now API Xposed Module will be updated, you can also start tasks from your watch directly by voice without the need of this notification. But until then this is a good alternative, in my opinion at least
The Following 4 Users Say Thank You to spiderflash For This Useful Post: [ Click to Expand ]
 
spiderflash
Old
(Last edited by spiderflash; 9th July 2014 at 09:52 AM.)
#2  
spiderflash's Avatar
Senior Member - OP
Thanks Meter 77
Posts: 316
Join Date: Jun 2014
Location: Munich
If you want to start tasks directly from your watch with your voice you can now do this again (watch the video). Google Now API has been updated to 1.31. Combine that with AutoVoice like I did here to unlock unlimited possibilities. Requires Xposed Framework. Or you can use the method above instead.

The Following User Says Thank You to spiderflash For This Useful Post: [ Click to Expand ]
 
jm77
Old
#3  
jm77's Avatar
Senior Member
Thanks Meter 46
Posts: 222
Join Date: Sep 2008
I had some fun with this last night - I couldn't get IFTTT to launch with standard voice commands, so I ended up putting together "launch if/then" which launches it properly.

I had some Google Play credit left over, so I ended up buying Tasker and AutoVoice Pro.

Thanks for sharing this!
Nexus 5 (4.4.4/L Dev Preview)
Nexus 7 (2013, 4.4.4 Rooted)
LG G Watch (stock)
 
deadman96385
Old
#4  
deadman96385's Avatar
Senior Member
Thanks Meter 2,804
Posts: 994
Join Date: Aug 2011
Location: Saint Paul, Minnesota

 
DONATE TO ME
Quote:
Originally Posted by spiderflash View Post
If you want to start tasks directly from your watch with your voice you can now do this again (watch the video). Google Now API has been updated to 1.31. Combine that with AutoVoice like I did here to unlock unlimited possibilities. Requires Xposed Framework. Or you can use the method above instead.
Where did you find the google now api 1.3.1 update? its not showing up on xposed.


LiquidSmooth Google +
Current Devices: HTC MyTouch 4g | Galaxy S3 VZW | Nexus 7 (2013) | Nexus 5 | HTC One (2014)
If you like the work I do please click the "Donate to me" button on the left
 
spiderflash
Old
#5  
spiderflash's Avatar
Senior Member - OP
Thanks Meter 77
Posts: 316
Join Date: Jun 2014
Location: Munich
Quote:
Originally Posted by deadman96385 View Post
Where did you find the google now api 1.3.1 update? its not showing up on xposed.
Here: http://forum.xda-developers.com/show...php?p=54013884
Please use the search function or Google before creating an unnecessary thread / post about somthing which has already been answered. Also please read the rules and post in the right forum. Thanks!

My devices:
 
LG Nexus 5 - Black 16GB - Stock ROM with Root & Xposed - ElementalX Kernel
Samsung Galaxy Note 10.1 - White 64GB - Stock with Root
LG G Watch - Black 4GB - Gohma ROM (modified) & Root

<------- Please click if I helped you
The Following User Says Thank You to spiderflash For This Useful Post: [ Click to Expand ]
 
EnIXmA
Old
#6  
Senior Member
Thanks Meter 159
Posts: 926
Join Date: Feb 2012
Location: Mississauga, on
I can get the notification and buttons on my watch, but am not able to link that button to my tasked to turn on the wemo light... Can someone please help?

Thnx
 
spiderflash
Old
#7  
spiderflash's Avatar
Senior Member - OP
Thanks Meter 77
Posts: 316
Join Date: Jun 2014
Location: Munich
Quote:
Originally Posted by EnIXmA View Post
I can get the notification and buttons on my watch, but am not able to link that button to my tasked to turn on the wemo light... Can someone please help?

Thnx

You have to set a profile which activates when autonotification receives a message. That message must be the name of the button. This profile will then launch the task.

Sent from my Nexus 5 using XDA Premium 4 mobile app
Please use the search function or Google before creating an unnecessary thread / post about somthing which has already been answered. Also please read the rules and post in the right forum. Thanks!

My devices:
 
LG Nexus 5 - Black 16GB - Stock ROM with Root & Xposed - ElementalX Kernel
Samsung Galaxy Note 10.1 - White 64GB - Stock with Root
LG G Watch - Black 4GB - Gohma ROM (modified) & Root

<------- Please click if I helped you
 
EnIXmA
Old
#8  
Senior Member
Thanks Meter 159
Posts: 926
Join Date: Feb 2012
Location: Mississauga, on
I just need to turn on my demo light from the watch... Can you please check from the pics as to what am I doing wrong? I am a newbie with this
Thnx

Click image for larger version

Name:	uploadfromtaptalk1405352980999.jpg
Views:	86
Size:	37.4 KB
ID:	2850934Click image for larger version

Name:	uploadfromtaptalk1405353001669.jpg
Views:	84
Size:	26.6 KB
ID:	2850935Click image for larger version

Name:	uploadfromtaptalk1405353020041.jpg
Views:	81
Size:	23.4 KB
ID:	2850936Click image for larger version

Name:	uploadfromtaptalk1405353032571.jpg
Views:	82
Size:	37.6 KB
ID:	2850937Click image for larger version

Name:	uploadfromtaptalk1405353047089.jpg
Views:	79
Size:	33.4 KB
ID:	2850938
 
spiderflash
Old
#9  
spiderflash's Avatar
Senior Member - OP
Thanks Meter 77
Posts: 316
Join Date: Jun 2014
Location: Munich
Quote:
Originally Posted by EnIXmA View Post
I just need to turn on my demo light from the watch... Can you please check from the pics as to what am I doing wrong? I am a newbie with this
Thnx

Attachment 2850934Attachment 2850935Attachment 2850936Attachment 2850937Attachment 2850938
I'm not sure, seems alright. But check again, make sure everything is like in this video:

Please use the search function or Google before creating an unnecessary thread / post about somthing which has already been answered. Also please read the rules and post in the right forum. Thanks!

My devices:
 
LG Nexus 5 - Black 16GB - Stock ROM with Root & Xposed - ElementalX Kernel
Samsung Galaxy Note 10.1 - White 64GB - Stock with Root
LG G Watch - Black 4GB - Gohma ROM (modified) & Root

<------- Please click if I helped you
 
EnIXmA
Old
#10  
Senior Member
Thanks Meter 159
Posts: 926
Join Date: Feb 2012
Location: Mississauga, on
Thnx

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes