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

Classes

class  DdWrtDeviceScanner
 

Functions

def _parse_ddwrt_response (data_str)
 
DdWrtDeviceScanner|None get_scanner (HomeAssistant hass, ConfigType config)
 

Variables

 _DDWRT_DATA_REGEX = re.compile(r"\{(\w+)::([^\}]*)\}")
 
 _LOGGER = logging.getLogger(__name__)
 
 _MAC_REGEX = re.compile(r"(([0-9A-Fa-f]{1,2}\:){5}[0-9A-Fa-f]{1,2})")
 
string CONF_WIRELESS_ONLY = "wireless_only"
 
bool DEFAULT_SSL = False
 
bool DEFAULT_VERIFY_SSL = True
 
bool DEFAULT_WIRELESS_ONLY = True
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for DD-WRT routers.

Function Documentation

◆ _parse_ddwrt_response()

def homeassistant.components.ddwrt.device_tracker._parse_ddwrt_response (   data_str)
private
Parse the DD-WRT data format.

Definition at line 168 of file device_tracker.py.

◆ get_scanner()

DdWrtDeviceScanner | None homeassistant.components.ddwrt.device_tracker.get_scanner ( HomeAssistant  hass,
ConfigType  config 
)
Validate the configuration and return a DD-WRT scanner.

Definition at line 50 of file device_tracker.py.

Variable Documentation

◆ _DDWRT_DATA_REGEX

homeassistant.components.ddwrt.device_tracker._DDWRT_DATA_REGEX = re.compile(r"\{(\w+)::([^\}]*)\}")
private

Definition at line 30 of file device_tracker.py.

◆ _LOGGER

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

Definition at line 28 of file device_tracker.py.

◆ _MAC_REGEX

homeassistant.components.ddwrt.device_tracker._MAC_REGEX = re.compile(r"(([0-9A-Fa-f]{1,2}\:){5}[0-9A-Fa-f]{1,2})")
private

Definition at line 31 of file device_tracker.py.

◆ CONF_WIRELESS_ONLY

string homeassistant.components.ddwrt.device_tracker.CONF_WIRELESS_ONLY = "wireless_only"

Definition at line 35 of file device_tracker.py.

◆ DEFAULT_SSL

bool homeassistant.components.ddwrt.device_tracker.DEFAULT_SSL = False

Definition at line 33 of file device_tracker.py.

◆ DEFAULT_VERIFY_SSL

bool homeassistant.components.ddwrt.device_tracker.DEFAULT_VERIFY_SSL = True

Definition at line 34 of file device_tracker.py.

◆ DEFAULT_WIRELESS_ONLY

bool homeassistant.components.ddwrt.device_tracker.DEFAULT_WIRELESS_ONLY = True

Definition at line 36 of file device_tracker.py.

◆ PLATFORM_SCHEMA

homeassistant.components.ddwrt.device_tracker.PLATFORM_SCHEMA
Initial value:
1 = DEVICE_TRACKER_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Required(CONF_PASSWORD): cv.string,
5  vol.Required(CONF_USERNAME): cv.string,
6  vol.Optional(CONF_SSL, default=DEFAULT_SSL): cv.boolean,
7  vol.Optional(CONF_VERIFY_SSL, default=DEFAULT_VERIFY_SSL): cv.boolean,
8  vol.Optional(CONF_WIRELESS_ONLY, default=DEFAULT_WIRELESS_ONLY): cv.boolean,
9  }
10 )

Definition at line 38 of file device_tracker.py.