Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.zha Namespace Reference

Namespaces

 alarm_control_panel
 
 api
 
 backup
 
 binary_sensor
 
 button
 
 climate
 
 config_flow
 
 const
 
 cover
 
 device_action
 
 device_tracker
 
 device_trigger
 
 diagnostics
 
 entity
 
 fan
 
 helpers
 
 light
 
 lock
 
 logbook
 
 number
 
 radio_manager
 
 repairs
 
 select
 
 sensor
 
 silabs_multiprotocol
 
 siren
 
 switch
 
 update
 
 websocket_api
 

Functions

bool async_migrate_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry config_entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry config_entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CENTICELSIUS = "C-100"
 
 CONFIG_SCHEMA
 
 DEVICE_CONFIG_SCHEMA_ENTRY = vol.Schema({vol.Optional(CONF_TYPE): cv.string})
 
tuple PLATFORMS
 
dictionary ZHA_CONFIG_SCHEMA
 

Detailed Description

Support for Zigbee Home Automation devices.

Function Documentation

◆ async_migrate_entry()

bool homeassistant.components.zha.async_migrate_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Migrate old entry.

Definition at line 250 of file __init__.py.

◆ async_setup()

bool homeassistant.components.zha.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up ZHA from config.

Definition at line 109 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.zha.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Set up ZHA.

Will automatically load components to support devices found on the network.

Definition at line 117 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.zha.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  config_entry 
)
Unload ZHA config entry.

Definition at line 228 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.zha._LOGGER = logging.getLogger(__name__)
private

Definition at line 106 of file __init__.py.

◆ CENTICELSIUS

string homeassistant.components.zha.CENTICELSIUS = "C-100"

Definition at line 103 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.zha.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  DOMAIN: vol.Schema(
4  vol.All(
5  cv.deprecated(CONF_USB_PATH),
6  cv.deprecated(CONF_BAUDRATE),
7  cv.deprecated(CONF_RADIO_TYPE),
8  ZHA_CONFIG_SCHEMA,
9  ),
10  ),
11  },
12  extra=vol.ALLOW_EXTRA,
13 )

Definition at line 69 of file __init__.py.

◆ DEVICE_CONFIG_SCHEMA_ENTRY

homeassistant.components.zha.DEVICE_CONFIG_SCHEMA_ENTRY = vol.Schema({vol.Optional(CONF_TYPE): cv.string})

Definition at line 56 of file __init__.py.

◆ PLATFORMS

tuple homeassistant.components.zha.PLATFORMS
Initial value:
1 = (
2  Platform.ALARM_CONTROL_PANEL,
3  Platform.BINARY_SENSOR,
4  Platform.BUTTON,
5  Platform.CLIMATE,
6  Platform.COVER,
7  Platform.DEVICE_TRACKER,
8  Platform.FAN,
9  Platform.LIGHT,
10  Platform.LOCK,
11  Platform.NUMBER,
12  Platform.SELECT,
13  Platform.SENSOR,
14  Platform.SIREN,
15  Platform.SWITCH,
16  Platform.UPDATE,
17 )

Definition at line 83 of file __init__.py.

◆ ZHA_CONFIG_SCHEMA

dictionary homeassistant.components.zha.ZHA_CONFIG_SCHEMA
Initial value:
1 = {
2  vol.Optional(CONF_BAUDRATE): cv.positive_int,
3  vol.Optional(CONF_DATABASE): cv.string,
4  vol.Optional(CONF_DEVICE_CONFIG, default={}): vol.Schema(
5  {cv.string: DEVICE_CONFIG_SCHEMA_ENTRY}
6  ),
7  vol.Optional(CONF_ENABLE_QUIRKS, default=True): cv.boolean,
8  vol.Optional(CONF_ZIGPY): dict,
9  vol.Optional(CONF_RADIO_TYPE): cv.enum(RadioType),
10  vol.Optional(CONF_USB_PATH): cv.string,
11  vol.Optional(CONF_CUSTOM_QUIRKS_PATH): cv.isdir,
12 }

Definition at line 57 of file __init__.py.