cancel
Showing results for 
Search instead for 
Did you mean: 

stop casting

rogerdavies
Community Member

I have an automation which turns on the radio for an hour, but at the end it pauses the radio, but does not stop casting. This means I am using data unneccessarily, and if I touch the speaker accidentally the cast resumes. Is there any way to instruct it to stop casting rather than pause the speaker after a period of time?

1 REPLY 1

salbando
Community Member

I assume your automation was created using the Google Home App. For years I have wondered why such a simple thing as Stop music only pauses it. That said, I have found that the Script Editor does have a stop media option that seems to work reliably. The relevant code looks like this:

  actions:
    - type: device.command.MediaStop
      devices: Upstairs kitchen speaker - Kitchen