home-assistant / architecture

Repo to discuss Home Assistant architecture
315 stars 99 forks source link

Set repeat mode of media_player #442

Closed amelchio closed 3 years ago

amelchio commented 3 years ago

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

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.