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:
- 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.
- 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.
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.
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