Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.yeelight.const Namespace Reference

Variables

string ACTION_OFF = "off"
 
string ACTION_RECOVER = "recover"
 
string ACTION_STAY = "stay"
 
int ACTIVE_COLOR_FLOWING = 1
 
int ACTIVE_MODE_NIGHTLIGHT = 1
 
string ATTR_ACTION = "action"
 
string ATTR_COUNT = "count"
 
string ATTR_MODE_MUSIC = "music_mode"
 
string ATTR_TRANSITIONS = "transitions"
 
string CONF_CUSTOM_EFFECTS = "custom_effects"
 
string CONF_DETECTED_MODEL = "detected_model"
 
string CONF_FLOW_PARAMS = "flow_params"
 
string CONF_MODE_MUSIC = "use_music_mode"
 
string CONF_NIGHTLIGHT_SWITCH = "nightlight_switch"
 
string CONF_NIGHTLIGHT_SWITCH_TYPE = "nightlight_switch_type"
 
string CONF_SAVE_ON_CHANGE = "save_on_change"
 
string CONF_TRANSITION = "transition"
 
string DATA_CONFIG_ENTRIES = "config_entries"
 
string DATA_CUSTOM_EFFECTS = "custom_effects"
 
string DATA_DEVICE = "device"
 
string DATA_PLATFORMS_LOADED = "platforms_loaded"
 
string DATA_REMOVE_INIT_DISPATCHER = "remove_init_dispatcher"
 
string DATA_UPDATED = "yeelight_{}_data_updated"
 
bool DEFAULT_MODE_MUSIC = False
 
string DEFAULT_NAME = "Yeelight"
 
bool DEFAULT_NIGHTLIGHT_SWITCH = False
 
bool DEFAULT_SAVE_ON_CHANGE = False
 
int DEFAULT_TRANSITION = 350
 
int DISCOVERY_ATTEMPTS = 3
 
 DISCOVERY_INTERVAL = timedelta(seconds=60)
 
 DISCOVERY_SEARCH_INTERVAL = timedelta(seconds=2)
 
int DISCOVERY_TIMEOUT = 8
 
string DOMAIN = "yeelight"
 
dictionary MODELS_WITH_DELAYED_ON_TRANSITION
 
string NIGHTLIGHT_SWITCH_TYPE_LIGHT = "light"
 
list PLATFORMS = [Platform.BINARY_SENSOR, Platform.LIGHT]
 
int POWER_STATE_CHANGE_TIME = 1
 
string SSDP_ST = "wifi_bulb"
 
tuple SSDP_TARGET = ("239.255.255.250", 1982)
 
float STATE_CHANGE_TIME = 0.40
 
list UPDATE_REQUEST_PROPERTIES
 
string YEELIGHT_HSV_TRANSACTION = "HSVTransition"
 
string YEELIGHT_RGB_TRANSITION = "RGBTransition"
 
string YEELIGHT_SLEEP_TRANSACTION = "SleepTransition"
 
string YEELIGHT_TEMPERATURE_TRANSACTION = "TemperatureTransition"
 

Detailed Description

Support for Xiaomi Yeelight WiFi color bulb.

Variable Documentation

◆ ACTION_OFF

string homeassistant.components.yeelight.const.ACTION_OFF = "off"

Definition at line 59 of file const.py.

◆ ACTION_RECOVER

string homeassistant.components.yeelight.const.ACTION_RECOVER = "recover"

Definition at line 57 of file const.py.

◆ ACTION_STAY

string homeassistant.components.yeelight.const.ACTION_STAY = "stay"

Definition at line 58 of file const.py.

◆ ACTIVE_COLOR_FLOWING

int homeassistant.components.yeelight.const.ACTIVE_COLOR_FLOWING = 1

Definition at line 62 of file const.py.

◆ ACTIVE_MODE_NIGHTLIGHT

int homeassistant.components.yeelight.const.ACTIVE_MODE_NIGHTLIGHT = 1

Definition at line 61 of file const.py.

