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

Classes

class  _RoomSource
 
class  _SourceType
 
class  Control4Room
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONTROL4_CURRENT_VIDEO_DEVICE = "CURRENT_VIDEO_DEVICE"
 
string CONTROL4_MEDIA_INFO = "CURRENT MEDIA INFO"
 
string CONTROL4_MUTED_STATE = "IS_MUTED"
 
string CONTROL4_PARENT_ID = "parentId"
 
string CONTROL4_PAUSED = "PAUSED"
 
string CONTROL4_PLAYING = "PLAYING"
 
string CONTROL4_POWER_STATE = "POWER_STATE"
 
string CONTROL4_STOPPED = "STOPPED"
 
string CONTROL4_VOLUME_STATE = "CURRENT_VOLUME"
 
dictionary VARIABLES_OF_INTEREST
 

Detailed Description

Platform for Control4 Rooms Media Players.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.control4.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up Control4 rooms from a config entry.

Definition at line 80 of file media_player.py.

◆ get_rooms()

def homeassistant.components.control4.media_player.get_rooms ( HomeAssistant  hass,
ConfigEntry  entry 
)
Return a list of all Control4 rooms.

Definition at line 70 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 31 of file media_player.py.

◆ CONTROL4_CURRENT_VIDEO_DEVICE

string homeassistant.components.control4.media_player.CONTROL4_CURRENT_VIDEO_DEVICE = "CURRENT_VIDEO_DEVICE"

Definition at line 36 of file media_player.py.

◆ CONTROL4_MEDIA_INFO

string homeassistant.components.control4.media_player.CONTROL4_MEDIA_INFO = "CURRENT MEDIA INFO"

Definition at line 40 of file media_player.py.

◆ CONTROL4_MUTED_STATE

string homeassistant.components.control4.media_player.CONTROL4_MUTED_STATE = "IS_MUTED"

Definition at line 35 of file media_player.py.

◆ CONTROL4_PARENT_ID

string homeassistant.components.control4.media_player.CONTROL4_PARENT_ID = "parentId"

Definition at line 42 of file media_player.py.

◆ CONTROL4_PAUSED

string homeassistant.components.control4.media_player.CONTROL4_PAUSED = "PAUSED"

Definition at line 38 of file media_player.py.

◆ CONTROL4_PLAYING

string homeassistant.components.control4.media_player.CONTROL4_PLAYING = "PLAYING"

Definition at line 37 of file media_player.py.

◆ CONTROL4_POWER_STATE

string homeassistant.components.control4.media_player.CONTROL4_POWER_STATE = "POWER_STATE"

Definition at line 33 of file media_player.py.

◆ CONTROL4_STOPPED

string homeassistant.components.control4.media_player.CONTROL4_STOPPED = "STOPPED"

Definition at line 39 of file media_player.py.

◆ CONTROL4_VOLUME_STATE

string homeassistant.components.control4.media_player.CONTROL4_VOLUME_STATE = "CURRENT_VOLUME"

Definition at line 34 of file media_player.py.

◆ VARIABLES_OF_INTEREST

dictionary homeassistant.components.control4.media_player.VARIABLES_OF_INTEREST
Initial value:
1 = {
2  CONTROL4_POWER_STATE,
3  CONTROL4_VOLUME_STATE,
4  CONTROL4_MUTED_STATE,
5  CONTROL4_CURRENT_VIDEO_DEVICE,
6  CONTROL4_MEDIA_INFO,
7  CONTROL4_PLAYING,
8  CONTROL4_PAUSED,
9  CONTROL4_STOPPED,
10 }

Definition at line 44 of file media_player.py.