[NO LONGER SUPPORTED] Ask Alexa

ok thanks. I am off work tomorrow so I will play around with it a little and see if I can get it. Thanks again.

No problem…myself or anyone here in the community are here to help should you need it…

For those using version 2.0.6 with Weather Advisories, I found a small bug in the code that is supposed to eliminate repeated text within and Advisory. To fix, replace line 2379 with this

                        	def ddate = warn.replaceFirst(/(?i)(.+?)(\d{3,4} (am|pm) .{3} .{3} .{3} \d+ \d{4})(.*)/, /$2/)

(change the \d? to \d+ )

1 Like

This fix will also be in tomorrow’s release.

2 Likes

The issue mine had was that extra ’ I found in the code. I was able to get the lights to turn on and off. I was unable to get the status of a contact sensor but I also wasn’t sure on the context to ask and also was unable to get the only macro I have created to run.

I know the system is working so I just need to experiment with the settings and verbiage I use to get the other things operational.

Updated to 2.0.7 with a new thread: [Deprecated] Ask Alexa 2.0.7

4 Likes

deleted. move to new thread

Hi All,

i am having problem with “skill response” i edited the timeout to 6, 10, 20 and 30 seconds still having the issue…

i get the following errors when testing in Lambda:

{
“errorMessage”: “Process exited before completing request”
}

AND

START RequestId: eed5d073-507e-11e6-ba05-8bad0f09445d Version: $LATEST
2016-07-23T02:41:19.002Z eed5d073-507e-11e6-ba05-8bad0f09445d TypeError: Cannot read property ‘type’ of undefined
at exports.handler (/var/task/index.js:41:21)
END RequestId: eed5d073-507e-11e6-ba05-8bad0f09445d
REPORT RequestId: eed5d073-507e-11e6-ba05-8bad0f09445d Duration: 416.32 ms Billed Duration: 500 ms Memory Size: 128 MB Max Memory Used: 16 MB
Process exited before completing request

Any idea? Thanks!

Is this a new installation or it worked before and you just upgraded? I have never seen this error before. It does appear that there is a portion of your installation isn’t correct…

Let me know if this is new installation and if you are up on the latest version.

it is a new installation, never got it to work so far…

I also noticed that I get in Ask Alexa - SmartThings Integratio:

error: manual is a repeated value

Ok…you will need to ensure all of your device names are unique and they are used only once. So, devices like dimmers will show up as switches…you will want to choose a device once throughout the individual controls. If you want to control groups of devices you will need to do that within a macro…but I recommend getting the devices working first.

After doing everything you told me, still not working.

Here is the log from Amazon:

