rgraciano / echo-sonos

Amazon Echo integration with Sonos
Other
712 stars 234 forks source link

preset versus favorite #88

Open ksipp01 opened 7 years ago

ksipp01 commented 7 years ago

First Thank you! for this awesome code...works great, really appreciate your effort!
I'm confused about presets vs favorites. I have several "sonos favorites" that include Pandora stations, napster playlists or library playlists. When I try "ask sonos to play favorite (Pandora station) in ROOM" it does nothing. I do have Pandora username and password in setting.json. Looking at the utterances code it looks like favorites are actually "{presets}"...is that true? so...should my preset.json match my "sonos favorites" list? If so, how do I find the uri for Pandora and napster favorites?

Thanks again! Kevin

rgraciano commented 7 years ago

@ksipp01 - "favorites" are Sonos-designated. IIRC, they have a name that you give them when you create them in Sonos (as opposed to naming them in Pandora).

"Presets" are created in node-sonos-http-api. They're a grouping that exists outside Sonos; a way to tell the API to do a bunch of things to Sonos all at once, including playing something.

jzajac2 commented 7 years ago

FWIW: I do not have my pandora username and password in settings.json. I am able to add a Pandora station as a Sonos Favorite, and trigger it, in my case: "Alexa, ask Sonos to play Favorite Test". (neither here nor there, but it had some issues with the utterance "Arcade Fire Radio" or even just "Arcade Fire").

petebanham commented 7 years ago

If the stations work from Sonos favourites then you could try adding them to the PRESETS custom slots TYPE in the skill and see if that helps, it should help Alexa recognise the favourite name better. You can also try from the URL //yourserveraddress:5005/ROOMNAME/favourite/FAVOURITE_NAME and see if that works