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

Classes

class  Light
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary HA_TO_ZHA_COLOR_MODE = {v: k for k, v in ZHA_TO_HA_COLOR_MODE.items()}
 
string OFF_BRIGHTNESS = "off_brightness"
 
string OFF_WITH_TRANSITION = "off_with_transition"
 
dictionary ZHA_TO_HA_COLOR_MODE
 

Detailed Description

Lights on Zigbee Home Automation networks.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.zha.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Zigbee Home Automation light from config entry.

Definition at line 58 of file light.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 55 of file light.py.

◆ HA_TO_ZHA_COLOR_MODE

dictionary homeassistant.components.zha.light.HA_TO_ZHA_COLOR_MODE = {v: k for k, v in ZHA_TO_HA_COLOR_MODE.items()}

Definition at line 50 of file light.py.

◆ OFF_BRIGHTNESS

string homeassistant.components.zha.light.OFF_BRIGHTNESS = "off_brightness"

Definition at line 52 of file light.py.

◆ OFF_WITH_TRANSITION

string homeassistant.components.zha.light.OFF_WITH_TRANSITION = "off_with_transition"

Definition at line 53 of file light.py.

◆ ZHA_TO_HA_COLOR_MODE

dictionary homeassistant.components.zha.light.ZHA_TO_HA_COLOR_MODE
Initial value:
1 = {
2  ZhaColorMode.UNKNOWN: ColorMode.UNKNOWN,
3  ZhaColorMode.ONOFF: ColorMode.ONOFF,
4  ZhaColorMode.BRIGHTNESS: ColorMode.BRIGHTNESS,
5  ZhaColorMode.COLOR_TEMP: ColorMode.COLOR_TEMP,
6  ZhaColorMode.XY: ColorMode.XY,
7 }

Definition at line 42 of file light.py.