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

Classes

class  TPLinkLightEffectEntity
 
class  TPLinkLightEntity
 

Functions

dict[str, Any] _async_build_base_effect (int brightness, int duration, int transition, list[int] segments)
 
None async_setup_entry (HomeAssistant hass, TPLinkConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 default
 
 HSV_SEQUENCE = vol.ExactSequence((HUE, SAT, VAL))
 
 HUE = vol.Range(min=0, max=360)
 
 SAT = vol.Range(min=0, max=100)
 
string SERVICE_RANDOM_EFFECT = "random_effect"
 
string SERVICE_SEQUENCE_EFFECT = "sequence_effect"
 
 TRANSITION = vol.Range(min=0, max=6000)
 
 VAL = vol.Range(min=0, max=100)
 
 VolDictType
 

Detailed Description

Support for TPLink lights.

Function Documentation

◆ _async_build_base_effect()

dict[str, Any] homeassistant.components.tplink.light._async_build_base_effect ( int  brightness,
int  duration,
int  transition,
list[int]  segments 
)
private

Definition at line 114 of file light.py.

◆ async_setup_entry()

None homeassistant.components.tplink.light.async_setup_entry ( HomeAssistant  hass,
TPLinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up switches.

Definition at line 133 of file light.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 36 of file light.py.

◆ default

homeassistant.components.tplink.light.default

Definition at line 48 of file light.py.

◆ HSV_SEQUENCE

homeassistant.components.tplink.light.HSV_SEQUENCE = vol.ExactSequence((HUE, SAT, VAL))

Definition at line 45 of file light.py.

◆ HUE

homeassistant.components.tplink.light.HUE = vol.Range(min=0, max=360)

Definition at line 41 of file light.py.

◆ SAT

homeassistant.components.tplink.light.SAT = vol.Range(min=0, max=100)

Definition at line 42 of file light.py.

◆ SERVICE_RANDOM_EFFECT

string homeassistant.components.tplink.light.SERVICE_RANDOM_EFFECT = "random_effect"

Definition at line 38 of file light.py.

◆ SERVICE_SEQUENCE_EFFECT

string homeassistant.components.tplink.light.SERVICE_SEQUENCE_EFFECT = "sequence_effect"

Definition at line 39 of file light.py.

◆ TRANSITION

homeassistant.components.tplink.light.TRANSITION = vol.Range(min=0, max=6000)

Definition at line 44 of file light.py.

◆ VAL

homeassistant.components.tplink.light.VAL = vol.Range(min=0, max=100)

Definition at line 43 of file light.py.

◆ VolDictType

homeassistant.components.tplink.light.VolDictType

Definition at line 47 of file light.py.