Add Screenlogic set_color_mode service (#49366)

This commit is contained in:
Kevin Worrel 2021-04-21 11:45:50 -07:00 committed by GitHub
parent 99c5087c1e
commit dc24ce491b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 147 additions and 4 deletions

View file

@ -1,7 +1,16 @@
"""Constants for the ScreenLogic integration."""
from screenlogicpy.const import COLOR_MODE
from homeassistant.util import slugify
DOMAIN = "screenlogic"
DEFAULT_SCAN_INTERVAL = 30
MIN_SCAN_INTERVAL = 10
SERVICE_SET_COLOR_MODE = "set_color_mode"
ATTR_COLOR_MODE = "color_mode"
SUPPORTED_COLOR_MODES = {
slugify(name): num for num, name in COLOR_MODE.NAME_FOR_NUM.items()
}
DISCOVERED_GATEWAYS = "_discovered_gateways"