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