I am running a script with multiple actions. te latest action is a mediaplayer.stop targeted to all my sonos systems.
Now, most of the times this works fine. when i fire this specific action in the script my HA always poops out this error: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop.
This results in sometimes one (or more) sonos speakers not stopping the music played.
googling only gives me information that i should have used the correct action for the job but no actual solution to my problem
we mostly use the sonos to play a radio station via the sonos app or tunein.
What happens if you only execute that command to stop the media players? (in the script or in the development tools → actions?
I have experienced that sometimes adding a small time delay before a step that was not working consistently could solve this.
What the real cause of your issue is I can’t say so maybe with this workaround you can at least solve it for now.
Sonos does not have a turn off command. It has pause and stop. If those don’t work directly from an action is developer tools submit an issue (with a debug log) and I’ll look at it.
Hi, thanks for jumping in and sharing this info about the off command, or better the lack of.
This would mean that the documentation for the integration should be updated.