<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nest and Sonos Probs in Script Editor in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/556192#M37054</link>
    <description>&lt;P&gt;Any luck with this problem? It works ok for me with the devices that support Media commands. I was surprised to notice that 3 of my 4 google home minis don't support any of the Media commands (such as MediaStop or MediaPause).&lt;BR /&gt;I guess things are still a bit buggy?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 01:43:54 GMT</pubDate>
    <dc:creator>marinasasso</dc:creator>
    <dc:date>2023-12-06T01:43:54Z</dc:date>
    <item>
      <title>Nest and Sonos Probs in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/477134#M21781</link>
      <description>&lt;P&gt;HI-&lt;/P&gt;&lt;P&gt;I'm trying to write a script that pauses/stops playback on all of my Sonos speakers (playing independently, not grouped) at the same time when I use a voice command.&amp;nbsp; I can write a script that works just fine when I only try to pause one speaker at a time, but I'm having problems when I try to pause more than one at the same time.&amp;nbsp; I've used the two scripts below and neither works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: make Sonos quiet
  actions:
    - type: device.command.MediaStop
      devices: speaker_1 - Room_1
    - type: device.command.MediaStop
      devices: speaker_2 - Room_2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: make Sonos quiet
  actions:
    - type: device.command.MediaStop
      devices:
        - speaker_1 - Room_1
        - speaker_2 - Room_2
    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both cases, one of the speakers will pause and the other will not&amp;nbsp; (I think the one that stops is the one that started playing most recently, but I'm not 100% sure). The only way I've been able to get it to work so far is by doing this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  starters:
    - type: assistant.event.OkGoogle
      eventData: query
      is: make Sonos quiet
  actions:
    - type: device.command.MediaPause
      devices: speaker_1 - Room_1
    - type: device.command.MediaStop
      devices: speaker_2 - Room_2&lt;/LI-CODE&gt;&lt;P&gt;...which would be fine (I guess) if I only had two Sonos devices, but I have more than that and I can't think of another way around it.&lt;/P&gt;&lt;P&gt;Any advice or suggestions? I'm new to this, but I have no problem writing scripts that trigger other types of actions (e.g. turning lights on or off) and affecting multiple devices at the same time. The only issue is with Sonos devices.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 00:02:45 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/477134#M21781</guid>
      <dc:creator>EllieDave</dc:creator>
      <dc:date>2023-09-05T00:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nest and Sonos Probs in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/556192#M37054</link>
      <description>&lt;P&gt;Any luck with this problem? It works ok for me with the devices that support Media commands. I was surprised to notice that 3 of my 4 google home minis don't support any of the Media commands (such as MediaStop or MediaPause).&lt;BR /&gt;I guess things are still a bit buggy?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 01:43:54 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/556192#M37054</guid>
      <dc:creator>marinasasso</dc:creator>
      <dc:date>2023-12-06T01:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nest and Sonos Probs in Script Editor</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/557771#M37452</link>
      <description>&lt;P&gt;Still no luck. But just to clarify, I'm trying to control three SONOS speakers, not Google Home/Nest Minis with one command. I have no problem using similar commands to control multiple lights, but I can't make anything work for multiple Sonos speakers.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 17:34:03 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Nest-and-Sonos-Probs-in-Script-Editor/m-p/557771#M37452</guid>
      <dc:creator>EllieDave</dc:creator>
      <dc:date>2023-12-08T17:34:03Z</dc:date>
    </item>
  </channel>
</rss>

