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

Classes

class  BTSmartHubScanner
 

Functions

def _create_device (data)
 
BTSmartHubScanner|None get_scanner (HomeAssistant hass, ConfigType config)
 

Variables

 _Device = namedtuple("_Device", ["ip_address", "mac", "host", "status", "name"])
 
 _LOGGER = logging.getLogger(__name__)
 
string CONF_DEFAULT_IP = "192.168.1.254"
 
string CONF_SMARTHUB_MODEL = "smarthub_model"
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for BT Smart Hub (Sometimes referred to as BT Home Hub 6).

Function Documentation

◆ _create_device()

def homeassistant.components.bt_smarthub.device_tracker._create_device (   data)
private
Create new device from the dict.

Definition at line 44 of file device_tracker.py.

◆ get_scanner()

BTSmartHubScanner | None homeassistant.components.bt_smarthub.device_tracker.get_scanner ( HomeAssistant  hass,
ConfigType  config 
)
Return a BT Smart Hub scanner if successful.

Definition at line 34 of file device_tracker.py.

Variable Documentation

◆ _Device

homeassistant.components.bt_smarthub.device_tracker._Device = namedtuple("_Device", ["ip_address", "mac", "host", "status", "name"])
private

Definition at line 54 of file device_tracker.py.

◆ _LOGGER

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

Definition at line 21 of file device_tracker.py.

◆ CONF_DEFAULT_IP

string homeassistant.components.bt_smarthub.device_tracker.CONF_DEFAULT_IP = "192.168.1.254"

Definition at line 23 of file device_tracker.py.

◆ CONF_SMARTHUB_MODEL

string homeassistant.components.bt_smarthub.device_tracker.CONF_SMARTHUB_MODEL = "smarthub_model"

Definition at line 24 of file device_tracker.py.

◆ PLATFORM_SCHEMA

homeassistant.components.bt_smarthub.device_tracker.PLATFORM_SCHEMA
Initial value:
1 = DEVICE_TRACKER_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_HOST, default=CONF_DEFAULT_IP): cv.string,
4  vol.Optional(CONF_SMARTHUB_MODEL): vol.In([1, 2]),
5  }
6 )

Definition at line 26 of file device_tracker.py.