# Problem getting better-sonos to add URL to playback

**URL:** <https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924>\
**Category:** General\
**Created:** [2 August 2019 10:07 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924 "2019-08-02T10:07:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [2 August 2019 10:07 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/1 "2019-08-02T10:07:17Z")

</div>

I have set up the node, and I can pause and start playback. But when I try to add a track (in my case a Norwegian web radio station, [http://lyd.nrk.no/nrk\_radio\_alltid\_nyheter\_mp3\_h.m3u](http://lyd.nrk.no/nrk_radio_alltid_nyheter_mp3_h.m3u) I get an error message:

Error: HTTP response code 500 for "urn:schemas-upnp-org:service:AVTransport:1#AddURIToQueue"

Does anybody know what the problem may be?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [2 August 2019 10:29 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/2 "2019-08-02T10:29:52Z")

</div>

I'm not infront of my computer but I'm not sure you can add a Radio Station to the queue, I thought you have to play it immediately.  
The Nodes authors were very good at getting back to me when I raised some queries with them (although I never used the node for playing radio stations.

Lykke til!

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [2 August 2019 10:41 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/3 "2019-08-02T10:41:25Z")

</div>

Nice touch, "lykke til". 🙂 But I have Direct Play as the mode.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [2 August 2019 11:36 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/4 "2019-08-02T11:36:07Z")

</div>

> [@Mastiff](#):
>
> AddURIToQueue

Made me think that it is using the queue, where as for streams you need to play without queue.

What happens if you replace the nrk stream with

```auto
https://archive.org/download/testmp3testfile/mpthreetest.mp3

```

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [2 August 2019 13:18 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/5 "2019-08-02T13:18:19Z")

</div>

> [@ukmoose](#):
>
> [https://archive.org/download/testmp3testfile/mpthreetest.mp3](https://archive.org/download/testmp3testfile/mpthreetest.mp3)

Same effect, only another error message:

```auto
Error: HTTP response code 500 for "urn:schemas-upnp-org:service:AVTransport:1#Seek"

```

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [2 August 2019 14:09 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/6 "2019-08-02T14:09:07Z")

</div>

Looks similar to this [https://github.com/bencevans/node-sonos/issues/433](https://github.com/bencevans/node-sonos/issues/433)

If a reboot of your sonos doesnt fix the problem I’d open an issue against the node

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [2 August 2019 16:13 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/7 "2019-08-02T16:13:20Z")

</div>

Actually that's another Sonos node. I am using better-sonos. But I will try the other (original?) Sonos node and see if that helps.

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [2 August 2019 16:23 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/8 "2019-08-02T16:23:52Z")

</div>

Nope, the original node doesn't play anything, and it doesn't give an error message either.

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [2 August 2019 16:53 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/9 "2019-08-02T16:53:34Z")

</div>

I have added to the thread at Github, let's see if I get anywhere. 🙂

---

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [22 August 2019 20:17 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/10 "2019-08-22T20:17:35Z")

</div>

Hi, it seems that the TuneIn radio id for that station is "s25534".  
You can use node-red-contrib-sonos-plus, node: manage-radio and set the payload as "play\_TuneIn" and the topic as "s25534".

You can also add it to My Favorites and activate from there.

---

<div class="post-metadata">

**Author:** ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)\
**Post date:** [11 September 2019 11:28 UTC](https://discourse.nodered.org/t/problem-getting-better-sonos-to-add-url-to-playback/13924/11 "2019-09-11T11:28:18Z")

</div>

I'm afraid that doesn't help me, for the system to work (I have a unified system running every speaker and amp in the house) I need to use the URLs. But I finally found a way, using Home Assistant.
