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

Classes

class  BlackbirdZone
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_SOURCE = "source"
 
 BLACKBIRD_SETALLZONES_SCHEMA
 
string CONF_SOURCES = "sources"
 
string CONF_ZONES = "zones"
 
string DATA_BLACKBIRD = "blackbird"
 
 MEDIA_PLAYER_SCHEMA = vol.Schema({ATTR_ENTITY_ID: cv.comp_entity_ids})
 
 PLATFORM_SCHEMA
 
 SOURCE_IDS = vol.All(vol.Coerce(int), vol.Range(min=1, max=8))
 
 SOURCE_SCHEMA = vol.Schema({vol.Required(CONF_NAME): cv.string})
 
 ZONE_IDS = vol.All(vol.Coerce(int), vol.Range(min=1, max=8))
 
 ZONE_SCHEMA = vol.Schema({vol.Required(CONF_NAME): cv.string})
 

Detailed Description

Support for interfacing with Monoprice Blackbird 4k 8x8 HDBaseT Matrix.

Function Documentation

◆ setup_platform()

None homeassistant.components.blackbird.media_player.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Monoprice Blackbird 4k 8x8 HDBaseT Matrix platform.

Definition at line 70 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 31 of file media_player.py.

◆ ATTR_SOURCE

string homeassistant.components.blackbird.media_player.ATTR_SOURCE = "source"

Definition at line 44 of file media_player.py.

◆ BLACKBIRD_SETALLZONES_SCHEMA

homeassistant.components.blackbird.media_player.BLACKBIRD_SETALLZONES_SCHEMA
Initial value:
1 = MEDIA_PLAYER_SCHEMA.extend(
2  {vol.Required(ATTR_SOURCE): cv.string}
3 )

Definition at line 46 of file media_player.py.

◆ CONF_SOURCES

string homeassistant.components.blackbird.media_player.CONF_SOURCES = "sources"

Definition at line 40 of file media_player.py.

◆ CONF_ZONES

string homeassistant.components.blackbird.media_player.CONF_ZONES = "zones"

Definition at line 39 of file media_player.py.

◆ DATA_BLACKBIRD

string homeassistant.components.blackbird.media_player.DATA_BLACKBIRD = "blackbird"

Definition at line 42 of file media_player.py.

◆ MEDIA_PLAYER_SCHEMA

homeassistant.components.blackbird.media_player.MEDIA_PLAYER_SCHEMA = vol.Schema({ATTR_ENTITY_ID: cv.comp_entity_ids})

Definition at line 33 of file media_player.py.

◆ PLATFORM_SCHEMA

homeassistant.components.blackbird.media_player.PLATFORM_SCHEMA
Initial value:
1 = vol.All(
2  cv.has_at_least_one_key(CONF_PORT, CONF_HOST),
3  MEDIA_PLAYER_PLATFORM_SCHEMA.extend(
4  {
5  vol.Exclusive(CONF_PORT, CONF_TYPE): cv.string,
6  vol.Exclusive(CONF_HOST, CONF_TYPE): cv.string,
7  vol.Required(CONF_ZONES): vol.Schema({ZONE_IDS: ZONE_SCHEMA}),
8  vol.Required(CONF_SOURCES): vol.Schema({SOURCE_IDS: SOURCE_SCHEMA}),
9  }
10  ),
11 )

Definition at line 57 of file media_player.py.

◆ SOURCE_IDS

homeassistant.components.blackbird.media_player.SOURCE_IDS = vol.All(vol.Coerce(int), vol.Range(min=1, max=8))

Definition at line 55 of file media_player.py.

◆ SOURCE_SCHEMA

homeassistant.components.blackbird.media_player.SOURCE_SCHEMA = vol.Schema({vol.Required(CONF_NAME): cv.string})

Definition at line 37 of file media_player.py.

◆ ZONE_IDS

homeassistant.components.blackbird.media_player.ZONE_IDS = vol.All(vol.Coerce(int), vol.Range(min=1, max=8))

Definition at line 52 of file media_player.py.

◆ ZONE_SCHEMA

homeassistant.components.blackbird.media_player.ZONE_SCHEMA = vol.Schema({vol.Required(CONF_NAME): cv.string})

Definition at line 35 of file media_player.py.