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

Classes

class  SqueezeBoxMediaPlayerEntity
 

Functions

None async_setup_entry (HomeAssistant hass, SqueezeboxConfigEntry entry, AddEntitiesCallback async_add_entities)
 
None start_server_discovery (HomeAssistant hass)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_OTHER_PLAYER = "other_player"
 
string ATTR_PARAMETERS = "parameters"
 
string ATTR_QUERY_RESULT = "query_result"
 
list ATTR_TO_PROPERTY
 
string SERVICE_CALL_METHOD = "call_method"
 
string SERVICE_CALL_QUERY = "call_query"
 
dictionary SQUEEZEBOX_MODE
 

Detailed Description

Support for interfacing to the SqueezeBox API.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.squeezebox.media_player.async_setup_entry ( HomeAssistant  hass,
SqueezeboxConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Squeezebox media_player platform from a server config entry.

Definition at line 113 of file media_player.py.

◆ start_server_discovery()

None homeassistant.components.squeezebox.media_player.start_server_discovery ( HomeAssistant  hass)
Start a server discovery task.

Definition at line 89 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 72 of file media_player.py.

◆ ATTR_OTHER_PLAYER

string homeassistant.components.squeezebox.media_player.ATTR_OTHER_PLAYER = "other_player"

Definition at line 76 of file media_player.py.

◆ ATTR_PARAMETERS

string homeassistant.components.squeezebox.media_player.ATTR_PARAMETERS = "parameters"

Definition at line 75 of file media_player.py.

◆ ATTR_QUERY_RESULT

string homeassistant.components.squeezebox.media_player.ATTR_QUERY_RESULT = "query_result"

Definition at line 70 of file media_player.py.

◆ ATTR_TO_PROPERTY

list homeassistant.components.squeezebox.media_player.ATTR_TO_PROPERTY
Initial value:
1 = [
2  ATTR_QUERY_RESULT,
3 ]

Definition at line 78 of file media_player.py.

◆ SERVICE_CALL_METHOD

string homeassistant.components.squeezebox.media_player.SERVICE_CALL_METHOD = "call_method"

Definition at line 67 of file media_player.py.

◆ SERVICE_CALL_QUERY

string homeassistant.components.squeezebox.media_player.SERVICE_CALL_QUERY = "call_query"

Definition at line 68 of file media_player.py.

◆ SQUEEZEBOX_MODE

dictionary homeassistant.components.squeezebox.media_player.SQUEEZEBOX_MODE
Initial value:
1 = {
2  "pause": MediaPlayerState.PAUSED,
3  "play": MediaPlayerState.PLAYING,
4  "stop": MediaPlayerState.IDLE,
5 }

Definition at line 82 of file media_player.py.