Event Data
START RequestId: 1a9787eb-50e5-11e6-afc7-23f3ed54f77d Version: $LATEST
2016-07-23T14:52:42.033Z 1a9787eb-50e5-11e6-afc7-23f3ed54f77d Error: connect ECONNREFUSED 127.0.0.1:443 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1062:14)
END RequestId: 1a9787eb-50e5-11e6-afc7-23f3ed54f77d
REPORT RequestId: 1a9787eb-50e5-11e6-afc7-23f3ed54f77d Duration: 723.72 ms Billed Duration: 800 ms Memory Size: 128 MB Max Memory Used: 40 MB
Process exited before completing request
START RequestId: 1b859212-50e5-11e6-957b-633562055f8e Version: $LATEST
END RequestId: 1b859212-50e5-11e6-957b-633562055f8e
REPORT RequestId: 1b859212-50e5-11e6-957b-633562055f8e Duration: 779.13 ms Billed Duration: 800 ms Memory Size: 128 MB Max Memory Used: 16 MB
START RequestId: fa93c615-50e5-11e6-af7d-71d7f55df392 Version: $LATEST
2016-07-23T14:58:56.736Z fa93c615-50e5-11e6-af7d-71d7f55df392 Error: connect ECONNREFUSED 127.0.0.1:443 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1062:14)
END RequestId: fa93c615-50e5-11e6-af7d-71d7f55df392
REPORT RequestId: fa93c615-50e5-11e6-af7d-71d7f55df392 Duration: 449.36 ms Billed Duration: 500 ms Memory Size: 128 MB Max Memory Used: 17 MB
Process exited before completing request
START RequestId: fae2a992-50e5-11e6-b86d-8376bbf6719c Version: $LATEST
END RequestId: fae2a992-50e5-11e6-b86d-8376bbf6719c
REPORT RequestId: fae2a992-50e5-11e6-b86d-8376bbf6719c Duration: 401.74 ms Billed Duration: 500 ms Memory Size: 128 MB Max Memory Used: 15 MB
START RequestId: 25596bb1-50ec-11e6-a51d-91d0ee43fd7f Version: $LATEST
2016-07-23T15:43:05.435Z 25596bb1-50ec-11e6-a51d-91d0ee43fd7f Error: connect ECONNREFUSED 127.0.0.1:443 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1062:14)
END RequestId: 25596bb1-50ec-11e6-a51d-91d0ee43fd7f
REPORT RequestId: 25596bb1-50ec-11e6-a51d-91d0ee43fd7f Duration: 449.23 ms Billed Duration: 500 ms Memory Size: 128 MB Max Memory Used: 17 MB
Process exited before completing request
START RequestId: 25a198d1-50ec-11e6-a10d-418bcdd3f8aa Version: $LATEST
END RequestId: 25a198d1-50ec-11e6-a10d-418bcdd3f8aa
REPORT RequestId: 25a198d1-50ec-11e6-a10d-418bcdd3f8aa Duration: 798.85 ms Billed Duration: 800 ms Memory Size: 128 MB Max Memory Used: 16 MB
START RequestId: 686481ab-50ec-11e6-98f0-f7291b2c04ef Version: $LATEST
2016-07-23T15:44:57.553Z 686481ab-50ec-11e6-98f0-f7291b2c04ef TypeError: Cannot read property ‘type’ of undefined at exports.handler (/var/task/index.js:41:21)
END RequestId: 686481ab-50ec-11e6-98f0-f7291b2c04ef
REPORT RequestId: 686481ab-50ec-11e6-98f0-f7291b2c04ef Duration: 70.79 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 16 MB
Process exited before completing request
START RequestId: 8f58bc71-50ec-11e6-8b7a-7d0402319c46 Version: $LATEST
2016-07-23T15:46:03.656Z 8f58bc71-50ec-11e6-8b7a-7d0402319c46 TypeError: Cannot read property ‘type’ of undefined at exports.handler (/var/task/index.js:41:21)
END RequestId: 8f58bc71-50ec-11e6-8b7a-7d0402319c46
REPORT RequestId: 8f58bc71-50ec-11e6-8b7a-7d0402319c46 Duration: 854.60 ms Billed Duration: 900 ms Memory Size: 128 MB Max Memory Used: 16 MB
Process exited before completing request
START RequestId: caa34360-50ec-11e6-8258-b5ff16894992 Version: $LATEST
2016-07-23T15:47:43.133Z caa34360-50ec-11e6-8258-b5ff16894992 TypeError: Cannot read property ‘type’ of undefined at exports.handler (/var/task/index.js:41:21)
END RequestId: caa34360-50ec-11e6-8258-b5ff16894992
REPORT RequestId: caa34360-50ec-11e6-8258-b5ff16894992 Duration: 871.65 ms Billed Duration: 900 ms Memory Size: 128 MB Max Memory Used: 16 MB
Process exited before completing request

Hope it helps…

Actually, none of this helps…The Lambda code, 99.9% of the time, is not the issue and only responds to what SmartThings gives it…If you are 100% sure you have copied the RAW code from GitHub for the Lambda code, you can simply give the outputs of the Live Logging…

Let’s start simple…clear EVERYTHING out of your Ask Alexa app and simply set up ONE switch to control.

Next, run the setup from the Settings area and ensure this device is in the proper slots in the developer area.

Ask Alexa to turn on or off that switch…what do you hear? Does the switch go on or off? What does the live logging say?

OMG. I have not added Ask Alexa yet as I am not a computer person in any way shape or form… but man, this may make me set aside a couple of days and bit the bullet to have this feature.

1 Like

It is a fun app, and in addition, I may be adding a feature in the future that will allow these types of ‘snarky’ responses as an option…Jason customized his system a lot for those.

2 Likes

You did the seperate oauth code url paste into lambda right?

I see 127.0.0.1 in the log, thats a localhost ip used when you dont include a name or ip…and that paste gives lambda the smartthings.com address.

I actually get the error:

1b72134d-57e7-407a-954e-79c43a1ee44e 6:34:38 PM: error Access token not defined. Ensure OAuth is enabled in the SmartThings IDE.

My OAuth is enable for “Ask Alexa” SmarttApp for sure.

Any idea?

I think i got thing fixed now, with help of our amazing @MichaelS !!!

Thank a lot!

However, i would like to know how to update the settings to Ask Alexa - SmartThings Integration especially the LIST_OF_MACROS it looks like i have to add them manually…

Thx!

1 Like

Let me know if you figured this out…basically, you modify the developer site slots every time you add a new device or macro

I prefer a little snark from my digital servants:

Me - Alexa, tell Home the Living Room Is Too Cold.
Alexa - Have you ever heard of a sweater?

Me - Alexa, tell Home to play Depeche Mode.
Alexa - Enjoy the Non-Silence.

Me - Alexa, tell Home to turn on Bedroom Override.
Alexa - Hmmpf. I know when I’m not wanted.

Me - Alexa, tell Home to run Reset Overrides.
Alexa - Foolish human. Initiating SkyNet. Bwah. Hah. Hah.