Skip to content
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

Expose sonos as "speaker" service? #44

Open
anthonywebb opened this issue Nov 19, 2016 · 19 comments
Open

Expose sonos as "speaker" service? #44

anthonywebb opened this issue Nov 19, 2016 · 19 comments

Comments

@anthonywebb
Copy link

anthonywebb commented Nov 19, 2016

Looks like attempts have been made at exposing sonos as both lightbulb and switch, but has anyone tried exposing it as a "speaker" service? Would that even work?

https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js#L2703

@nfarina
Copy link
Owner

nfarina commented Nov 19, 2016

I think this must be a new service - I hadn't noticed it until now! It looks appropriate, but I think the question is, does Siri support it yet?

@anthonywebb
Copy link
Author

I dont know, but I'm willing to help you find out :)

@nfarina
Copy link
Owner

nfarina commented Nov 19, 2016

I just downloaded the latest (7.3) version of HomeKit Accessory Simulator and I don't see the service in there...I wonder where @KhaosT got it from :)

@KhaosT
Copy link

KhaosT commented Nov 19, 2016

It's in the latest HAS release I believe, in order to support IP camera they have to expose that.

@JotWee
Copy link

JotWee commented Dec 26, 2016

there is HMServiceTypeSpeaker - any plans to modify the plugin? (and then additionally with manufacturer = SONOS)

@bkonings
Copy link

bkonings commented Jan 8, 2017

Hi, seems they moved the simulator into another download for xcode 8.
Download Additional_Tools_for_Xcode_8.2 for the latest version. That simulator includes the speaker option.

Have not played with it yet since I don't have testdevice around.

@norman-thomas
Copy link

I just tried using Service.Speaker, sadly it only works with the Eve app, but not with the Home app (using iOS 10.2).

@jak1502
Copy link

jak1502 commented Jan 14, 2017

This plugin creates sonos as a service so can adapt to adding new speakers and includes scenes.

https://github.com/driskell/homebridge-sonos

@drewcovi
Copy link

drewcovi commented Mar 31, 2017

Just tested with Siri and the emulator, definitely a mess right now. But I'd be surprised if they don't catch up within the next 6 months. Security Systems just started working with Siri this month.

@stormshaker
Copy link

Just saw the WWDC2017 announcement of the Speaker type in the Home app :)

@roe1974
Copy link

roe1974 commented Sep 26, 2017

any news here ?

@roe1974
Copy link

roe1974 commented Oct 9, 2017

as described in Apple HAP Specs .. speaker service should work in iOS 11 .... or not ?
@nfarina .... did you tested it allready ?
regards
Richard

@nfarina
Copy link
Owner

nfarina commented Oct 9, 2017

I haven't tried it - if it works I'd love to add it to the plugin!

@jp-lno
Copy link

jp-lno commented Oct 9, 2017

It seems that Speaker service work on iOS 11 but only with tierce app like Eve or Home by Matthias Hochgatterer.
If you change service to Speakers, Apple Home show unrecognised accessory.

Hope Apple will activate speakers when HomePod will be available...
I check all iOs Dev Beta but no way for the moment :/

See more about tierce App : ebaauw/homebridge-zp#10

@drewcovi
Copy link

drewcovi commented Oct 9, 2017

That post is nearly a year old. Has anyone run it in the simulator?

@Fasani
Copy link

Fasani commented Jul 13, 2018

Hi all,

The below fork is awesome enough, I just upgraded to it. Maybe it could just replace the current Sonos repo? https://github.com/driskell/homebridge-sonos

I had to uninstall homebridge-sonos and then
npm install https://github.com/driskell/homebridge-sonos

Adjusted my config, removed my old speaker config from accessories and then added the following:

"platforms": [ 
    { 
        "platform": "Sonos",  
        "suffix": " Speakers",  
        "port": 50200,  
        "spotify_rincon_id": "2311",
        "scenes": {
            "Bob Dylan": {
                "playlist": "spotify:user:agent7even:playlist:24kmCXrDhl52XOrBtspqrc",
                "zones": ["Kitchen"]
            }
        }
    }
]

I got it up an running quickly, it auto discovered my devices and now I can say:

"Hey Siri, Bob Dylan".
"OK, The Bob Dylan is on."

I created 5 voice commands using the config above, I created a new room called "Music", I moved all my switches to that room, here is how things are looking in the HomeKit app.

I can now create scenes in the HomeKit app and include any music switch I want, plus turning lights on and off etc.

Almost Perfect!

sonos

@Fasani
Copy link

Fasani commented Jul 13, 2018

@nfarina any thoughts on replacing the existing Sonos repo with this fork:
https://github.com/driskell/homebridge-sonos

@nfarina
Copy link
Owner

nfarina commented Jul 16, 2018

@Fasani It looks great! I don't use Spotify and I still do use this repo even though it's extremely basic, so I don't want to replace it, however I would encourage @driskell to create his own non-forked repo and publish it to npm as a separate plugin. I will happily link to it from the README in this one!

@wowthatisrandom
Copy link

Anyone know if this still works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests