homebridge-sonos icon indicating copy to clipboard operation
homebridge-sonos copied to clipboard

Expose sonos as "speaker" service?

Open anthonywebb opened this issue 8 years ago • 19 comments

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

anthonywebb avatar Nov 19 '16 00:11 anthonywebb

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?

nfarina avatar Nov 19 '16 00:11 nfarina

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

anthonywebb avatar Nov 19 '16 00:11 anthonywebb

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 :)

nfarina avatar Nov 19 '16 00:11 nfarina

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

KhaosT avatar Nov 19 '16 01:11 KhaosT

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

JotWee avatar Dec 26 '16 05:12 JotWee

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.

bkonings avatar Jan 08 '17 13:01 bkonings

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

norman-thomas avatar Jan 14 '17 11:01 norman-thomas

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

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

jak1502 avatar Jan 14 '17 17:01 jak1502

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.

drewcovi avatar Mar 31 '17 19:03 drewcovi

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

stormshaker avatar Jun 06 '17 07:06 stormshaker

any news here ?

roe1974 avatar Sep 26 '17 11:09 roe1974

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

roe1974 avatar Oct 09 '17 10:10 roe1974

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

nfarina avatar Oct 09 '17 16:10 nfarina

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 : https://github.com/ebaauw/homebridge-zp/issues/10

jp-lno avatar Oct 09 '17 18:10 jp-lno

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

drewcovi avatar Oct 09 '17 18:10 drewcovi

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 avatar Jul 13 '18 12:07 Fasani

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

Fasani avatar Jul 13 '18 16:07 Fasani

@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!

nfarina avatar Jul 16 '18 16:07 nfarina

Anyone know if this still works?

wowthatisrandom avatar Mar 15 '21 12:03 wowthatisrandom