Home Assistant Unofficial Reference 2024.12.1
light.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.template.light.LightTemplate
 

Namespaces

 homeassistant.components.template.light
 

Functions

def homeassistant.components.template.light._async_create_entities (hass, config)
 
None homeassistant.components.template.light.async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 homeassistant.components.template.light._LOGGER = logging.getLogger(__name__)
 
list homeassistant.components.template.light._VALID_STATES = [STATE_ON, STATE_OFF, "true", "false"]
 
string homeassistant.components.template.light.CONF_COLOR_ACTION = "set_color"
 
string homeassistant.components.template.light.CONF_COLOR_TEMPLATE = "color_template"
 
string homeassistant.components.template.light.CONF_EFFECT_ACTION = "set_effect"
 
string homeassistant.components.template.light.CONF_EFFECT_LIST_TEMPLATE = "effect_list_template"
 
string homeassistant.components.template.light.CONF_EFFECT_TEMPLATE = "effect_template"
 
string homeassistant.components.template.light.CONF_HS_ACTION = "set_hs"
 
string homeassistant.components.template.light.CONF_HS_TEMPLATE = "hs_template"
 
string homeassistant.components.template.light.CONF_LEVEL_ACTION = "set_level"
 
string homeassistant.components.template.light.CONF_LEVEL_TEMPLATE = "level_template"
 
string homeassistant.components.template.light.CONF_MAX_MIREDS_TEMPLATE = "max_mireds_template"
 
string homeassistant.components.template.light.CONF_MIN_MIREDS_TEMPLATE = "min_mireds_template"
 
string homeassistant.components.template.light.CONF_OFF_ACTION = "turn_off"
 
string homeassistant.components.template.light.CONF_ON_ACTION = "turn_on"
 
string homeassistant.components.template.light.CONF_RGB_ACTION = "set_rgb"
 
string homeassistant.components.template.light.CONF_RGB_TEMPLATE = "rgb_template"
 
string homeassistant.components.template.light.CONF_RGBW_ACTION = "set_rgbw"
 
string homeassistant.components.template.light.CONF_RGBW_TEMPLATE = "rgbw_template"
 
string homeassistant.components.template.light.CONF_RGBWW_ACTION = "set_rgbww"
 
string homeassistant.components.template.light.CONF_RGBWW_TEMPLATE = "rgbww_template"
 
string homeassistant.components.template.light.CONF_SUPPORTS_TRANSITION = "supports_transition_template"
 
string homeassistant.components.template.light.CONF_TEMPERATURE_ACTION = "set_temperature"
 
string homeassistant.components.template.light.CONF_TEMPERATURE_TEMPLATE = "temperature_template"
 
string homeassistant.components.template.light.CONF_WHITE_VALUE_ACTION = "set_white_value"
 
string homeassistant.components.template.light.CONF_WHITE_VALUE_TEMPLATE = "white_value_template"
 
 homeassistant.components.template.light.LIGHT_SCHEMA
 
 homeassistant.components.template.light.PLATFORM_SCHEMA