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

Classes

class  SmartThingsLight
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
def convert_scale (value, value_scale, target_scale, round_digits=4)
 
Sequence[str]|None get_capabilities (Sequence[str] capabilities)
 

Detailed Description

Support for lights through the SmartThings cloud API.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.smartthings.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Add lights for a config entry.

Definition at line 30 of file light.py.

◆ convert_scale()

def homeassistant.components.smartthings.light.convert_scale (   value,
  value_scale,
  target_scale,
  round_digits = 4 
)
Convert a value to a different scale.

Definition at line 69 of file light.py.

◆ get_capabilities()

Sequence[str] | None homeassistant.components.smartthings.light.get_capabilities ( Sequence[str]  capabilities)
Return all capabilities supported if minimum required are present.

Definition at line 47 of file light.py.