Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.soundtouch.media_player Namespace Reference

Classes

class  SoundTouchMediaPlayer
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_SOUNDTOUCH_GROUP = "soundtouch_group"
 
string ATTR_SOUNDTOUCH_ZONE = "soundtouch_zone"
 
dictionary MAP_STATUS
 

Detailed Description

Support for interface with a Bose SoundTouch.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.soundtouch.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Bose SoundTouch media player based on a config entry.

Definition at line 47 of file media_player.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.soundtouch.media_player._LOGGER = logging.getLogger(__name__)
private

Definition at line 34 of file media_player.py.

◆ ATTR_SOUNDTOUCH_GROUP

string homeassistant.components.soundtouch.media_player.ATTR_SOUNDTOUCH_GROUP = "soundtouch_group"

Definition at line 43 of file media_player.py.

◆ ATTR_SOUNDTOUCH_ZONE

string homeassistant.components.soundtouch.media_player.ATTR_SOUNDTOUCH_ZONE = "soundtouch_zone"

Definition at line 44 of file media_player.py.

◆ MAP_STATUS

dictionary homeassistant.components.soundtouch.media_player.MAP_STATUS
Initial value:
1 = {
2  "PLAY_STATE": MediaPlayerState.PLAYING,
3  "BUFFERING_STATE": MediaPlayerState.PLAYING,
4  "PAUSE_STATE": MediaPlayerState.PAUSED,
5  "STOP_STATE": MediaPlayerState.OFF,
6 }

Definition at line 36 of file media_player.py.