[NO LONGER SUPPORTED] Ask Alexa

Quick question and I apologize if this has already been covered here. Is it possible to change the activation name from smart things to something else? If so how, and are there negative ramifications for doing so? Basically our house has a name and my wife would prefer to address commands that way rather than saying smart things.

Thanks!

Yesā€¦you can do this easilyā€¦There are two places that need to be changed:

In the developer site: http://thingsthataresmart.wiki/index.php?title=Ask_Alexa#Skills_Information

And then within the settings of the main app (under Invocation Name).

That should do itā€¦

Yes, you can. Itā€™s part of the set up. In the lambda setup itā€™s called the invocation name.

What did you name your house?

Awesome you thought of everything! Thanks! Will do it as soon as I get home!

Janisary. A very unique name I came up with a long time ago when I first tried to do voice command x10, and essentially ever since anything house related uses that name. Looking forward to when Amazon letā€™s us change to a custom invocation word instead of the 3 they provide. If you are a big Halo person you might recognize the nameā€¦ Last hint, I love beesā€¦

Thatā€™s awesomeā€¦ Not many unique namesā€¦ We just went with home for nowā€¦

Our next home will be our final homeā€¦ Just six more years till retirement then we are back to the beachā€¦ That one will have a name.

To be clear, you still need to use Alexa, Echo or Amazonā€¦The invocation name is the name of the skillā€¦so the syntax will be:

Alexa, tell Janisaryā€¦

Hope that was what you were looking for.

Wow, very cool! I am a long way from retirement sadly :slightly_smiling_face:

Yes I know, what you told me was exactly what I was looking for, thank you!

1 Like

Greetings all,

Iā€™ve installed the smart app, and mostly completed the Lambda installation, but Iā€™m stuck on the variable setup. The app (and the logs) give me a URL along the lines of https://graph.api.smartthings.com/api/smartapps/installations/1c1d7150-2f4c.../setup?access_token=ā€¦ (not listing the whole thing because I donā€™t know how sensitive it is).

Loading that URL give me the error:

{"error":true,"type":"AccessDenied","message":"This request is not authorized by the specified access token"}

The reason Iā€™m posting instead of assuming Iā€™ve done something dumb (which could still be the case) is that Iā€™m stuck on the us-east SmartThings region (https://graph-na02-useast1.api.smartthings.com) and this would not be the first time thatā€™s caused me problems. For good measure, I tried switching the domain part of the URL to useast (https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations/1c1dā€¦), and that changes the error to:

{"error":true,"type":"java.lang.NullPointerException","message":"An unexpected error occurred."}

Iā€™ve re-installed twice and Iā€™ve not found this error list in any of the forums. Is there something special I need to be doing since Iā€™m stuck on this newer shard?

Thanks!

Letā€™s start with the basicsā€¦First, I assume you have the latest versions: 2.0.8 and 1.1.7 of the Lambda code?

Second, you may want to PM this, but when you go into Settings -> Setup Variables, what are you getting? If the web page with the variables DOES come up, this will all work. The location of the website is determined by your account and is NOT hard codedā€¦if you are interested, it is the getApiServerUrl() command. Either way, whatever it gives you is what SmartThings determines is your location and you app probably wouldnā€™t work if that was screwed up.

Could this be something as basic as you not having you OAuth set up? http://thingsthataresmart.wiki/index.php?title=Ask_Alexa#OAuth_Setup

Let me know and I am sure we can get through thisā€¦

Yes, 2.0.8 of the SmartApp and 1.1.7 of the Lambda code are installed and I did enable OAuth in the IDE (Client ID and Client Secret are populated). I just went into the respective consoles to confirm that there wasnā€™t anything that didnā€™t get saved, etc. And just to reiterate, Iā€™m performing all of the ST-related tasks on https://graph-na02-useast1.api.smartthings.com/ide because thatā€™s where my hub is and nothing Iā€™ve ever done on the ā€œmainā€ IDE site has ever worked.

In the ST app on my phone, Iā€™m opening the AskAlexa SmartApp, clicking settings, then ā€œSetup Variables (For Amazon Developer sites)ā€, and thatā€™s when I get

{"error":true,"type":"java.lang.NullPointerException","message":"An unexpected error occurred."}

In Live Logging, it shows my setup URL as ā€œSet up web page located at : https://graph-na02-useast1.api.smartthings.com:443/api/smartapps/installations/1c1d7150-XXXX-XXXX-9d49-8b3726dbe2c6/setup?access_token=327326e9-XXXX-XXXX-XXXX-02ab23f60a69ā€ (obfuscated slightly - I can PM if the full URL is important right now).

Interestingly, last night the app was generating the URL with https://graph.api.smartthings.com:443/api/smartapps/installations/XXX, so Iā€™m not sure how that changed.

Itā€™s so early in the installation process, that Iā€™m not sure what I could have messed up - the smart app is running, so itā€™s installed, the OAuth ID shows up, so itā€™s working. I donā€™t know how to test the lambda code, but I think I need these variable before it would run anyway.

Thanks!

Donā€™t post it but if you go into the About section do the proper token and OAuth show up?

Access token and Application ID are populated in the Ask Alexa SmartApp, but they do not correspond to the Client ID and Client Secret that show up in OAuth section in the IDE. Do I need to run the Generate new Client ID and Generate New Client Secret links in the IDE?

Thanks for your help!

I would just to see what happens.

Clicked New Client ID and New Client Secret, and then for good measure removed and re-installed the smartapp on my phone. Same errors and the Access Token / App ID in the App are still not remotely similar to the Client ID//Client Secret in the IDE.

I have never seen this beforeā€¦While support wonā€™t help you with community developed apps, if something like the IFTTT integration doesnā€™t work (which also uses OAuth and the location API) then you have a case to get SmartThings to look at thisā€¦Very strangeā€¦Are there any other apps you have difficulty with? SmartTiles? Have you loaded up my Cloud Interface appā€¦it is much easier and will tell you right way if you are having an issue.

For those that are interested in the survey, I am closing it down. I will be releasing ā€œCourtesyā€ as the first personality, and then Snarky soon after thatā€¦Thanks for everyone that participatedā€¦I got less than 50 results, which I hope doesnā€™t mean only 50 people use thisā€¦either way, enjoy!

4 Likes

Nahā€¦ People just donā€™t like surveys lolā€¦

I still think you should publish this to Amazon for access on the Alexa app.

1 Like

SmartTiles works for me, but itā€™s the ā€œnewā€ install, and I was reading that they changed some things regarding how OAuth works nowadays, so Iā€™m not sure if that impacts anything.

Your Cloud Interface app does seem to work (It generates URLā€™s without errors), but the Access Token shown in the app doesnā€™t match either of the Client ID or Client Secret shown in the IDE.

Iā€™ll give IFTTT a try for good measure.