2021-01-10 23:08:25 +00:00
|
|
|
"""Constants for the Z-Wave JS integration."""
|
2021-03-02 22:22:42 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
CONF_ADDON_DEVICE = "device"
|
2021-06-24 11:15:42 +00:00
|
|
|
CONF_ADDON_EMULATE_HARDWARE = "emulate_hardware"
|
|
|
|
CONF_ADDON_LOG_LEVEL = "log_level"
|
2021-03-02 22:22:42 +00:00
|
|
|
CONF_ADDON_NETWORK_KEY = "network_key"
|
2021-01-27 07:56:16 +00:00
|
|
|
CONF_INTEGRATION_CREATED_ADDON = "integration_created_addon"
|
2021-03-02 22:22:42 +00:00
|
|
|
CONF_NETWORK_KEY = "network_key"
|
|
|
|
CONF_USB_PATH = "usb_path"
|
2021-01-27 07:56:16 +00:00
|
|
|
CONF_USE_ADDON = "use_addon"
|
2021-04-21 01:40:54 +00:00
|
|
|
CONF_DATA_COLLECTION_OPTED_IN = "data_collection_opted_in"
|
2021-01-10 23:08:25 +00:00
|
|
|
DOMAIN = "zwave_js"
|
|
|
|
|
|
|
|
DATA_CLIENT = "client"
|
2021-04-13 00:26:49 +00:00
|
|
|
DATA_PLATFORM_SETUP = "platform_setup"
|
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
|
|
|
|
2021-03-02 22:22:42 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
|
2021-02-01 22:47:58 +00:00
|
|
|
# constants for events
|
2021-03-29 20:28:55 +00:00
|
|
|
ZWAVE_JS_VALUE_NOTIFICATION_EVENT = f"{DOMAIN}_value_notification"
|
|
|
|
ZWAVE_JS_NOTIFICATION_EVENT = f"{DOMAIN}_notification"
|
2021-04-28 08:22:54 +00:00
|
|
|
ZWAVE_JS_VALUE_UPDATED_EVENT = f"{DOMAIN}_value_updated"
|
2021-02-01 22:47:58 +00:00
|
|
|
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_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-03-29 20:28:55 +00:00
|
|
|
ATTR_EVENT = "event"
|
|
|
|
ATTR_EVENT_LABEL = "event_label"
|
|
|
|
ATTR_EVENT_TYPE = "event_type"
|
|
|
|
ATTR_EVENT_DATA = "event_data"
|
|
|
|
ATTR_DATA_TYPE = "data_type"
|
2021-03-30 09:13:48 +00:00
|
|
|
ATTR_WAIT_FOR_RESULT = "wait_for_result"
|
2021-07-20 08:31:12 +00:00
|
|
|
ATTR_OPTIONS = "options"
|
2021-02-23 12:24:07 +00:00
|
|
|
|
2021-07-12 04:22:33 +00:00
|
|
|
ATTR_NODE = "node"
|
|
|
|
ATTR_ZWAVE_VALUE = "zwave_value"
|
|
|
|
|
2021-02-23 16:35:11 +00:00
|
|
|
# service constants
|
2021-07-28 21:15:27 +00:00
|
|
|
SERVICE_SET_VALUE = "set_value"
|
|
|
|
SERVICE_RESET_METER = "reset_meter"
|
|
|
|
SERVICE_MULTICAST_SET_VALUE = "multicast_set_value"
|
|
|
|
SERVICE_PING = "ping"
|
|
|
|
SERVICE_REFRESH_VALUE = "refresh_value"
|
2021-02-23 16:35:11 +00:00
|
|
|
SERVICE_SET_CONFIG_PARAMETER = "set_config_parameter"
|
2021-03-30 03:07:55 +00:00
|
|
|
SERVICE_BULK_SET_PARTIAL_CONFIG_PARAMETERS = "bulk_set_partial_config_parameters"
|
2021-02-23 16:35:11 +00:00
|
|
|
|
2021-07-28 21:15:27 +00:00
|
|
|
ATTR_NODES = "nodes"
|
|
|
|
# config parameter
|
2021-02-23 16:35:11 +00:00
|
|
|
ATTR_CONFIG_PARAMETER = "parameter"
|
|
|
|
ATTR_CONFIG_PARAMETER_BITMASK = "bitmask"
|
|
|
|
ATTR_CONFIG_VALUE = "value"
|
2021-07-28 21:15:27 +00:00
|
|
|
# refresh value
|
2021-02-23 23:58:04 +00:00
|
|
|
ATTR_REFRESH_ALL_VALUES = "refresh_all_values"
|
2021-07-28 21:15:27 +00:00
|
|
|
# multicast
|
2021-05-28 01:57:35 +00:00
|
|
|
ATTR_BROADCAST = "broadcast"
|
2021-07-28 21:15:27 +00:00
|
|
|
# meter reset
|
|
|
|
ATTR_METER_TYPE = "meter_type"
|
2021-06-14 20:38:35 +00:00
|
|
|
|
2021-02-23 12:24:07 +00:00
|
|
|
ADDON_SLUG = "core_zwave_js"
|