# Node-red-contrib-sonos-plus (4.1.0) How can I play an imported Playlist

**URL:** <https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758>\
**Category:** General\
**Created:** [27 July 2020 07:23 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758 "2020-07-27T07:23:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [27 July 2020 07:23 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758/1 "2020-07-27T07:23:52Z")

</div>

All my CDs have an RFID-Card inside. They are controlled(played) by the UID on the card. Every CD has its own playlist in a special folder on a NAS. The playlists looks like "14-18-170-209.m3u". Therefore the playlists URI is: [//192.168.2.14/music/RFID/RFID-playlists-CD/14-18-170-209.m3u](https://192.168.2.14/music/RFID/RFID-playlists-CD/14-18-170-209.m3u)". The UID comes from MQTT an then the URI is created and handed over to the sonos-node to be played.  
In the SONOS-App these playlist can be found under "imported playlist". I tried the example 2: Play a playlist using my Sonos from the red-node site. The only thind that happend is the text "error: mysonos.export.item - nodejs error - contact the developer" .

After the mysonos.export.item the debuggung message is:  
mysonos.export.item:nodejs error - contact developer :: Details: {"stack":"Error: connect ENETUNREACH 192.168.178.37:1400\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)","message":"connect ENETUNREACH 192.168.178.37:1400","code":"ENETUNREACH","config":{}}

The best way would be: call up the URI and the playlist is played. Is there anybody out there who can help me?

Regards Eberhard

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [27 July 2020 08:07 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758/2 "2020-07-27T08:07:26Z")

</div>

I have to correct myself: i had forgotten to change the Config Node from Coordinator to my value . After doing this I reach a different error message:

mysonos.export.item: No title matching search string \>\>14-18-170-209.m3u :: Details: none

Eberhard

---

<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:** [27 July 2020 13:44 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758/3 "2020-07-27T13:44:41Z")

</div>

Hi Eberhard. Imported playlist show up in Music Library - right?

So you can use node "My Sonos" and command `Library export the specified playlist`. For payload (state) use **14-18-170-209**. Then use "Universal" and command `group play export`

You can get a list of all (imported) playlists with `Library get all playlists`

Let me know whether that works for you.  
Henning

---

<div class="post-metadata">

**Author:** ![Eberhard](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Eberhard](https://discourse.nodered.org/u/Eberhard)\
**Post date:** [27 July 2020 14:07 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758/4 "2020-07-27T14:07:52Z")

</div>

> [@hklages](#):
>
> yo

Hi Henning,

it just a half hour away that I solved my problems. Let me tell you how.  
The problem was, that the database is much greater then the 200 playlists as in "Imported Playlist" shown. Since yesterday I was working on solving this problem.

1. The UID comes from mqtt as a dezimal number of the 32-bit word. This number has to converted into the format nnn-nnn-nnn-nnn. This is done.
2. This number has to be built into the URI with "x-file-cifs://192.168.2.14/music/RFID/RFID-playlists-CD/" + msg.payload + ".m3u". Also done.
3. Three Universal-nodes makes the last steps: group.clear.queue, group.queue.uri and group.play.queue.

Its a pitty, that I was too late and you hopefully spoiled not too much time for me. Tell me if I should post this flow.

Thank you very much.  
Regards Eberhard

Its good to know, that there ist someone who helps in case of emergency.

---

<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:** [27 July 2020 16:07 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758/5 "2020-07-27T16:07:12Z")

</div>

Hi Eberhard. Yes - group.queue.uri is another solution.

In case you need further assistance (and you have a github account) you can open an issue at [git repository](https://github.com/hklages/node-red-contrib-sonos-plus). Then I will get a notification and can support you.

Have a nice day. Henning.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 August 2020 16:07 UTC](https://discourse.nodered.org/t/node-red-contrib-sonos-plus-4-1-0-how-can-i-play-an-imported-playlist/30758/6 "2020-08-10T16:07:24Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
