2018-04-18 14:27:44 +00:00
|
|
|
"""Constants for the deCONZ component."""
|
|
|
|
import logging
|
|
|
|
|
2021-04-20 15:34:11 +00:00
|
|
|
from homeassistant.components.alarm_control_panel import (
|
|
|
|
DOMAIN as ALARM_CONTROL_PANEL_DOMAIN,
|
|
|
|
)
|
2020-10-01 17:06:20 +00:00
|
|
|
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
|
|
|
|
from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN
|
|
|
|
from homeassistant.components.cover import DOMAIN as COVER_DOMAIN
|
2020-10-13 10:57:42 +00:00
|
|
|
from homeassistant.components.fan import DOMAIN as FAN_DOMAIN
|
2020-10-01 17:06:20 +00:00
|
|
|
from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN
|
|
|
|
from homeassistant.components.lock import DOMAIN as LOCK_DOMAIN
|
|
|
|
from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN
|
|
|
|
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
|
|
|
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
|
|
|
|
|
2020-02-01 19:02:57 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
2018-04-18 14:27:44 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "deconz"
|
2018-11-06 09:34:24 +00:00
|
|
|
|
2020-01-17 23:28:34 +00:00
|
|
|
CONF_BRIDGE_ID = "bridgeid"
|
|
|
|
CONF_GROUP_ID_BASE = "group_id_base"
|
2019-09-25 16:56:31 +00:00
|
|
|
|
2018-11-06 09:34:24 +00:00
|
|
|
DEFAULT_PORT = 80
|
2019-04-03 02:23:33 +00:00
|
|
|
DEFAULT_ALLOW_CLIP_SENSOR = False
|
2019-09-05 23:38:00 +00:00
|
|
|
DEFAULT_ALLOW_DECONZ_GROUPS = True
|
2020-09-29 09:07:19 +00:00
|
|
|
DEFAULT_ALLOW_NEW_DEVICES = True
|
2018-05-29 14:09:53 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_ALLOW_CLIP_SENSOR = "allow_clip_sensor"
|
|
|
|
CONF_ALLOW_DECONZ_GROUPS = "allow_deconz_groups"
|
2020-09-29 09:07:19 +00:00
|
|
|
CONF_ALLOW_NEW_DEVICES = "allow_new_devices"
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_MASTER_GATEWAY = "master"
|
|
|
|
|
2021-03-02 20:43:59 +00:00
|
|
|
PLATFORMS = [
|
2021-04-20 15:34:11 +00:00
|
|
|
ALARM_CONTROL_PANEL_DOMAIN,
|
2020-10-01 17:06:20 +00:00
|
|
|
BINARY_SENSOR_DOMAIN,
|
|
|
|
CLIMATE_DOMAIN,
|
|
|
|
COVER_DOMAIN,
|
2020-10-13 10:57:42 +00:00
|
|
|
FAN_DOMAIN,
|
2020-10-01 17:06:20 +00:00
|
|
|
LIGHT_DOMAIN,
|
|
|
|
LOCK_DOMAIN,
|
|
|
|
SCENE_DOMAIN,
|
|
|
|
SENSOR_DOMAIN,
|
|
|
|
SWITCH_DOMAIN,
|
2019-07-31 19:25:30 +00:00
|
|
|
]
|
|
|
|
|
2019-12-08 15:53:34 +00:00
|
|
|
NEW_GROUP = "groups"
|
|
|
|
NEW_LIGHT = "lights"
|
|
|
|
NEW_SCENE = "scenes"
|
|
|
|
NEW_SENSOR = "sensors"
|
2019-02-18 16:43:22 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_DARK = "dark"
|
2021-02-22 06:53:58 +00:00
|
|
|
ATTR_LOCKED = "locked"
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_OFFSET = "offset"
|
|
|
|
ATTR_ON = "on"
|
|
|
|
ATTR_VALVE = "valve"
|
2018-08-01 09:03:08 +00:00
|
|
|
|
2020-10-01 07:50:06 +00:00
|
|
|
# Covers
|
2021-06-23 19:40:34 +00:00
|
|
|
LEVEL_CONTROLLABLE_OUTPUT = "Level controllable output"
|
|
|
|
DAMPERS = [LEVEL_CONTROLLABLE_OUTPUT]
|
|
|
|
WINDOW_COVERING_CONTROLLER = "Window covering controller"
|
|
|
|
WINDOW_COVERING_DEVICE = "Window covering device"
|
|
|
|
WINDOW_COVERS = [WINDOW_COVERING_CONTROLLER, WINDOW_COVERING_DEVICE]
|
2018-10-20 13:13:23 +00:00
|
|
|
COVER_TYPES = DAMPERS + WINDOW_COVERS
|
2018-09-21 17:59:20 +00:00
|
|
|
|
2020-10-13 10:57:42 +00:00
|
|
|
# Fans
|
|
|
|
FANS = ["Fan"]
|
|
|
|
|
2020-10-01 07:50:06 +00:00
|
|
|
# Locks
|
2021-04-27 14:05:03 +00:00
|
|
|
LOCK_TYPES = ["Door Lock", "ZHADoorLock"]
|
2020-10-01 07:50:06 +00:00
|
|
|
|
|
|
|
# Switches
|
2020-02-01 16:08:49 +00:00
|
|
|
POWER_PLUGS = ["On/Off light", "On/Off plug-in unit", "Smart plug"]
|
2018-08-10 17:22:12 +00:00
|
|
|
SIRENS = ["Warning device"]
|
|
|
|
SWITCH_TYPES = POWER_PLUGS + SIRENS
|
2020-01-06 11:34:27 +00:00
|
|
|
|
2020-09-15 19:13:17 +00:00
|
|
|
CONF_ANGLE = "angle"
|
2020-01-06 11:34:27 +00:00
|
|
|
CONF_GESTURE = "gesture"
|