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

Solution to the speaker service like HomePod? #62

Open
morphix9 opened this issue Nov 16, 2018 · 8 comments
Open

Solution to the speaker service like HomePod? #62

morphix9 opened this issue Nov 16, 2018 · 8 comments

Comments

@morphix9
Copy link

Hey guys,
I see that there have been numerous forks of homebridge-sonos, unfortunately most of them having no proper description. Is there a fork/solution that finally exposes the Sonos as a 'speaker' in HomeKit (like they do for HomePod). Have the latest updates (iOS 12,...) bring anything new? Having heard of any success in the last year...

@nfarina
Copy link
Owner

nfarina commented Nov 17, 2018

Hi! I don't believe it is possible to expose a service that resembles anything like HomePod unfortunately.

It's true that HomeKit does have a service called "Speaker" but it's more for things like Cameras and Doorbells, not for representing a device that can play music.

Lots more discussion here: ebaauw/homebridge-zp#36

@iRayanKhan
Copy link

@nfarina This person did it:
screen shot 2018-11-20 at 11 58 41 pm
Link: https://github.com/KhaosT/HAP-NodeJS/issues/504

@nfarina
Copy link
Owner

nfarina commented Nov 21, 2018

I looked through that thread and I can't find conclusive evidence that this "Speaker" service will allow you to accomplish anything with Siri. If HomeKit Accessory Simulator allows you to make a Speaker and if iOS understands commands to play/pause and control volume, that would be very promising. You could try it and see? I can try it myself a bit later.

@iRayanKhan
Copy link

Haven't had a chance to dabble with the service, but it should act just like a HomePod, AirPort Express, or Apple TV, in which when pressing it, it will toggle said music player. Now my theory of this being translated is my Onkyo speakers down stairs have AirPlay 1 and using HomeBridge and this speaker service, it will toggle it and allow volume adjust over Wi-Fi. Instead of using a a light bulb to do the volume. Siri can toggle AirPlay speakers.

@iRayanKhan
Copy link

In that persons scenario he must have used a fake-plugin, but his repo's don't show him making this public. If anyone else browsing trough this thread has a fake-water-valve plugin please link me if not I can make one.

@iRayanKhan
Copy link

iRayanKhan commented Dec 3, 2018

@nfarina after doing some research, Yes the speaker should add it's self to HomeKit and pressing the icon will just toggle the speaker. The way this would probably integrate into plugins would be to add the speaker accessory and using the speakers IP address send play/pause commands.

{
      "platform": "AP2Speaker",
      "Ip": "10.0.0.6",
     "name":"Back Yard Speakers"
    }

And will expose it's self in control centre as a speaker that can be controlled.

@morphix9 morphix9 closed this as completed Dec 3, 2018
@morphix9 morphix9 reopened this Dec 3, 2018
@morphix9
Copy link
Author

morphix9 commented Dec 3, 2018

@nfarina after doing some research, Yes the speaker should add it's self to HomeKit and pressing the icon will just toggle the speaker. The way this would probably integrate into plugins would be to add the speaker accessory and using the speakers IP address send play/pause commands.

{
      "platform": "AP2Speaker",
      "Ip": "10.0.0.6",
     "name":"Back Yard Speakers"
    }

And will expose it's self in control centre as a speaker that can be controlled.

So this is it? Just adding this to the platform part of the config?

@iRayanKhan
Copy link

No, the plugin itself needs to be updated. I was just saying if there was an AirPlay2/Speaker plugin, that would be it’s config and do it over IP.

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

3 participants