2020-05-14 20:56:04 +00:00
|
|
|
"""Constants for the ozw integration."""
|
2020-05-12 18:07:11 +00:00
|
|
|
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
|
2020-05-21 09:19:20 +00:00
|
|
|
from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN
|
2020-06-30 11:02:30 +00:00
|
|
|
from homeassistant.components.cover import DOMAIN as COVER_DOMAIN
|
2020-05-26 23:48:39 +00:00
|
|
|
from homeassistant.components.fan import DOMAIN as FAN_DOMAIN
|
2020-05-07 21:52:54 +00:00
|
|
|
from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN
|
2020-05-25 21:51:09 +00:00
|
|
|
from homeassistant.components.lock import DOMAIN as LOCK_DOMAIN
|
2020-05-05 02:07:29 +00:00
|
|
|
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
2020-05-03 00:54:16 +00:00
|
|
|
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
|
|
|
|
|
2020-05-14 20:56:04 +00:00
|
|
|
DOMAIN = "ozw"
|
2020-05-03 00:54:16 +00:00
|
|
|
DATA_UNSUBSCRIBE = "unsubscribe"
|
2020-11-09 12:30:19 +00:00
|
|
|
|
|
|
|
CONF_INTEGRATION_CREATED_ADDON = "integration_created_addon"
|
2020-12-02 19:03:29 +00:00
|
|
|
CONF_USE_ADDON = "use_addon"
|
2020-11-09 12:30:19 +00:00
|
|
|
|
2020-05-21 09:19:20 +00:00
|
|
|
PLATFORMS = [
|
|
|
|
BINARY_SENSOR_DOMAIN,
|
2020-06-30 11:02:30 +00:00
|
|
|
COVER_DOMAIN,
|
2020-05-21 09:19:20 +00:00
|
|
|
CLIMATE_DOMAIN,
|
2020-05-26 23:48:39 +00:00
|
|
|
FAN_DOMAIN,
|
2020-05-21 09:19:20 +00:00
|
|
|
LIGHT_DOMAIN,
|
2020-05-25 21:51:09 +00:00
|
|
|
LOCK_DOMAIN,
|
2020-05-21 09:19:20 +00:00
|
|
|
SENSOR_DOMAIN,
|
|
|
|
SWITCH_DOMAIN,
|
|
|
|
]
|
2020-08-12 19:49:40 +00:00
|
|
|
MANAGER = "manager"
|
2021-01-09 14:23:03 +00:00
|
|
|
NODES_VALUES = "nodes_values"
|
2020-05-03 00:54:16 +00:00
|
|
|
|
|
|
|
# MQTT Topics
|
|
|
|
TOPIC_OPENZWAVE = "OpenZWave"
|
|
|
|
|
|
|
|
# Common Attributes
|
2020-07-08 18:59:52 +00:00
|
|
|
ATTR_CONFIG_PARAMETER = "parameter"
|
|
|
|
ATTR_CONFIG_VALUE = "value"
|
2020-05-03 00:54:16 +00:00
|
|
|
ATTR_INSTANCE_ID = "instance_id"
|
|
|
|
ATTR_SECURE = "secure"
|
|
|
|
ATTR_NODE_ID = "node_id"
|
|
|
|
ATTR_SCENE_ID = "scene_id"
|
|
|
|
ATTR_SCENE_LABEL = "scene_label"
|
|
|
|
ATTR_SCENE_VALUE_ID = "scene_value_id"
|
|
|
|
ATTR_SCENE_VALUE_LABEL = "scene_value_label"
|
|
|
|
|
2021-01-09 14:23:03 +00:00
|
|
|
# Config entry data and options
|
|
|
|
MIGRATED = "migrated"
|
|
|
|
|
2020-05-03 00:54:16 +00:00
|
|
|
# Service specific
|
|
|
|
SERVICE_ADD_NODE = "add_node"
|
|
|
|
SERVICE_REMOVE_NODE = "remove_node"
|
2020-10-06 12:05:52 +00:00
|
|
|
SERVICE_CANCEL_COMMAND = "cancel_command"
|
2020-07-08 18:59:52 +00:00
|
|
|
SERVICE_SET_CONFIG_PARAMETER = "set_config_parameter"
|
2020-05-03 00:54:16 +00:00
|
|
|
|
|
|
|
# Home Assistant Events
|
|
|
|
EVENT_SCENE_ACTIVATED = f"{DOMAIN}.scene_activated"
|
|
|
|
|
|
|
|
# Signals
|
|
|
|
SIGNAL_DELETE_ENTITY = f"{DOMAIN}_delete_entity"
|
|
|
|
|
|
|
|
# Discovery Information
|
|
|
|
DISC_COMMAND_CLASS = "command_class"
|
|
|
|
DISC_COMPONENT = "component"
|
|
|
|
DISC_GENERIC_DEVICE_CLASS = "generic_device_class"
|
|
|
|
DISC_GENRE = "genre"
|
|
|
|
DISC_INDEX = "index"
|
|
|
|
DISC_INSTANCE = "instance"
|
|
|
|
DISC_NODE_ID = "node_id"
|
|
|
|
DISC_OPTIONAL = "optional"
|
|
|
|
DISC_PRIMARY = "primary"
|
|
|
|
DISC_SPECIFIC_DEVICE_CLASS = "specific_device_class"
|
|
|
|
DISC_TYPE = "type"
|
|
|
|
DISC_VALUES = "values"
|