2019-11-06 22:55:39 +00:00
|
|
|
"""Constants for the WLED integration."""
|
2021-06-09 18:15:46 +00:00
|
|
|
from datetime import timedelta
|
|
|
|
import logging
|
2019-11-06 22:55:39 +00:00
|
|
|
|
|
|
|
# Integration domain
|
|
|
|
DOMAIN = "wled"
|
|
|
|
|
2021-06-09 18:15:46 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
SCAN_INTERVAL = timedelta(seconds=5)
|
|
|
|
|
2019-11-06 22:55:39 +00:00
|
|
|
# Attributes
|
|
|
|
ATTR_COLOR_PRIMARY = "color_primary"
|
|
|
|
ATTR_DURATION = "duration"
|
2019-11-08 08:48:46 +00:00
|
|
|
ATTR_FADE = "fade"
|
2019-11-06 22:55:39 +00:00
|
|
|
ATTR_INTENSITY = "intensity"
|
2019-11-09 19:18:41 +00:00
|
|
|
ATTR_LED_COUNT = "led_count"
|
|
|
|
ATTR_MAX_POWER = "max_power"
|
2019-11-06 22:55:39 +00:00
|
|
|
ATTR_ON = "on"
|
|
|
|
ATTR_PALETTE = "palette"
|
|
|
|
ATTR_PLAYLIST = "playlist"
|
|
|
|
ATTR_PRESET = "preset"
|
2020-03-23 20:21:35 +00:00
|
|
|
ATTR_REVERSE = "reverse"
|
2019-11-06 22:55:39 +00:00
|
|
|
ATTR_SEGMENT_ID = "segment_id"
|
|
|
|
ATTR_SOFTWARE_VERSION = "sw_version"
|
|
|
|
ATTR_SPEED = "speed"
|
|
|
|
ATTR_TARGET_BRIGHTNESS = "target_brightness"
|
2019-11-08 08:48:46 +00:00
|
|
|
ATTR_UDP_PORT = "udp_port"
|
2019-11-09 19:18:41 +00:00
|
|
|
|
|
|
|
# Units of measurement
|
|
|
|
CURRENT_MA = "mA"
|
2020-03-23 20:21:35 +00:00
|
|
|
|
|
|
|
# Services
|
|
|
|
SERVICE_EFFECT = "effect"
|
2020-10-25 11:44:26 +00:00
|
|
|
SERVICE_PRESET = "preset"
|