I need some help to update my sonos node from version 3 to 4.
I did a node update for sonos plus and my flow was broken.
So i did
cd ~/.node-red // home directory and then .node-red. In Docker /data/.node-red
npm uninstall node-red-contrib-sonos-plus
npm install node-red-contrib-sonos-plus@3.1.5
Now everything works as before. I like to update my flow so i can use the new v4 sonos plus nodes.
Can someone help to convert this to a v4 usable format ? I tried it myself but cant find the replacements for my old sonos nodes.
I have i a very tiny submodule for sonos plus nodes.
[{"id":"50fbff2a.ae025","type":"subflow","name":"playwave","info":"","category":"","in":[{"x":60,"y":80,"wires":[{"id":"56cef9ae.4f94c8"}]}],"out":[{"x":640,"y":240,"wires":[{"id":"9fd939e8.bd0f08","port":0}]}],"env":[],"color":"#DDAA99"},{"id":"9fcead47.9d3a1","type":"sonos-manage-queue","z":"50fbff2a.ae025","confignode":"beeee955.83a368","name":"sonosaanbouw","x":460,"y":80,"wires":[["7996229f.c0b6ac"]]},{"id":"7996229f.c0b6ac","type":"change","z":"50fbff2a.ae025","name":"insert playlist","rules":[{"t":"set","p":"payload","pt":"msg","to":"insert_sonos_playlist","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":80,"wires":[["fcc96035.26705"]]},{"id":"fcc96035.26705","type":"sonos-manage-queue","z":"50fbff2a.ae025","confignode":"beeee955.83a368","name":"","x":840,"y":80,"wires":[["3154b9a6.546b66"]]},{"id":"973e1825.2af218","type":"change","z":"50fbff2a.ae025","name":"activate queue","rules":[{"t":"set","p":"payload","pt":"msg","to":"activate_queue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":200,"y":240,"wires":[["9fd939e8.bd0f08"]]},{"id":"9fd939e8.bd0f08","type":"sonos-manage-queue","z":"50fbff2a.ae025","confignode":"beeee955.83a368","name":"","x":460,"y":240,"wires":[[]]},{"id":"b6173774.82b688","type":"sonos-control-player","z":"50fbff2a.ae025","confignode":"beeee955.83a368","name":"","x":460,"y":160,"wires":[["973e1825.2af218"]]},{"id":"3154b9a6.546b66","type":"change","z":"50fbff2a.ae025","name":"zet volume ","rules":[{"t":"set","p":"payload","pt":"msg","to":"90","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":190,"y":160,"wires":[["b6173774.82b688"]]},{"id":"56cef9ae.4f94c8","type":"change","z":"50fbff2a.ae025","name":"flush playlist","rules":[{"t":"set","p":"payload","pt":"msg","to":"flush_queue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":190,"y":80,"wires":[["9fcead47.9d3a1"]]},{"id":"e0ddd285.dda2a","type":"comment","z":"50fbff2a.ae025","name":"speelt playlist af die door de aanroep is meegegeven. laat input en output staan!","info":"","x":380,"y":320,"wires":[]},{"id":"beeee955.83a368","type":"sonos-config","name":"sonosaanbouw","serialnum":"00-0E-58-53-B9-FE:F","ipaddress":"192.168.20.29"}]
I call the above submodule from different modules where the payload is defined which playlist to play.
for example with a change node (with msg.topic = doorbell)
or msg.topic = disable_alarm_sound
Can i still use these triggering flows and do i need to change the use of msg.topic in these ?
In the attached main flow, i use the different v3 sonos plus nodes. It is a very simple flow:
a) flush the queue
- with payload = flush_queue and then
- v3 node mng_queue node
B) insert the playlistname (see name in part 0) before)
- with payload = insert_sonos_playlist and then
- v3 node mng_queue node
c) set volume by
- payload=90 and then
- v3 node ctrl player node
d) activate the queue by
- payload= activate_queue and then
- v3 node mng_queue node
View: