2018-04-18 16:27:44 +02:00
|
|
|
"""Constants for the deCONZ component."""
|
|
|
|
import logging
|
|
|
|
|
2021-12-03 17:51:30 +01:00
|
|
|
from homeassistant.const import Platform
|
2020-10-01 19:06:20 +02:00
|
|
|
|
2020-02-01 20:02:57 +01:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
2018-04-18 16:27:44 +02:00
|
|
|
|
2019-07-31 12:25:30 -07:00
|
|
|
DOMAIN = "deconz"
|
2018-11-06 10:34:24 +01:00
|
|
|
|
2022-01-20 13:46:22 +01:00
|
|
|
HASSIO_CONFIGURATION_URL = "homeassistant://hassio/ingress/core_deconz"
|
|
|
|
|
2020-01-18 00:28:34 +01:00
|
|
|
CONF_BRIDGE_ID = "bridgeid"
|
|
|
|
CONF_GROUP_ID_BASE = "group_id_base"
|
2019-09-25 18:56:31 +02:00
|
|
|
|
2018-11-06 10:34:24 +01:00
|
|
|
DEFAULT_PORT = 80
|
2019-04-03 04:23:33 +02:00
|
|
|
DEFAULT_ALLOW_CLIP_SENSOR = False
|
2019-09-06 01:38:00 +02:00
|
|
|
DEFAULT_ALLOW_DECONZ_GROUPS = True
|
2020-09-29 11:07:19 +02:00
|
|
|
DEFAULT_ALLOW_NEW_DEVICES = True
|
2018-05-29 16:09:53 +02:00
|
|
|
|
2019-07-31 12:25:30 -07:00
|
|
|
CONF_ALLOW_CLIP_SENSOR = "allow_clip_sensor"
|
|
|
|
CONF_ALLOW_DECONZ_GROUPS = "allow_deconz_groups"
|
2020-09-29 11:07:19 +02:00
|
|
|
CONF_ALLOW_NEW_DEVICES = "allow_new_devices"
|
2019-07-31 12:25:30 -07:00
|
|
|
CONF_MASTER_GATEWAY = "master"
|
|
|
|
|
2021-03-02 21:43:59 +01:00
|
|
|
PLATFORMS = [
|
2021-12-03 17:51:30 +01:00
|
|
|
Platform.ALARM_CONTROL_PANEL,
|
|
|
|
Platform.BINARY_SENSOR,
|
|
|
|
Platform.CLIMATE,
|
|
|
|
Platform.COVER,
|
|
|
|
Platform.FAN,
|
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.LOCK,
|
|
|
|
Platform.NUMBER,
|
|
|
|
Platform.SCENE,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SIREN,
|
|
|
|
Platform.SWITCH,
|
2019-07-31 12:25:30 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
ATTR_DARK = "dark"
|
2021-02-22 07:53:58 +01:00
|
|
|
ATTR_LOCKED = "locked"
|
2019-07-31 12:25:30 -07:00
|
|
|
ATTR_OFFSET = "offset"
|
|
|
|
ATTR_ON = "on"
|
|
|
|
ATTR_VALVE = "valve"
|
2018-08-01 11:03:08 +02:00
|
|
|
|
2020-10-01 09:50:06 +02:00
|
|
|
# Switches
|
2020-02-01 17:08:49 +01:00
|
|
|
POWER_PLUGS = ["On/Off light", "On/Off plug-in unit", "Smart plug"]
|
2020-01-06 12:34:27 +01:00
|
|
|
|
2020-09-15 21:13:17 +02:00
|
|
|
CONF_ANGLE = "angle"
|
2020-01-06 12:34:27 +01:00
|
|
|
CONF_GESTURE = "gesture"
|