Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.xiaomi.device_tracker Namespace Reference

Classes

class  XiaomiDeviceScanner
 

Functions

def _get_token (host, username, password)
 
def _retrieve_list (host, token, **kwargs)
 
XiaomiDeviceScanner|None get_scanner (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for Xiaomi Mi routers.

Function Documentation

◆ _get_token()

def homeassistant.components.xiaomi.device_tracker._get_token (   host,
  username,
  password 
)
private
Get authentication token for the given host+username+password.

Definition at line 150 of file device_tracker.py.

◆ _retrieve_list()

def homeassistant.components.xiaomi.device_tracker._retrieve_list (   host,
  token,
**  kwargs 
)
private
Get device list for the given host.

Definition at line 112 of file device_tracker.py.

◆ get_scanner()

XiaomiDeviceScanner | None homeassistant.components.xiaomi.device_tracker.get_scanner ( HomeAssistant  hass,
ConfigType  config 
)
Validate the configuration and return a Xiaomi Device Scanner.

Definition at line 32 of file device_tracker.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.xiaomi.device_tracker._LOGGER = logging.getLogger(__name__)
private

Definition at line 21 of file device_tracker.py.

◆ PLATFORM_SCHEMA

homeassistant.components.xiaomi.device_tracker.PLATFORM_SCHEMA
Initial value:
1 = DEVICE_TRACKER_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_USERNAME, default="admin"): cv.string,
5  vol.Required(CONF_PASSWORD): cv.string,
6  }
7 )

Definition at line 23 of file device_tracker.py.