[Deprecated] Ask Alexa 2.0.7

Is the extended/2nd command limited to the Ask Alexa world, or open to the full Amazon integration? Meaning, could I say “Alexa, tell smart things to turn on living room Bluetooth” (Harmony activity), then when she asks if I need anything else, say “play my Chevelle station on Pandora”?

I would test for myself but my TV is in use at the moment.

@MichaelS I have delete all the voice macro I have and It does not work, and I also delete the AskAlexa at SmartApp and recreate it, and It does not help also. I create a simple Voice Macro with just weather Status Report. but It is same error as I show you at below

I have nothing setup at Text Field Variables cause It may make us confuse… I did not try other AskAlexa command, most of time I use is Voice Macro… I have tried a simple command ti turn on the light by askAlexa “tell SmartThing ti turn on the light” and it work, so I think my problem maybe just at voice Macro. but even I create the Voice Macro with just Weather Status Report without other device involves, but It still give me the error.

c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:04: debug There was an error processing the report. Please try again. If this error continues, please contact the author of Ask Alexa. %1%
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:03: debug Lambda Ver: 116
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:03: debug Param: undefined
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:03: debug Cmd: play
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:03: debug mNum: undefined
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:03: debug Macro Name: weather status report
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午12:25:03: debug Macro command received with params [lVer:116, Param:undefined, Num:undefined, Cmd:play, access_token:74b03ca3-xxxx-xxxx-afee-c85bb200eef4, Macro:weather status report, appId:c8f9b9e4-xxxx-xxxx-9cf0-a9f81f16c09a, param1:m, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi]

Got a chance to test and it does seem like the follow-up command needs to be something that Ask Alexa ST smartapp can control rather than a wide-open Alexa command.

Correct…it remains open to the Skill you previously called (“Alexa, Ask SmartThings”), so the commands will only be in the context of that app.

Ok…let’s take this to a PM so we don’t disrupt the thread too much. However, with such a simple macro I think we should be able to track down the issue…

