I want to add a service to set the repeat mode in the Sonos integration. This is the setting that makes a track or the entire playlist repeat endlessly. That is very annoying and therefore it would be nice to be able to turn it off with Home Assistant :-).
As a repeat mode is fairly common, I think it should be implemented as a standard supported feature of media_player.
Proposal
Add SUPPORT_REPEAT_SET as a possible value in supported_features.
Add SERVICE_REPEAT_SET = "repeat_set"
Add repeat property, possible values: off, one, all
This is modeled after the "shuffle" support, except it is not just an on/off setting.
Consequences
It becomes possible to set/clear the repeat mode from automations.
Context
I want to add a service to set the repeat mode in the Sonos integration. This is the setting that makes a track or the entire playlist repeat endlessly. That is very annoying and therefore it would be nice to be able to turn it off with Home Assistant :-).
As a repeat mode is fairly common, I think it should be implemented as a standard supported feature of
media_player
.Proposal
SUPPORT_REPEAT_SET
as a possible value insupported_features
.SERVICE_REPEAT_SET = "repeat_set"
repeat
property, possible values:off
,one
,all
This is modeled after the "shuffle" support, except it is not just an on/off setting.
Consequences
It becomes possible to set/clear the repeat mode from automations.