core/homeassistant/components/lifx/const.py

44 lines
794 B
Python

"""Const for LIFX."""
import logging
DOMAIN = "lifx"
TARGET_ANY = "00:00:00:00:00:00"
DISCOVERY_INTERVAL = 10
MESSAGE_TIMEOUT = 1.65
MESSAGE_RETRIES = 5
OVERALL_TIMEOUT = 9
UNAVAILABLE_GRACE = 90
CONF_SERIAL = "serial"
IDENTIFY_WAVEFORM = {
"transient": True,
"color": [0, 0, 1, 3500],
"skew_ratio": 0,
"period": 1000,
"cycles": 3,
"waveform": 1,
"set_hue": True,
"set_saturation": True,
"set_brightness": True,
"set_kelvin": True,
}
IDENTIFY = "identify"
RESTART = "restart"
ATTR_DURATION = "duration"
ATTR_INDICATION = "indication"
ATTR_INFRARED = "infrared"
ATTR_POWER = "power"
ATTR_REMAINING = "remaining"
ATTR_ZONES = "zones"
HEV_CYCLE_STATE = "hev_cycle_state"
DATA_LIFX_MANAGER = "lifx_manager"
_LOGGER = logging.getLogger(__package__)