Thanks…and any suggestions to the documentation are always welcome!
Sorry for the delay. Didn’t get a chance to play around with it more till this weekend.
What I am seeing in Live Log is:
d94a0d5f-9020-46b9-92f0-97e87eac62eb
9:44:31 AM:
debug
I didn't understand what you wanted information about. %1%
d94a0d5f-9020-46b9-92f0-97e87eac62eb
9:44:31 AM:
debug
List Type: undefined
d94a0d5f-9020-46b9-92f0-97e87eac62eb
9:44:31 AM:
debug
-List command received-
d94a0d5f-9020-46b9-92f0-97e87eac62eb
9:44:29 AM:
error
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.Integer#plus.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.String]
[class java.lang.Number] @ line 2798
I have Oauth Enabled:
I also have copied the token into the code from the Mobile app
For my custom slots I copied/pasted what is shown in the web app
Hey @MichaelS food for thought. I really got accustomed to querying Alexa for below threshold battery levels and was thinking how nice it would be to ask Alexa to run a similar report on sensor events. Something like:
Me: Alexa tell home to run the Sensors Report
Alexa: there was no activity reported at Front door sensor, kitchen sensor, etc…
Where the ‘Sensors Report’ would be a new category under the Voice Reporting Settings that allows you to pick the sensors you want to monitor and set a threshold for their inactivity.
hmm…the 2798 line seems to be a clue…I would check your ‘family room lights’ device in the IDE to ensure that it doesn’t have a null label…worst case add one more light (a simple one) and add that name to the slot and see if you have better results with that…
I am concerned that the 2798 line is an average of numbers routine and don’t quite understand the command you are asking Alexa about. Do you get this when accessing the device directly or via the macro?
Let me know.
I guess I am not clear on what you mean about a ‘threshold of inactivity’…timing wise? Only report if two or more sensors are going off at the same time?
Can you clarify?
The threshold would be how long ago there was an event for that sensor (so for example motion was last active/inactive x minutes (hours) ago, contact sensor was last open/close x hours ago). The threshold would be how many minutes/hours you want to check for the sensor event.
No only report the sensor name if last activity (motion or contact) was past the threshold. I know that every sensor I have should be active at least once within 3 hours. So I would set my threshold to 3 hours. When I ask Alexa to run the report, if she says Front Door sensor, then I know that sensor is stuck, dead, kaput and needs my attention.
Does this make sense?
Makes sense…It certainly won’t be in the release I am working on now, but possibly later.
However, I am adding a message queue to my app that should allow an external app (even CoRE) to do some of the heavy lifting with new features like then, and then feed them to be reported via the Alexa. Not exactly what you are looking for, but similar.
Anyway, I will put it on the roadmap to at least investigate.
So, I’m not even going to read through all this any longer to see if anyone else has had the same issue as me cause I’m just mad and tired at this point. I went through and did the whole installation once for me, and it worked fine. Now, trying to add it all over again for someone else in my house, on their own alexa device, with their own alexa account, within their own smartthings account, with the new amazon accounts I had to setup, and the issue I’m having is that no matter what, when I open the ask alexa app on their account, it only brings up my own settings. Any change in an individual smartthings account of ask alexa is reflected in the other, making it completely impossible to use for more than one person, wasting the last several hours of life. Pretty damn aggravating.
I have actually tried asking it several commands verbally. However the documentation mentioned using the service simulator so I have been using that as well to just ask the “status”. No matter what I ask the result seems to be the same. I have added/removed several devices as I started out with a list of probably 30 things and weeded it down to just one in hopes of troubleshooting the issue down to one particular device, but that did not seem to help unfortunately.
The result I receive from service simulator is:
{
“response”: {
“outputSpeech”: {
“type”: “PlainText”,
“text”: "There was an error with the Ask Alexa SmartApp execution. If this continues, please contact the author of the SmartApp. "
},
“card”: {
“content”: "There was an error with the Ask Alexa SmartApp execution. If this continues, please contact the author of the SmartApp. ",
“title”: “Lambda Error”,
“type”: “Simple”
},
“shouldEndSession”: true
},
“sessionAttributes”: {}
}
You need to manually set the multiple instances set to true in ide, for the Ask Alexa app. Look at first few lines of code. I don’t remember the field name exactly, but is something like multiinstances = false. That needs to be true. Or maybe the field is singleinstance = true and so it needs to be set to false. If you cannot find it holler.
Change line 26 from this:
singleInstance: true,
To this:
singleInstance: false,
Then install another instance of askAlexa from the marketplace/my smartapps tab.
I’ve been thinking about doing something like this. I wad want multiple installs of askAlexa, but all in the same hub. I might give it a shot this evening.
Unless there is a way to have multiple invocation words with one install.
Hi Kyle
Until Michael replies, you might try changing the timeout. It was referenced in the installation instructions somewhere and I recollect suffering from a similar problem a few months back.
Good luck. It is a great app !
Dave
Did you copy and paste your STapID and your ST token into the lambda code?
The easiest way to tell if it is the timeout is to watch the live logging…if it gives the proper response but you hear something different, then it is a timeout issue.
Kyle,
Let’s start from scratch…I gave some suggestions earlier on the basics of what to look for (Oauth, ASN, etc). Assuming all of those are correctly entered, does ANY aspect of the app work for you.?
Here is are some easy tests for the basic configuration:
Alexa, Ask SmartThings for Help
Alexa, Tell SmartThings Yes
If those doesn’t work you don’t have the app set up properly either on the Amazon site, or the developer site.
Again, don’t try to do anything complex and start with those basic items…this will give you piece of mind that everything is set up with the Amazon site properly and then you can focus on narrowing down where your issue is.
Sorry you are angry, however, changing the code to do what you are wanting probably isn’t going to work. You mention above “within their own smartthings account”…if that is the case, are you logging out of your account in the IDE and using theirs? You will also need to log out of your mobile account and have them log into theirs.
I have the exact same setup in my house and this does work, albeit confusing when having to change accounts. but you have to treat everything like it is in a separate location, including the OAuth and all Amazon accounts…including the mobile Echo Account.
Let me know if that helps at all.
Yeah, I signed up and did all the codes per account. I have logged in with their phone to and out of mine and into theirs on the ide. With the initial phone usage, all of my macros were already listed under their variables, not sure what that’s about. And to everyone saying to change the single instance to false, yes, I have done that. Now that I have slept, I’ll look again.
Yeah ok. The single instance thing worked out, I’m fairly sure. I wasn’t going into the marketplace to try and install again. Now that I have, it seems to be working.
So you did or did not have to change the code? If you did that would indicate you are using the same account (ST)…