Home Assistant Unofficial Reference 2024.12.1
light.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.yeelight.light.YeelightAmbientLight
 
class  homeassistant.components.yeelight.light.YeelightBaseLight
 
class  homeassistant.components.yeelight.light.YeelightColorLightSupport
 
class  homeassistant.components.yeelight.light.YeelightColorLightWithNightlightSwitch
 
class  homeassistant.components.yeelight.light.YeelightColorLightWithoutNightlightSwitch
 
class  homeassistant.components.yeelight.light.YeelightColorLightWithoutNightlightSwitchLight
 
class  homeassistant.components.yeelight.light.YeelightGenericLight
 
class  homeassistant.components.yeelight.light.YeelightNightLightMode
 
class  homeassistant.components.yeelight.light.YeelightNightLightModeWithAmbientSupport
 
class  homeassistant.components.yeelight.light.YeelightNightLightModeWithoutBrightnessControl
 
class  homeassistant.components.yeelight.light.YeelightNightLightSupport
 
class  homeassistant.components.yeelight.light.YeelightWhiteTempLightSupport
 
class  homeassistant.components.yeelight.light.YeelightWhiteTempWithoutNightlightSwitch
 
class  homeassistant.components.yeelight.light.YeelightWithAmbientAndNightlight
 
class  homeassistant.components.yeelight.light.YeelightWithAmbientWithoutNightlight
 
class  homeassistant.components.yeelight.light.YeelightWithNightLight
 
class  homeassistant.components.yeelight.light.YeelightWithoutNightlightSwitchMixIn
 

Namespaces

 homeassistant.components.yeelight.light
 

Functions

def homeassistant.components.yeelight.light._async_setup_services (HomeAssistant hass)
 
dict[str, dict[str, Any]] homeassistant.components.yeelight.light._parse_custom_effects (effects_config)
 
def homeassistant.components.yeelight.light._transitions_config_parser (transitions)
 
def homeassistant.components.yeelight.light._YeelightBaseLightT
 
None homeassistant.components.yeelight.light.async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 homeassistant.components.yeelight.light._LOGGER = logging.getLogger(__name__)
 
string homeassistant.components.yeelight.light.ATTR_MINUTES = "minutes"
 
string homeassistant.components.yeelight.light.EFFECT_ALARM = "Alarm"
 
string homeassistant.components.yeelight.light.EFFECT_CANDLE_FLICKER = "Candle Flicker"
 
string homeassistant.components.yeelight.light.EFFECT_CHRISTMAS = "Christmas"
 
string homeassistant.components.yeelight.light.EFFECT_DATE_NIGHT = "Date Night"
 
string homeassistant.components.yeelight.light.EFFECT_DISCO = "Disco"
 
string homeassistant.components.yeelight.light.EFFECT_FACEBOOK = "Facebook"
 
string homeassistant.components.yeelight.light.EFFECT_FAST_RANDOM_LOOP = "Fast Random Loop"
 
string homeassistant.components.yeelight.light.EFFECT_HAPPY_BIRTHDAY = "Happy Birthday"
 
string homeassistant.components.yeelight.light.EFFECT_HOME = "Home"
 
string homeassistant.components.yeelight.light.EFFECT_LSD = "LSD"
 
string homeassistant.components.yeelight.light.EFFECT_MOVIE = "Movie"
 
string homeassistant.components.yeelight.light.EFFECT_NIGHT_MODE = "Night Mode"
 
string homeassistant.components.yeelight.light.EFFECT_POLICE = "Police"
 
string homeassistant.components.yeelight.light.EFFECT_POLICE2 = "Police2"
 
string homeassistant.components.yeelight.light.EFFECT_RANDOM_LOOP = "Random Loop"
 
string homeassistant.components.yeelight.light.EFFECT_RGB = "RGB"
 
string homeassistant.components.yeelight.light.EFFECT_ROMANCE = "Romance"
 
string homeassistant.components.yeelight.light.EFFECT_SLOWDOWN = "Slowdown"
 
string homeassistant.components.yeelight.light.EFFECT_STOP = "Stop"
 
string homeassistant.components.yeelight.light.EFFECT_STROBE = "Strobe epilepsy!"
 
string homeassistant.components.yeelight.light.EFFECT_STROBE_COLOR = "Strobe color"
 
string homeassistant.components.yeelight.light.EFFECT_SUNRISE = "Sunrise"
 
string homeassistant.components.yeelight.light.EFFECT_SUNSET = "Sunset"
 
string homeassistant.components.yeelight.light.EFFECT_TEA_TIME = "Tea Time"
 
string homeassistant.components.yeelight.light.EFFECT_TEMP = "Slow Temp"
 
string homeassistant.components.yeelight.light.EFFECT_TWITTER = "Twitter"
 
string homeassistant.components.yeelight.light.EFFECT_WHATSAPP = "WhatsApp"
 
dictionary homeassistant.components.yeelight.light.EFFECTS_MAP
 
 homeassistant.components.yeelight.light.SERVICE_SCHEMA_SET_COLOR_FLOW_SCENE = YEELIGHT_FLOW_TRANSITION_SCHEMA
 
 homeassistant.components.yeelight.light.SERVICE_SCHEMA_START_FLOW = YEELIGHT_FLOW_TRANSITION_SCHEMA
 
string homeassistant.components.yeelight.light.SERVICE_SET_AUTO_DELAY_OFF_SCENE = "set_auto_delay_off_scene"
 
string homeassistant.components.yeelight.light.SERVICE_SET_COLOR_FLOW_SCENE = "set_color_flow_scene"
 
string homeassistant.components.yeelight.light.SERVICE_SET_COLOR_SCENE = "set_color_scene"
 
string homeassistant.components.yeelight.light.SERVICE_SET_COLOR_TEMP_SCENE = "set_color_temp_scene"
 
string homeassistant.components.yeelight.light.SERVICE_SET_HSV_SCENE = "set_hsv_scene"
 
string homeassistant.components.yeelight.light.SERVICE_SET_MODE = "set_mode"
 
string homeassistant.components.yeelight.light.SERVICE_SET_MUSIC_MODE = "set_music_mode"
 
string homeassistant.components.yeelight.light.SERVICE_START_FLOW = "start_flow"
 
 homeassistant.components.yeelight.light.VALID_BRIGHTNESS = vol.All(vol.Coerce(int), vol.Range(min=1, max=100))
 
 homeassistant.components.yeelight.light.VolDictType
 
list homeassistant.components.yeelight.light.YEELIGHT_COLOR_EFFECT_LIST
 
list homeassistant.components.yeelight.light.YEELIGHT_MONO_EFFECT_LIST
 
list homeassistant.components.yeelight.light.YEELIGHT_TEMP_ONLY_EFFECT_LIST = [EFFECT_TEMP, EFFECT_STOP]