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

Namespaces

 config_flow
 
 const
 
 coordinator
 
 cover
 
 diagnostics
 
 entity
 
 fan
 
 light
 
 sensor
 
 switch
 

Functions

bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 
None remove_stale_devices (HomeAssistant hass, ConfigEntry config_entry, list[Device] devices)
 

Variables

list PLATFORMS
 
string SIGNAL_GW = "tradfri.gw_status"
 
int TIMEOUT_API = 30
 

Detailed Description

Support for IKEA Tradfri.

Function Documentation

◆ async_setup_entry()

bool homeassistant.components.tradfri.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Create a gateway.

Definition at line 48 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.tradfri.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 142 of file __init__.py.

◆ remove_stale_devices()

None homeassistant.components.tradfri.remove_stale_devices ( HomeAssistant  hass,
ConfigEntry  config_entry,
list[Device]   devices 
)
Remove stale devices from device registry.

Definition at line 154 of file __init__.py.

Variable Documentation

◆ PLATFORMS

list homeassistant.components.tradfri.PLATFORMS
Initial value:
1 = [
2  Platform.COVER,
3  Platform.FAN,
4  Platform.LIGHT,
5  Platform.SENSOR,
6  Platform.SWITCH,
7 ]

Definition at line 37 of file __init__.py.

◆ SIGNAL_GW

string homeassistant.components.tradfri.SIGNAL_GW = "tradfri.gw_status"

Definition at line 44 of file __init__.py.

◆ TIMEOUT_API

int homeassistant.components.tradfri.TIMEOUT_API = 30

Definition at line 45 of file __init__.py.