Group sonos speakers using node-red

i’m new to Home Assistent and Node-Red.
i managed to automate that my sonos (media_player.keuken) resumes playing when i disable my home alarm, but i want to group media_player.living to media_player.keuken, but i can’t seem to get this working with Node-red or any of the sonos.join options.

anyone who can help me on joining media_player.living to media_player.keuken that is already playing.

Make a payload that looks like

msg.payload = {
    "data":{
        "master": "media_player.living",
        "entity_id": "media_player.bathroom"
    }
}

then pass it to join

1 Like

can i easily do this in Node-red itself? (sorry, new to node-red and home assistant)

Just use a function node. This this shot I build the message in the function node and then attach it to the sonos join node.

thanks for your help
possible for you to export that node-red setup? then i can import it and have a detailed look at it.

thank you all for the tips and tricks. your tips, together with this article (https://seanb.co.uk/2018/04/a-quick-sonos-automation/) solved my issues.

If you are already using the Sonos integration in HA, why not just use a call service node and use the built-in “Join” HA service in the “Sonos” domain?

1 Like