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

Classes

class  ColorData
 
class  ColorTypeData
 
class  TuyaLightEntity
 
class  TuyaLightEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, TuyaConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 DEFAULT_COLOR_TYPE_DATA
 
 DEFAULT_COLOR_TYPE_DATA_V2
 

Detailed Description

Support for the Tuya lights.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tuya.light.async_setup_entry ( HomeAssistant  hass,
TuyaConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up tuya light dynamically through tuya discovery.

Definition at line 419 of file light.py.

Variable Documentation

◆ DEFAULT_COLOR_TYPE_DATA

homeassistant.components.tuya.light.DEFAULT_COLOR_TYPE_DATA
Initial value:
1 = ColorTypeData(
2  h_type=IntegerTypeData(DPCode.COLOUR_DATA_HSV, min=1, scale=0, max=360, step=1),
3  s_type=IntegerTypeData(DPCode.COLOUR_DATA_HSV, min=1, scale=0, max=255, step=1),
4  v_type=IntegerTypeData(DPCode.COLOUR_DATA_HSV, min=1, scale=0, max=255, step=1),
5 )

Definition at line 40 of file light.py.

◆ DEFAULT_COLOR_TYPE_DATA_V2

homeassistant.components.tuya.light.DEFAULT_COLOR_TYPE_DATA_V2
Initial value:
1 = ColorTypeData(
2  h_type=IntegerTypeData(DPCode.COLOUR_DATA_HSV, min=1, scale=0, max=360, step=1),
3  s_type=IntegerTypeData(DPCode.COLOUR_DATA_HSV, min=1, scale=0, max=1000, step=1),
4  v_type=IntegerTypeData(DPCode.COLOUR_DATA_HSV, min=1, scale=0, max=1000, step=1),
5 )

Definition at line 46 of file light.py.