As noted by jeremywillans this no longer works in HA 2021.7+. In October of last year the core media_player
service has been updated and has added some of the functionality (repeat, shuffle) that this plugin provided. This repository will be archived and it's no longer supported.
This component creates a service sonos_player_modes.set_mode
that lets you change playback modes on any one of your Sonos speakers. Requires the sonos
component to be already setup.
- Copy the
custom_components
forlder in your HA configuration folder (or install with HACS). - Add
to the
sonos_player_modes:
configuration.yaml
entity_id
: entity id of the speaker (eg.media_player.bedroom
)mode
: playback mode. Supported modes:NORMAL
,REPEAT_ALL
,REPEAT_ONE
,SHUFFLE
,SHUFFLE_NOREPEAT
,SHUFFLE_REPEAT_ONE