Tasker + Autovoice + Sharptools Android ST Voice Control Profiles

Can you try it without the prefix. The way it is now, it should run Google Now unless it recognizes you asking for it to be turned on or off. If it recognizes the command it will close Google Now.

I did. It wouldn’t recognize a command if my screen was showing a google search results. It always works from the launcher. By adding the prefix, It fixed the issue. I looked at your code and see where you added the return to home command. This issue could be native to my Samsung and android version. I’ve had it happen before with these particular tasker add-ons and even sharp tools. I’m ok with the prefix. I think your code is great.

well, it might also be because what I did right now is a hotfix. I’ll have a more permanent and properly implemented solution up as soon as I am done with the brightness control.

I look forward to the code. I’ll experiment some more and see how it goes.

Steve

I’ve had this on my hit list for a while (variable mode for Phrases), but I haven’t had a lot of feedback that people were interested in it so other things took priority. I’ll take a look and see if I can get it prioritized.

Edit: Support for variables in A Routine and A Mode Added in SharpTools version 2.3 (post further below)

thanks! (10 char)

Updated with the following:

  1. Set brightness by saying: ā€œSet thing to 20%ā€ or ā€œSet thing and thing or thing, thing to 40%ā€. Replace the % with how much you need.
  2. Will run Ok Google and will only close Google Now if the profile runs a task/command. So saying ā€œwhat’s the weatherā€ will simply trigger Google Now, where as saying ā€œturn my basement lights onā€ will run the task and close Google Now.

You can combine any of the commands

I have it installed. I’m in the middle of a movie right now but, will put it through it’s paces tomorrow. Sounds like it will do 90% of my lighting needs.

Thanks for sharing the code. Hopefully, Josh will let you use variables for routines. This will be one of my most used apps. I won’t even.need alexa. Lol.

Thanks again, Neal!

also if you want me to add more phrases for existing commands just post samples. :slight_smile: I’ll add them when I have some time. Open/Close is next, haven’t really come up with anything after that.

Open/close would be handy for garage doors but I can use on/off as mine are controlled by momentary virtual switches. I don’t have any but lock/unlock for those folks that do. I’m just hoping for Josh and routines. :smile: That would pretty much take care of all my needs. If Josh can’t make it work, I may dump my routines and use a couple custom smart apps and virtual switches. I’m really excited to use your code. If I find anything else I’ll definitely let you know. Thanks again!

Steve

how did testing go?

Horrid. I think your code is ok but I have something weird going on here. It looks like the command is being executed but either nothing happens or it will occasionally happen 30 seconds later. Usually I get a flash of a confirmation (not the actual name of the thing though) and nothing happens. I’ll have to try and sort that out tomorrow. It’s doing it with previous versions too so it’s on my end. I didn’t feel up to working today so am playing now and the house is ā€œasleepā€, my brides in bed, so that may be it. I’ll try tomorrow. When I have a bad day my voice is usually bad and unrecognizable so it would have been futile anyway. It does seem to know if it’s a search or a command though. Kudos! I’ll let you know how I feel tomorrow.

Is there a way to see a list of the things that have been parsed? The script is turning on lights that I’m not asking it to. Example;

Say: ā€œTurn on guest bedroom ceiling lightā€

I ended up with my master bedroom ceiling light turned on.

Again, maybe it’s my voice or maybe I have too many devices with similar sounding names. I was just scolded when the light came on and woke my bride so I’m done for tonight.

I really would like to see a list Of things if possible. I’m lost when it comes to your code or I would try and find out How to do it myself.

Thanks…Steve

I reworked how it parsed the commands yesterday, and now looking over it looks like there is an error causing the problems you are seeing. I’ll put up a new version tomorrow, its the code not you. Sorry about that.

I followed the instructions in the first post to get setup. I already had Tasker and SmartTools installed. I enabled the SmartTools Tasker interface.

When I run the ā€œRecognize Devicesā€ task, I get a notification:-

SmartTools - Error: Tasker compatable automation app required

Any idea what I have done wrong?

Many thanks
Mike

Thats interesting, can you go into SharpTools and double check if tasker integration is enabled? (If you haven’t paid for it, it should enable a 7 day trial). Also can you control your things from sharptools (aka are they all authorized and appearing in the app).

One final note, the voice actions currently has a bug, so it might not work properly. A new update will go up tomorrow.

Ok. I just tried again after killing off tasker and sharp tools and it seemed to run properly this time!

Voice still does not work though.

Regards

Like I said, the last update ended up not working as intended, for now try the following which only has turn on and turn off: https://pdfzebrablindsca.s3.amazonaws.com/Voice_Action.prf.xml

Got something interesting Neal. I am using the first version for the time being and spaced out that it only has on/off capability. I told it to ā€œclose Steve’s garage doorā€ as I hobbled into the house and it worked. I didn’t think you had open/close baked in. So you know, my garage doors are controlled by a relay that is set up as a momentary contact but, the phrases ā€œopen/closeā€ did work on V1 of the code.

I’ve been trying that version and it just doesn’t work for me!

I must have something wrong somewhere.

I have a tasker run log and some screen shots if you would like to see them?

Regards
Mike