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

Classes

class  DnsmasqUbusDeviceScanner
 
class  OdhcpdUbusDeviceScanner
 
class  UbusDeviceScanner
 

Functions

def _refresh_on_access_denied (func)
 
DeviceScanner|None get_scanner (HomeAssistant hass, ConfigType config)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_DHCP_SOFTWARE = "dhcp_software"
 
string DEFAULT_DHCP_SOFTWARE = "dnsmasq"
 
list DHCP_SOFTWARES = ["dnsmasq", "odhcpd", "none"]
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for OpenWRT (ubus) routers.

Function Documentation

◆ _refresh_on_access_denied()

def homeassistant.components.ubus.device_tracker._refresh_on_access_denied (   func)
private
If remove rebooted, it lost our session so rebuild one and try again.

Definition at line 55 of file device_tracker.py.

◆ get_scanner()

DeviceScanner | None homeassistant.components.ubus.device_tracker.get_scanner ( HomeAssistant  hass,
ConfigType  config 
)
Validate the configuration and return an ubus scanner.

Definition at line 39 of file device_tracker.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 21 of file device_tracker.py.

◆ CONF_DHCP_SOFTWARE

string homeassistant.components.ubus.device_tracker.CONF_DHCP_SOFTWARE = "dhcp_software"

Definition at line 23 of file device_tracker.py.

◆ DEFAULT_DHCP_SOFTWARE

string homeassistant.components.ubus.device_tracker.DEFAULT_DHCP_SOFTWARE = "dnsmasq"

Definition at line 24 of file device_tracker.py.

◆ DHCP_SOFTWARES

list homeassistant.components.ubus.device_tracker.DHCP_SOFTWARES = ["dnsmasq", "odhcpd", "none"]

Definition at line 25 of file device_tracker.py.

◆ PLATFORM_SCHEMA

homeassistant.components.ubus.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_DHCP_SOFTWARE, default=DEFAULT_DHCP_SOFTWARE): vol.In(
7  DHCP_SOFTWARES
8  ),
9  }
10 )

Definition at line 27 of file device_tracker.py.