Before taking it to the PM, so me a favor…I am not sure how you got the code into your IDE, but I recommend NOT using the integration just once, instead going into GitHub, copying the RAW code, and then pasting it to your IDE…Overwriting what you have…(it is here: https://raw.githubusercontent.com/MichaelStruck/SmartThingsPublic/master/smartapps/michaelstruck/ask-alexa.src/ask-alexa.groovy)

When done, Save, then Publish it…from there test it…if it still fails, just create a voice macro that checks a light…no other stuff in there. Be sure the name of the macro is in your developer ‘slot’. Does that one fail as well?

Let me know via PM.

@MichaelS
I will take a vocation at July 28-29.so I am not be able to try the
suggestion. But the way I do is go to the GitHub and copy and paste to my
IDE.
One thing strange is after I update the code of ask alexia to 2.0.7b and
lamada to 1.1.6 then my voice macro stop working.i have try to just use
askalexa to turn on the light and it really work.so I think my problem only
at voice macro.and if you have previous version of askalexa code and
lambada code that you could share with me to restore to previous condition
then maybe it is much easy for me to figure out what is wrong.I am working
fine with previous version but after read the Alexa 2.0.7 forum then start
to upgrade and situation become this

There is a new rounding routine the is present in the new version that is likely the issue. I feel I have fixed it, so it is preplexing that you are experiencing it with 2.0.7b. I will need to work with you on tracking this down, but I understand you will be on vacation so it can wait. Please note that I will be releasing a new version on Friday. I don’t expect that it will change your situation but you never know.

If you do have a chance before you leave, go into the app code and change line 1523 from String to def. If that doesn’t work, remark out lines 1525 and 1559…Finally, if that doesn’t work, then remark out 1563.

Thanks for working with me on this.

Love the app @MichaelS ! No coding experience whatsoever here, however the wiki does such a good job of explaining the process that I was able to get it going in about 45 minutes.

I’ve only ran into one problem here so far. I have a voice control macro that triggers a CoRE piston (specifically, a DO piston). The piston’s only job is to play a TTS report to one of my Sonos speakers. However, I’m receiving the following error in the logs:

Do you know if this is an Ask Alexa, CoRE, or some other issue entirely?

That is a SmartThings error…it appears the number of requests to the servers at Amazon that process the TTS has been exceeded. I recommend opening a ticket with support (I am better, however, that they already know).

I have updated the app to 2.0.8…This is somewhat a big one with the Lambda code being completely revamped for the addition of personalities (coming soon).

I just installed Ask Alexa and I must say it’s truly brilliant!

One issue I have is that multi-purpose devices, such as the SmartThings Multipurpose Sensors that report open/closed status and temperature and the SmartThings Water Leak Sensors that report wet/dry status and temperature, are only able to be configured in the SmartApp as serving one purpose or the other but not both. Could this be made to function in both capacities?

Thanks VERY much!

If you turn on the multi attributes setting you can hear the primary purpose and then all of the other things the device does…

Oh wow. I completely missed that. Thanks for the heads-up. Much appreciated!! Again, brilliant work!!

1 Like

@MichaelS I update Ask Alexa 2.0.8 and Lambda 1.1.7,. and I though it will fix my problem with a single Voice Macro - Weather Status Report, but it Still fail as below
Since I already update to 2.0.8, the suggestion you tell me at 2.0.7b see lost the track anymore, If you want me to try something at 2.0.8, Please tell me the right place…

c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:37: debug --Begin commands received–
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:25: debug There was an error processing the report. Please try again. If this error continues, please contact the author of Ask Alexa. %1%
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:24: debug Param: undefined
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:24: debug Cmd: undefined
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:24: debug mNum: undefined
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:24: debug Macro Name: weather status report
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:24: debug -Macro command received-
c8f9b9e4-08e8-494a-9cf0-a9f81f16c09a 下午1:56:23: debug --Begin commands received–

Let’s go into PM with this…Send me a screenshot of your macro settings and I will see I can reproduce it.

MichaelS http://community.smartthings.com/users/michaels Micheal
http://community.smartthings.com/users/michaels
July 30

Let’s go into PM with this…Send me a screenshot of your macro settings
and I will see I can reproduce it.

Visit Topic
http://community.smartthings.com/t/release-ask-alexa-2-0-7/53317/92 or
reply to this email to respond.

In Reply To
mitchell_lu66 http://community.smartthings.com/users/mitchell_lu66 Mitchell
Lu http://community.smartthings.com/users/mitchell_lu66
July 30
@MichaelS http://community.smartthings.com/users/michaels I update Ask
Alexa 2.0.8 and Lambda 1.1.7,. and I though it will fix my problem with a
single Voice Macro - Weather Status Report, but it Still fail as below
Since I already update to 2.0.8, the suggestion you tell me at 2.0.7b see
lost the track anymore, If you want me to try som…

Visit Topic
http://community.smartthings.com/t/release-ask-alexa-2-0-7/53317/92 or
reply to this email to respond.

To unsubscribe from these emails, click here
http://community.smartthings.com/email/unsubscribe/04f4d67ba506a3fc08e54731125865778f8c7a2912be3e884f8f3e2e7b189bf6
.

@MichaelS

I’m working on setting this up and getting down in the part of the wiki on your site where you are inputting the 3 variables

varSTappID
varSTtoken
var

Where are those variables located within the SmartThings dashboard? I’m assuming you go >

https://graph.api.smartthings.com/ > Ask Alexa > OAuth Tab and then STappid is the oauth clientid and then varSTtoken is the oauth secret? Or Am I way off base? Please let me know

It’d be helpful in the wiki to have a few more screenshots or links on how to find this info within the smartapp for us non-dev novice user types.

Appreciate all the hard work sir.

Here is the location in the documentation: http://thingsthataresmart.wiki/index.php?title=Ask_Alexa#Security

Basically you go to Settings->Setup Variables and a web page is generated where you can copy/paste the info. It is recommended you use a computer and your IDE to capture the address to copy/paste this information into Lambda.

1 Like

@MichaelS

I couldnt find it in the WebUI but managed to find it in the AskAlexa App under the settings within the Mobile Smartthings App. Much appreciated.

Another question if I may, I was following the documentation about selecting the devices you want AskAlexa to control ahead of time. It’s giving me a warning “You have the following devices with a blank null label”

Device1
Device2

"Be sure all of the devies are uniquely labled and that none of them are blank null.

They dont show as the same name and all of my devices are uniquely labeled to my knowledge? Where would I go within the Mobile/Desktop Web UI to make sure and/or make modifications?

Thanks in advance

In the troubleshooting piece of the manual (toward the end) there is a section on null routines. You will ONLY be able to see them (and delete them) via the IDE…You will go into My Locations, Your Location, List SmartApps, and it is the Hello Home items…doing a mouse pointer over each one will reveal the ones that are null…it will basically be the ones you DON’T see in your app…

http://thingsthataresmart.wiki/index.php?title=Ask_Alexa#Troubleshooting