02-13-2024 06:00 AM
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?
02-13-2024 12:28 PM
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