-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors on testing #131
Comments
Thanks for posting the logs but these don't quite capture what I need. My best guess is you didn't rename example.options.js to options.js |
Hi Paul, |
You need to include it in the zip you upload to lambda |
Ok, so that's where it is located and the name was changed as it should. So that's not the problem... how else can we diagnose the problem if the logs didn't give enough info? |
Does this help? When I use browser to hit mydns.org:5005/zones here's what I get: [{"uuid":"RINCON_949F3E0175D401400","coordinator":{"uuid":"RINCON_949F3E0175D401400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":31,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Den","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":31,"mute":false}},"members":[{"uuid":"RINCON_949F3E1059FC01400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":31,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Living Room","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":0,"mute":false}},{"uuid":"RINCON_949F3E0175D401400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":31,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Den","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":31,"mute":false}},{"uuid":"RINCON_949F3E0175BE01400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":30,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Kitchen","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":0,"mute":false}}]},{"uuid":"RINCON_B8E937AD439E01400","coordinator":{"uuid":"RINCON_B8E937AD439E01400","state":{"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"","type":"track","stationName":""},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"volume":71,"mute":false,"trackNo":0,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playbackState":"STOPPED","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Patio/Pool","coordinator":"RINCON_B8E937AD439E01400","groupState":{"volume":71,"mute":false}},"members":[{"uuid":"RINCON_B8E937AD439E01400","state":{"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"","type":"track","stationName":""},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"volume":71,"mute":false,"trackNo":0,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playbackState":"STOPPED","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Patio/Pool","coordinator":"RINCON_B8E937AD439E01400","groupState":{"volume":71,"mute":false}}]}] |
not sure what is going wrong but it is in your lambda function. Try downloading this repo again and re-uploading it to lambda. |
Thanks Paul- I think I'm really close... I nuked and then started over with Lambda. Now when I test, I get just one error:
Where would I fix that? Now if I say 'Alexa, ask sonos to play billy joel in the kitchen', she responds with "OK" but no music in the kitchen. What is the syntax to set Amazon Music as the default music service? (I think Amazon Music is the correct name for their new paid service). |
Amazon Music is not one of the supported services. As for the id issue that is because you need to add your skill id to the test. This will just fix the test not any issues you are having with the skill. |
I feel like I fell down, only 2 feet from the Finish Line. What else can be wrong? If I give a proper command to Echo (ie: "Alexa, Ask sonos to play Billy Joel in the Kitchen"), she will respond with "OK". But no action happens. I've confirmed that I've edited the roomName in each location in presets.json. Some possible issues that I see:
If these are not the problem, what else can be? |
The host var should just be mydnsname.org |
I am still a bit confused with what issues you are experiencing. I think you should focus on getting the test to work. In the test add your skill app id and then run the test. If it doesn't work share the error from the log. I really want to help you but don't have quite enough info to go on. |
Thanks Paul. If I tested correctly, it appears to have PASSED. To get this, I went Actions > Configure Test Event. I used the 'Hello World' test and inserted my AppID in the code. When I went in to get the AppID, I noticed that the app is in "Development" status. I wasn't supposed to "Publish" it... Was I? So if I'm passing the testing, where else should I be looking to troubleshoot? |
By the way, I believe I checked all the stupid things: Sonos are powered on, they're on same network as my server, nothing to as streaming at the time I checked. I do NOT have a default music service set up because I currently use Amazon Music.... but if I can get this going, I'd gladly switch to Spotify in order to get the full effect of this. |
So what isn't working? What is the exact phase you are asking Alexa and what is the response? |
I cannot get ANY sound coming from any of the sonos speakers from commands given through Echo. All my Sonos are properly working via the Sonos app, on the same network as my server. Phrasing: I tried EVERY phrase that RGraciano has here in the git... For each command Echo said "OK", but then no sound came from the sonos. Here are a few that I tried: (Of course, I used correct room names, artists, and song names.) I thought maybe the Sonos was muted or volume all the way down, so I tried these also:
INTERESTING: When I said "Alexa, ask sonos what's playing in the kitchen", she replied with a specific song. She replied with a different song when I asked about the den. Both are songs that I recently played. Just to show that I think the rooms are set up properly, here's a piece of presets.json: Is presets.json the only place where I am designating sonos speaker names (rooms)? Just to show that Sonos is set up properly, here's from the Sonos app: |
Now Partially Working 2/23 edit: I also noticed that genres of music don't work... if I say "Alexa, ask sonos to play rock music in the ROOM", she will reply "This command does not work unless you set default Line-In". |
hi @merrick777 - did you get it working? you had a few issues open, so i'm not sure what the current state is |
Hi,
Excited to get this going but am true novice to setting up this type of thing. I got through everything but on testing, I get "There was a problem with the requested skills response". I read other comments here with same issue and so I grabbed the Lambda logs. Help pls....
The text was updated successfully, but these errors were encountered: