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

Classes

class  RussoundRNETDevice
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_SOURCES = "sources"
 
string CONF_ZONES = "zones"
 
 PLATFORM_SCHEMA
 
 SOURCE_SCHEMA = vol.Schema({vol.Required(CONF_NAME): cv.string})
 
 ZONE_SCHEMA = vol.Schema({vol.Required(CONF_NAME): cv.string})
 

Detailed Description

Support for interfacing with Russound via RNET Protocol.

Function Documentation

◆ setup_platform()

None homeassistant.components.russound_rnet.media_player.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Russound RNET platform.

Definition at line 44 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 23 of file media_player.py.

◆ CONF_SOURCES

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

Definition at line 26 of file media_player.py.

◆ CONF_ZONES

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

Definition at line 25 of file media_player.py.

◆ PLATFORM_SCHEMA

homeassistant.components.russound_rnet.media_player.PLATFORM_SCHEMA
Initial value:
1 = MEDIA_PLAYER_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_NAME): cv.string,
5  vol.Required(CONF_PORT): cv.port,
6  vol.Required(CONF_ZONES): vol.Schema({cv.positive_int: ZONE_SCHEMA}),
7  vol.Required(CONF_SOURCES): vol.All(cv.ensure_list, [SOURCE_SCHEMA]),
8  }
9 )

Definition at line 33 of file media_player.py.

◆ SOURCE_SCHEMA

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

Definition at line 31 of file media_player.py.

◆ ZONE_SCHEMA

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

Definition at line 29 of file media_player.py.