Tasker + Autovoice + Sharptools Android ST Voice Control Profiles

So after going through most posts that offered voice control using Tasker + Autovoice + Sharptools, I couldn’t really find anything that accepted multiple commands as a single command (i.e “Turn the basement lights and chandelier on and turn off the kitchen lights.”)

So I made a tasker profile that does accept multiple commands and should theoretically work with natural speech (haven’t really done much testing yet.)

Required apps for setup:

Once all the apps have been installed and basic setup for each is done (for Autovoice Ok Google integration must be enabled), download the following profiles and import in tasker:
Voice Action:
Recognize Devices:

Once imported run the Recognize Devices profile once and save and exit tasker. The following should work using Ok Google:

  1. Turn on/ Turn off, Turn thing on/Turn thing off as well as other combinations as long as it makes some sort of sense
  2. Set thing to %. Basically you can control dimmer switches. Will work with multiple devices so for example “set living room and basement lights to 30%”
  3. Run routine where run is the keyword and routine is the name of the routine. Before using routines please make sure you go into sharptools and refresh the routine list!

You can combine your commands any which way and they should work. I will be adding open/close soon.

If you want to help:

  • Simply test and see if you can improve on the existing tasks and profiles
  • Suggest commands and functions not included currently, when doing this please also include a command pattern sample (i.e: “Set living room light brightness to 30%” or “Dim the living room to 30%” etc.)

This is nothing overly complicated and anyone can learn. If you want to attempt something similar and need suggestions feel free to ask!


Awesome work! Thanks for sharing.

1 Like

I should have an updated version today or tomorrow with the ability to set brightness and open/close.

1 Like

Very cool. I haven’t played much but this is great.

1 Like

The ability to execute routines would be a nice addition. Like the ability to execute my TV Lighting routine;

“Execute routine ‘Set TV Lighting’”

Thanks again for all of your work.


Thank you @ZebraBlinds. Finally. Someone who shares a profile.

1 Like

Hmmm, it’s something I am looking into as well. The problem is the way SharptTools allows routine executions, I can’t directly pass in a variable to do the job, so you would still have to go into the task and set for examples:
If "%var" matches regex "routine"

@joshua_lyon any thoughts on this?

For now I should have a new version up tonight or tomorrow that can set/dim brightness. Still working out a few quirks in it.

1 Like

I skimmed your profiles and was surprised at how few commands were needed. You obviously have a handle on using tasker.

I wouldn’t be against programming some tasks for my routines but it would be easier if that wasn’t needed.

Later, when I have time, I’m going to look at your profiles and see what you did.

To be honest, I’ve only used tasker fully for about 2 - 3 weeks now. I am just good at picking up on new programming and languages. It’s fairly simple filtering and checking.
You should have seen my first monstrosity; I tried figuring out which things are being referenced without populating an existing list… the first trial ended up doing so many weird things that I decided to simplify.

1 Like

@ZebraBlinds, I think I may have uncovered a bug (or side effect). At least on my galaxy S5 running marshmallow 6.01 and Google now launcher. When doing a normal Google search, the Google browser does not stay on the result screen. It reverts back to the launcher. Are you seeing this same behaviour?

I believe that’s how AutoVoice works. In my setup (nexus 6p & oneplus2) saying Ok Google triggers the voice prompt, and I have AutoVoice capture the entire command, which causes what you see.

One possibility is to have a trigger such as home which activates AutoVoice. So the flow would for example be:

  1. “Ok Google”
  2. “Tell home to turn the living room lights off”

So home would trigger AutoVoice and a command without home will just run the Google Search. Another option (need to check if its possible) is set up an entirely new trigger word for AutoVoice, so instead saying Ok Google, you would say Hey Home or something similar.

Which of the 2 possibilities would you prefer?

I was able to fix it by letting auto voice do the Google now search. It’s been awhile since I played with these programs. At one time I had a separate profile for each device in my home. Not very elegant. Now I’m wondering if you can leave the search active but return to the launcher if the command is executed by your profile.

Should be do able, I’ll update tonight once I am free

What I did was cancel the search to Google (like your original profile) and added the prefix command in autovoice to execute the profile. I’m showing my age here but I used “Hal” as in 2001. So now, I either press the Mic icon or say “okay Google” and then say “Hal, turn off the kitchen table light.”

I like Hal but with my voice, it’s not always recognized correctly. I could go in and add the replacement words but will probably change it to “Home” or some other HA term that is recognized every time.

1 Like

I think I might have a better solution. Autovoice will run in the background and if it runs a task it will close google now and go to your main launcher. So essentially operation should be seamless. I’ll upload the new profile in an hour or two.

That would be ideal. I look forward to your work. I really need to learn tasker after seeing you duplicate all of the profiles I had in lollipop with just a few simple commands, and better because it will do multiple command at one time.


Can you try the new version I just uploaded? https://pdfzebrablindsca.s3.amazonaws.com/Voice_Action.prf%20(2).xml

It should work now.

1 Like

Sure. Give me 30 minutes.


This is weird. It does not always work after a “regular” search and you have the Google results up. Try doing a simple search asking what a state capitol is and then ask it to operate a light. Let me know what you see.


If I use the prefix command “I switched from Hal to command” it works religiously every time.