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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_ENABLE_WEBSOCKET = "enable_websocket"
 
string CONF_TCP_PORT = "tcp_port"
 
string CONF_TURN_OFF_ACTION = "turn_off_action"
 
string CONF_TURN_ON_ACTION = "turn_on_action"
 
dictionary DEPRECATED_TURN_OFF_ACTIONS
 
string EVENT_KODI_CALL_METHOD_RESULT = "kodi_call_method_result"
 
 WEBSOCKET_WATCHDOG_INTERVAL = timedelta(seconds=10)
 

Detailed Description

Support for interfacing with the XBMC/Kodi JSON-RPC API.

Variable Documentation

◆ _LOGGER

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

Definition at line 74 of file media_player.py.

◆ CONF_ENABLE_WEBSOCKET

string homeassistant.components.kodi.media_player.CONF_ENABLE_WEBSOCKET = "enable_websocket"

Definition at line 81 of file media_player.py.

◆ CONF_TCP_PORT

string homeassistant.components.kodi.media_player.CONF_TCP_PORT = "tcp_port"

Definition at line 78 of file media_player.py.

◆ CONF_TURN_OFF_ACTION

string homeassistant.components.kodi.media_player.CONF_TURN_OFF_ACTION = "turn_off_action"

Definition at line 80 of file media_player.py.

◆ CONF_TURN_ON_ACTION

string homeassistant.components.kodi.media_player.CONF_TURN_ON_ACTION = "turn_on_action"

Definition at line 79 of file media_player.py.

◆ DEPRECATED_TURN_OFF_ACTIONS

dictionary homeassistant.components.kodi.media_player.DEPRECATED_TURN_OFF_ACTIONS
Initial value:
1 = {
2  None: None,
3  "quit": "Application.Quit",
4  "hibernate": "System.Hibernate",
5  "suspend": "System.Suspend",
6  "reboot": "System.Reboot",
7  "shutdown": "System.Shutdown",
8 }

Definition at line 83 of file media_player.py.

◆ EVENT_KODI_CALL_METHOD_RESULT

string homeassistant.components.kodi.media_player.EVENT_KODI_CALL_METHOD_RESULT = "kodi_call_method_result"

Definition at line 76 of file media_player.py.

◆ WEBSOCKET_WATCHDOG_INTERVAL

homeassistant.components.kodi.media_player.WEBSOCKET_WATCHDOG_INTERVAL = timedelta(seconds=10)

Definition at line 92 of file media_player.py.