homebridge-sonos
homebridge-sonos copied to clipboard
Expose sonos as "speaker" service?
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
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?
I dont know, but I'm willing to help you find out :)
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 :)
It's in the latest HAS release I believe, in order to support IP camera they have to expose that.
there is HMServiceTypeSpeaker - any plans to modify the plugin? (and then additionally with manufacturer = SONOS)
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.
I just tried using Service.Speaker
, sadly it only works with the Eve app, but not with the Home app (using iOS 10.2).
This plugin creates sonos as a service so can adapt to adding new speakers and includes scenes.
https://github.com/driskell/homebridge-sonos
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.
Just saw the WWDC2017 announcement of the Speaker type in the Home app :)
any news here ?
as described in Apple HAP Specs .. speaker service should work in iOS 11 .... or not ? @nfarina .... did you tested it allready ? regards Richard
I haven't tried it - if it works I'd love to add it to the plugin!
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
That post is nearly a year old. Has anyone run it in the simulator?
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!
@nfarina any thoughts on replacing the existing Sonos repo with this fork: https://github.com/driskell/homebridge-sonos
@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!
Anyone know if this still works?