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

Classes

class  EmbyDevice
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DEFAULT_HOST = "localhost"
 
int DEFAULT_PORT = 8096
 
bool DEFAULT_SSL = False
 
int DEFAULT_SSL_PORT = 8920
 
string MEDIA_TYPE_TRAILER = "trailer"
 
 PLATFORM_SCHEMA
 
tuple SUPPORT_EMBY
 

Detailed Description

Support to interface with the Emby API.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.emby.media_player.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Emby platform.

Definition at line 60 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 32 of file media_player.py.

◆ DEFAULT_HOST

string homeassistant.components.emby.media_player.DEFAULT_HOST = "localhost"

Definition at line 36 of file media_player.py.

◆ DEFAULT_PORT

int homeassistant.components.emby.media_player.DEFAULT_PORT = 8096

Definition at line 37 of file media_player.py.

◆ DEFAULT_SSL

bool homeassistant.components.emby.media_player.DEFAULT_SSL = False

Definition at line 39 of file media_player.py.

◆ DEFAULT_SSL_PORT

int homeassistant.components.emby.media_player.DEFAULT_SSL_PORT = 8920

Definition at line 38 of file media_player.py.

◆ MEDIA_TYPE_TRAILER

string homeassistant.components.emby.media_player.MEDIA_TYPE_TRAILER = "trailer"

Definition at line 34 of file media_player.py.

◆ PLATFORM_SCHEMA

homeassistant.components.emby.media_player.PLATFORM_SCHEMA
Initial value:
1 = MEDIA_PLAYER_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_API_KEY): cv.string,
4  vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
5  vol.Optional(CONF_PORT): cv.port,
6  vol.Optional(CONF_SSL, default=DEFAULT_SSL): cv.boolean,
7  }
8 )

Definition at line 50 of file media_player.py.

◆ SUPPORT_EMBY

tuple homeassistant.components.emby.media_player.SUPPORT_EMBY
Initial value:
1 = (
2  MediaPlayerEntityFeature.PAUSE
3  | MediaPlayerEntityFeature.PREVIOUS_TRACK
4  | MediaPlayerEntityFeature.NEXT_TRACK
5  | MediaPlayerEntityFeature.STOP
6  | MediaPlayerEntityFeature.SEEK
7  | MediaPlayerEntityFeature.PLAY
8 )

Definition at line 41 of file media_player.py.