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

Classes

class  LutronLight
 

Functions

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

Detailed Description

Support for Lutron lights.

Function Documentation

◆ async_setup_entry()

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

Adds dimmers from the Main Repeater associated with the config_entry as
light entities.

Definition at line 26 of file light.py.

◆ to_hass_level()

def homeassistant.components.lutron.light.to_hass_level (   level)
Convert the given Lutron (0.0-100.0) light level to Home Assistant (0-255).

Definition at line 52 of file light.py.

◆ to_lutron_level()

def homeassistant.components.lutron.light.to_lutron_level (   level)
Convert the given Home Assistant light level (0-255) to Lutron (0.0-100.0).

Definition at line 47 of file light.py.