nfarina / homebridge-sonos

Sonos plugin for homebridge: https://github.com/nfarina/homebridge
155 stars 52 forks source link

Integrate didyoumean.js to play a particular Pandora station #6

Open justinmiller61 opened 8 years ago

justinmiller61 commented 8 years ago

I'm not sure if homebridge/homekit even has this ability, but I could see using didyoumean.js to find a matching Pandora station to play.

I haven't looked into whether or not this is even possible, but if it is, I'd be happy to fork and help out.

NovaGL commented 8 years ago

I don't believe this is possible as it's Siri doing the interpritations not Homebridge

justinmiller61 commented 8 years ago

So Siri won't even send the command to homebridge?

— Sent from Mailbox

On Mon, Dec 28, 2015 at 3:38 AM, NovaGL notifications@github.com wrote:

I don't believe this is possible as it's Siri doing the interpritations not Homebridge

Reply to this email directly or view it on GitHub: https://github.com/nfarina/homebridge-sonos/issues/6#issuecomment-167512963

NovaGL commented 8 years ago

No it won't work, as you would need to use the Pandora API to get matching stations.

justinmiller61 commented 8 years ago

Riiiight. And what's wrong with doing that? I assumed as much. So assuming that's not a problem, does the entire transcription of what you said make it down to homebridge?

— Sent from Mailbox

On Mon, Dec 28, 2015 at 6:45 PM, NovaGL notifications@github.com wrote:

No it won't work, as you would need to use the Pandora API to get matching stations.

Reply to this email directly or view it on GitHub: https://github.com/nfarina/homebridge-sonos/issues/6#issuecomment-167680185

NovaGL commented 8 years ago

No, Siri only accepts predefined words. And won't accept others.

Eg Turn On Chill music would work using the HTTP plugin and this

But then if you said switch to pandora station dance, it wouldn't work.

You can only use On or Off, it doesn't even accept volume.

So the best way I would do it is define several pandora stations you would like in your config.

 {
             "accessory": "Http",
            "name": "Hits",
            "on_url": "http://localhost:5005/Glenn/favorite/Todays Hits",
            "off_url": "http://localhost:5005/Glenn/pause", 
            "service": "Switch",
       }