Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.xiaomi_aqara.switch Namespace Reference

Classes

class  XiaomiGenericSwitch
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_IN_USE = "in_use"
 
string ATTR_LOAD_POWER = "load_power"
 
string ATTR_POWER_CONSUMED = "power_consumed"
 
string ENERGY_CONSUMED = "energy_consumed"
 
string IN_USE = "inuse"
 
string LOAD_POWER = "load_power"
 
string POWER_CONSUMED = "power_consumed"
 

Detailed Description

Support for Xiaomi Aqara binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.xiaomi_aqara.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Perform the setup for Xiaomi devices.

Definition at line 29 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.xiaomi_aqara.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 14 of file switch.py.

◆ ATTR_IN_USE

string homeassistant.components.xiaomi_aqara.switch.ATTR_IN_USE = "in_use"

Definition at line 21 of file switch.py.

◆ ATTR_LOAD_POWER

string homeassistant.components.xiaomi_aqara.switch.ATTR_LOAD_POWER = "load_power"

Definition at line 17 of file switch.py.

◆ ATTR_POWER_CONSUMED

string homeassistant.components.xiaomi_aqara.switch.ATTR_POWER_CONSUMED = "power_consumed"

Definition at line 20 of file switch.py.

◆ ENERGY_CONSUMED

string homeassistant.components.xiaomi_aqara.switch.ENERGY_CONSUMED = "energy_consumed"

Definition at line 25 of file switch.py.

◆ IN_USE

string homeassistant.components.xiaomi_aqara.switch.IN_USE = "inuse"

Definition at line 26 of file switch.py.

◆ LOAD_POWER

string homeassistant.components.xiaomi_aqara.switch.LOAD_POWER = "load_power"

Definition at line 23 of file switch.py.

◆ POWER_CONSUMED

string homeassistant.components.xiaomi_aqara.switch.POWER_CONSUMED = "power_consumed"

Definition at line 24 of file switch.py.