◆ ATTR_ACTION

string homeassistant.components.yeelight.const.ATTR_ACTION = "action"

Definition at line 53 of file const.py.

◆ ATTR_COUNT

string homeassistant.components.yeelight.const.ATTR_COUNT = "count"

Definition at line 52 of file const.py.

◆ ATTR_MODE_MUSIC

string homeassistant.components.yeelight.const.ATTR_MODE_MUSIC = "music_mode"

Definition at line 55 of file const.py.

◆ ATTR_TRANSITIONS

string homeassistant.components.yeelight.const.ATTR_TRANSITIONS = "transitions"

Definition at line 54 of file const.py.

◆ CONF_CUSTOM_EFFECTS

string homeassistant.components.yeelight.const.CONF_CUSTOM_EFFECTS = "custom_effects"

Definition at line 42 of file const.py.

◆ CONF_DETECTED_MODEL

string homeassistant.components.yeelight.const.CONF_DETECTED_MODEL = "detected_model"

Definition at line 36 of file const.py.

◆ CONF_FLOW_PARAMS

string homeassistant.components.yeelight.const.CONF_FLOW_PARAMS = "flow_params"

Definition at line 41 of file const.py.

◆ CONF_MODE_MUSIC

string homeassistant.components.yeelight.const.CONF_MODE_MUSIC = "use_music_mode"

Definition at line 40 of file const.py.

◆ CONF_NIGHTLIGHT_SWITCH

string homeassistant.components.yeelight.const.CONF_NIGHTLIGHT_SWITCH = "nightlight_switch"

Definition at line 44 of file const.py.

◆ CONF_NIGHTLIGHT_SWITCH_TYPE

string homeassistant.components.yeelight.const.CONF_NIGHTLIGHT_SWITCH_TYPE = "nightlight_switch_type"

Definition at line 43 of file const.py.

◆ CONF_SAVE_ON_CHANGE

string homeassistant.components.yeelight.const.CONF_SAVE_ON_CHANGE = "save_on_change"

Definition at line 39 of file const.py.

◆ CONF_TRANSITION

string homeassistant.components.yeelight.const.CONF_TRANSITION = "transition"

Definition at line 37 of file const.py.

◆ DATA_CONFIG_ENTRIES

string homeassistant.components.yeelight.const.DATA_CONFIG_ENTRIES = "config_entries"

Definition at line 46 of file const.py.

◆ DATA_CUSTOM_EFFECTS

string homeassistant.components.yeelight.const.DATA_CUSTOM_EFFECTS = "custom_effects"

Definition at line 47 of file const.py.

◆ DATA_DEVICE

string homeassistant.components.yeelight.const.DATA_DEVICE = "device"

Definition at line 48 of file const.py.

◆ DATA_PLATFORMS_LOADED

string homeassistant.components.yeelight.const.DATA_PLATFORMS_LOADED = "platforms_loaded"

Definition at line 50 of file const.py.

◆ DATA_REMOVE_INIT_DISPATCHER

string homeassistant.components.yeelight.const.DATA_REMOVE_INIT_DISPATCHER = "remove_init_dispatcher"

Definition at line 49 of file const.py.

◆ DATA_UPDATED

string homeassistant.components.yeelight.const.DATA_UPDATED = "yeelight_{}_data_updated"

Definition at line 28 of file const.py.

◆ DEFAULT_MODE_MUSIC

bool homeassistant.components.yeelight.const.DEFAULT_MODE_MUSIC = False

Definition at line 32 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.yeelight.const.DEFAULT_NAME = "Yeelight"

Definition at line 30 of file const.py.

◆ DEFAULT_NIGHTLIGHT_SWITCH

bool homeassistant.components.yeelight.const.DEFAULT_NIGHTLIGHT_SWITCH = False

Definition at line 34 of file const.py.

◆ DEFAULT_SAVE_ON_CHANGE

bool homeassistant.components.yeelight.const.DEFAULT_SAVE_ON_CHANGE = False

Definition at line 33 of file const.py.

