Sonos intergration?
18084AZ opened this issue · 23 comments
Hi! I wonder if it’s able to play the music through Sonos speaker? I have the options to choose my sonos speakers and it starts to play but there is no sound coming out of the speaker.
Is this just compatibility issue or should I be able to play music through my Sonos speaker? Google devices works great to play music through.
Hi, we had that issue before and as of now it seams like sonos isn working.
I'd bet that it is possible to solve this, as it is simply a mp3 stream .. but I don't have a sonos and it would require to debug the sonos python api.
So for now: not supported
Alright, too bad.. If there is anything I can do or provide with to solve the issue just tell me ;)
Have a look at https://community.home-assistant.io/t/youtube-music-media-browser/226367/190?u=jkw
There are still unanswered points/tasks
Hi,
please try adding the two config values proxy_path and proxy_url to your configuration.
The proxy path has to point to your www folder, if you are using a docker image "/config/www" should be correct.
Proxy url has to point to the local url.
The integration will download the ytube stream and store it at the proxy_path. Once the download finished
the sonos will receive the link from proxy_url and play the local file
media_player:
- platform: ytube_music_player
speakers:
- media_player.jkw_cast2
proxy_path: "/config/www"
proxy_url: "http://192.168.2.43:8123/local"
This is highly experimental and NOT tested. (I don't have a Sonos).
Nothing will change if the two parameter aren't provided.
Wherever the data is stored the you can access via the web url, from inside the container.
Just "/local/" seams strange, but it's possible. I don't run a pi imagine. Sorry can't help.
Can you ssh into the pi? The you could create a small test file and access it via the url
Tested it. No sound unfortunately.
My config:
media_player:
- platform: ytube_music_player
speakers:
- media_player.sonos_connect_amp
proxy_path: "/config/www"
proxy_url: "https://drsnuggles.local:8123/local"
Error messages:
Logger: homeassistant.components.sonos.media_player
Source: components/sonos/media_player.py:481
Integration: Sonos (documentation, issues)
First occurred: 9:59:18 (5 occurrences)
Last logged: 10:00:44
Error on play_media with UPnP Error 701 received: Transition not available from 192.168.1.30
Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:306
Integration: YouTube Music Player (documentation, issues)
First occurred: 9:59:14 (2 occurrences)
Last logged: 9:59:49
self._state is: (playing).
Please try your local ip instead of https://drsnuggles.local:8123/local
Something like http://192.168.1.3:8123/local .. something the sonos can connect to
Tried several options (https/http/local ip/external ip/etc), but for now same issue.
I have sonos integration and this works for me.
i used for the proxy path the following:
http://192.168.1.xxx:8123/local
/config/www
running hassos on NUC
THANK YOU
very nice to hear back that it is working!
I have sonos integration and this works for me.
i used for the proxy path the following:
http://192.168.1.xxx:8123/local
/config/wwwrunning hassos on NUC
Sorry for being a noob, but where do you put this code? In the configuration.yaml?
you can now add this during the config flow
I can confirm that is working on sonos bookshelf ikea symfonisk!! thanks!
I can confirm that is working on sonos bookshelf ikea symfonisk!! thanks!
How???
I'd assume like this https://github.com/KoljaWindeler/ytube_music_player#sonos-fix
The proxy thing seems to work fine, how can I send it to a group?
Would someone kindly post a step-by-step on how to get this working for Sonos?
It's not possible anymore.
It's not possible anymore.
So Sonos speakers don't work with YouTube Music Player anymore?