2021-01-10 23:08:25 +00:00
|
|
|
"""Constants for the Z-Wave JS integration."""
|
2021-01-27 07:56:16 +00:00
|
|
|
CONF_INTEGRATION_CREATED_ADDON = "integration_created_addon"
|
|
|
|
CONF_USE_ADDON = "use_addon"
|
2021-01-10 23:08:25 +00:00
|
|
|
DOMAIN = "zwave_js"
|
2021-01-22 23:11:32 +00:00
|
|
|
PLATFORMS = [
|
|
|
|
"binary_sensor",
|
|
|
|
"climate",
|
|
|
|
"cover",
|
|
|
|
"fan",
|
|
|
|
"light",
|
|
|
|
"lock",
|
2021-02-24 18:39:35 +00:00
|
|
|
"number",
|
2021-01-22 23:11:32 +00:00
|
|
|
"sensor",
|
|
|
|
"switch",
|
|
|
|
]
|
2021-01-10 23:08:25 +00:00
|
|
|
|
|
|
|
DATA_CLIENT = "client"
|
|
|
|
DATA_UNSUBSCRIBE = "unsubs"
|
2021-01-18 15:08:52 +00:00
|
|
|
|
|
|
|
EVENT_DEVICE_ADDED_TO_REGISTRY = f"{DOMAIN}_device_added_to_registry"
|
2021-02-01 22:47:58 +00:00
|
|
|
|
|
|
|
# constants for events
|
|
|
|
ZWAVE_JS_EVENT = f"{DOMAIN}_event"
|
|
|
|
ATTR_NODE_ID = "node_id"
|
|
|
|
ATTR_HOME_ID = "home_id"
|
|
|
|
ATTR_ENDPOINT = "endpoint"
|
|
|
|
ATTR_LABEL = "label"
|
|
|
|
ATTR_VALUE = "value"
|
2021-03-02 21:10:30 +00:00
|
|
|
ATTR_VALUE_RAW = "value_raw"
|
2021-02-01 22:47:58 +00:00
|
|
|
ATTR_COMMAND_CLASS = "command_class"
|
|
|
|
ATTR_COMMAND_CLASS_NAME = "command_class_name"
|
|
|
|
ATTR_TYPE = "type"
|
|
|
|
ATTR_DEVICE_ID = "device_id"
|
|
|
|
ATTR_PROPERTY_NAME = "property_name"
|
|
|
|
ATTR_PROPERTY_KEY_NAME = "property_key_name"
|
2021-03-02 21:10:30 +00:00
|
|
|
ATTR_PROPERTY = "property"
|
|
|
|
ATTR_PROPERTY_KEY = "property_key"
|
2021-02-02 08:37:42 +00:00
|
|
|
ATTR_PARAMETERS = "parameters"
|
2021-02-23 12:24:07 +00:00
|
|
|
|
2021-02-23 16:35:11 +00:00
|
|
|
# service constants
|
|
|
|
SERVICE_SET_CONFIG_PARAMETER = "set_config_parameter"
|
|
|
|
|
|
|
|
ATTR_CONFIG_PARAMETER = "parameter"
|
|
|
|
ATTR_CONFIG_PARAMETER_BITMASK = "bitmask"
|
|
|
|
ATTR_CONFIG_VALUE = "value"
|
|
|
|
|
2021-02-23 23:58:04 +00:00
|
|
|
SERVICE_REFRESH_VALUE = "refresh_value"
|
|
|
|
|
|
|
|
ATTR_REFRESH_ALL_VALUES = "refresh_all_values"
|
|
|
|
|
2021-02-23 12:24:07 +00:00
|
|
|
ADDON_SLUG = "core_zwave_js"
|