◆ DEFAULT_TRANSITION

int homeassistant.components.yeelight.const.DEFAULT_TRANSITION = 350

Definition at line 31 of file const.py.

◆ DISCOVERY_ATTEMPTS

int homeassistant.components.yeelight.const.DISCOVERY_ATTEMPTS = 3

Definition at line 70 of file const.py.

◆ DISCOVERY_INTERVAL

homeassistant.components.yeelight.const.DISCOVERY_INTERVAL = timedelta(seconds=60)

Definition at line 67 of file const.py.

◆ DISCOVERY_SEARCH_INTERVAL

homeassistant.components.yeelight.const.DISCOVERY_SEARCH_INTERVAL = timedelta(seconds=2)

Definition at line 71 of file const.py.

◆ DISCOVERY_TIMEOUT

int homeassistant.components.yeelight.const.DISCOVERY_TIMEOUT = 8

Definition at line 72 of file const.py.

◆ DOMAIN

string homeassistant.components.yeelight.const.DOMAIN = "yeelight"

Definition at line 7 of file const.py.

◆ MODELS_WITH_DELAYED_ON_TRANSITION

dictionary homeassistant.components.yeelight.const.MODELS_WITH_DELAYED_ON_TRANSITION
Initial value:
1 = {
2  "color", # YLDP02YL
3 }

Definition at line 24 of file const.py.

◆ NIGHTLIGHT_SWITCH_TYPE_LIGHT

string homeassistant.components.yeelight.const.NIGHTLIGHT_SWITCH_TYPE_LIGHT = "light"

Definition at line 65 of file const.py.

◆ PLATFORMS

list homeassistant.components.yeelight.const.PLATFORMS = [Platform.BINARY_SENSOR, Platform.LIGHT]

Definition at line 104 of file const.py.

◆ POWER_STATE_CHANGE_TIME

int homeassistant.components.yeelight.const.POWER_STATE_CHANGE_TIME = 1

Definition at line 11 of file const.py.

◆ SSDP_ST

string homeassistant.components.yeelight.const.SSDP_ST = "wifi_bulb"

Definition at line 69 of file const.py.

◆ SSDP_TARGET

tuple homeassistant.components.yeelight.const.SSDP_TARGET = ("239.255.255.250", 1982)

Definition at line 68 of file const.py.

◆ STATE_CHANGE_TIME

float homeassistant.components.yeelight.const.STATE_CHANGE_TIME = 0.40

Definition at line 10 of file const.py.

◆ UPDATE_REQUEST_PROPERTIES

list homeassistant.components.yeelight.const.UPDATE_REQUEST_PROPERTIES
Initial value:
1 = [
2  "power",
3  "main_power",
4  "bright",
5  "ct",
6  "rgb",
7  "hue",
8  "sat",
9  "color_mode",
10  "flowing",
11  "bg_power",
12  "bg_lmode",
13  "bg_flowing",
14  "bg_ct",
15  "bg_bright",
16  "bg_hue",
17  "bg_sat",
18  "bg_rgb",
19  "nl_br",
20  "active_mode",
21 ]

Definition at line 81 of file const.py.

◆ YEELIGHT_HSV_TRANSACTION

string homeassistant.components.yeelight.const.YEELIGHT_HSV_TRANSACTION = "HSVTransition"

Definition at line 76 of file const.py.

◆ YEELIGHT_RGB_TRANSITION

string homeassistant.components.yeelight.const.YEELIGHT_RGB_TRANSITION = "RGBTransition"

Definition at line 75 of file const.py.

◆ YEELIGHT_SLEEP_TRANSACTION

string homeassistant.components.yeelight.const.YEELIGHT_SLEEP_TRANSACTION = "SleepTransition"

Definition at line 78 of file const.py.

◆ YEELIGHT_TEMPERATURE_TRANSACTION

string homeassistant.components.yeelight.const.YEELIGHT_TEMPERATURE_TRANSACTION = "TemperatureTransition"

Definition at line 77 of file const.py.