# H2 pause all SONOS speakers?

**URL:** <https://community.homey.app/t/h2-pause-all-sonos-speakers/89472>\
**Category:** Flows\
**Tags:** homeyscript, flow, advancedflow\
**Created:** [September 15, 2023, 10:06am UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472 "2023-09-15T10:06:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 15, 2023, 10:06am UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/1 "2023-09-15T10:06:23Z")

</div>

I need a way to pause all SONOS speakers I have (\>20). I started with a flow then an advanced flow, but they don’t scale well (when I add/remove speakers) . Surely a HomeyScript could loop through all devices, identify class “speaker” and even identify if it’s a SONOS speaker (on capability title/id) and finally pause it. Anyone know how to write this? Or is there a simpler solution?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 15, 2023, 10:20am UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/2 "2023-09-15T10:20:52Z")

</div>

You can use the Zet devices in Zone (oncluding subzones) flowcards from the Device Capabilities app.  
Just on card can pause all sonos speakers.

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 15, 2023, 12:03pm UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/3 "2023-09-15T12:03:16Z")

</div>

Thank you for replying but I don’t understand. Can you maybe show an image of this?

Adv flow: When I select a “then…” clause, under “Home zone” I can only select individual zones OR “Turn {device type} on/off” (speakers are not a device type). I should probably be looking elsewhere?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 15, 2023, 12:27pm UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/4 "2023-09-15T12:27:47Z")

</div>

You need to use the flowcard from the app: Device Capabilities.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 15, 2023, 12:29pm UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/5 "2023-09-15T12:29:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/41e7ef02684902b32bf9670fa00572ba159e57ab.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [September 15, 2023, 2:34pm UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/6 "2023-09-15T14:34:07Z")

</div>

Btw, this card has a smart way of handling multiple devices, so you dont need delays or anything, it should switch all device serial /after-each-other very fastly.

---

<div class="post-metadata">

**Author:** ![mrPilloft](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrpilloft/32/87781_2.png) [@mrPilloft](https://community.homey.app/u/mrPilloft)\
**Post date:** [September 15, 2023, 6:23pm UTC](https://community.homey.app/t/h2-pause-all-sonos-speakers/89472/7 "2023-09-15T18:23:15Z")

</div>

Works like a charm:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6aa96f18368eb2b8ed2eed9b6ac1468cb950d277.png)
