2018-04-18 14:27:44 +00:00
|
|
|
"""Constants for the deCONZ component."""
|
|
|
|
import logging
|
|
|
|
|
2022-04-25 06:25:38 +00:00
|
|
|
from pydeconz.models import ResourceType
|
|
|
|
|
2021-12-03 16:51:30 +00:00
|
|
|
from homeassistant.const import Platform
|
2020-10-01 17:06:20 +00:00
|
|
|
|
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
|
|
|
|
2022-01-20 12:46:22 +00:00
|
|
|
HASSIO_CONFIGURATION_URL = "homeassistant://hassio/ingress/core_deconz"
|
|
|
|
|
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-12-03 16:51:30 +00:00
|
|
|
Platform.ALARM_CONTROL_PANEL,
|
|
|
|
Platform.BINARY_SENSOR,
|
2022-02-16 16:55:30 +00:00
|
|
|
Platform.BUTTON,
|
2021-12-03 16:51:30 +00:00
|
|
|
Platform.CLIMATE,
|
|
|
|
Platform.COVER,
|
|
|
|
Platform.FAN,
|
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.LOCK,
|
|
|
|
Platform.NUMBER,
|
|
|
|
Platform.SCENE,
|
2022-08-31 03:33:05 +00:00
|
|
|
Platform.SELECT,
|
2021-12-03 16:51:30 +00:00
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SIREN,
|
|
|
|
Platform.SWITCH,
|
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
|
|
|
# Switches
|
2022-04-25 06:25:38 +00:00
|
|
|
POWER_PLUGS = [
|
|
|
|
ResourceType.ON_OFF_LIGHT.value,
|
|
|
|
ResourceType.ON_OFF_OUTPUT.value,
|
|
|
|
ResourceType.ON_OFF_PLUGIN_UNIT.value,
|
|
|
|
ResourceType.SMART_PLUG.value,
|
|
|
|
]
|
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"
|