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

Classes

class  LutronCasetaLight
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
def to_hass_level (level)
 
def to_lutron_level (level)
 

Variables

dictionary SUPPORTED_COLOR_MODE_DICT
 
dictionary WARM_DEVICE_TYPES = {DEVICE_TYPE_WHITE_TUNE, DEVICE_TYPE_SPECTRUM_TUNE}
 

Detailed Description

Support for Lutron Caseta lights.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.lutron_caseta.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Lutron Caseta light platform.

Adds dimmers from the Caseta bridge associated with the config_entry as
light entities.

Definition at line 53 of file light.py.

◆ to_hass_level()

def homeassistant.components.lutron_caseta.light.to_hass_level (   level)
Convert the given Lutron (0-100) light level to Home Assistant (0-255).

Definition at line 48 of file light.py.

◆ to_lutron_level()

def homeassistant.components.lutron_caseta.light.to_lutron_level (   level)
Convert the given Home Assistant light level (0-255) to Lutron (0-100).

Definition at line 43 of file light.py.

Variable Documentation

◆ SUPPORTED_COLOR_MODE_DICT

dictionary homeassistant.components.lutron_caseta.light.SUPPORTED_COLOR_MODE_DICT
Initial value:
1 = {
2  DEVICE_TYPE_SPECTRUM_TUNE: {
3  ColorMode.HS,
4  ColorMode.COLOR_TEMP,
5  ColorMode.WHITE,
6  },
7  DEVICE_TYPE_WHITE_TUNE: {ColorMode.COLOR_TEMP},
8 }

Definition at line 31 of file light.py.

◆ WARM_DEVICE_TYPES

dictionary homeassistant.components.lutron_caseta.light.WARM_DEVICE_TYPES = {DEVICE_TYPE_WHITE_TUNE, DEVICE_TYPE_SPECTRUM_TUNE}

Definition at line 40 of file light.py.