2021-01-29 10:05:13 +00:00
|
|
|
"""Constants for Nuki."""
|
|
|
|
DOMAIN = "nuki"
|
|
|
|
|
2021-04-06 19:20:57 +00:00
|
|
|
# Attributes
|
|
|
|
ATTR_BATTERY_CRITICAL = "battery_critical"
|
|
|
|
ATTR_NUKI_ID = "nuki_id"
|
2021-06-30 06:43:02 +00:00
|
|
|
ATTR_ENABLE = "enable"
|
2021-04-06 19:20:57 +00:00
|
|
|
ATTR_UNLATCH = "unlatch"
|
|
|
|
|
|
|
|
# Data
|
|
|
|
DATA_BRIDGE = "nuki_bridge_data"
|
|
|
|
DATA_LOCKS = "nuki_locks_data"
|
|
|
|
DATA_OPENERS = "nuki_openers_data"
|
|
|
|
DATA_COORDINATOR = "nuki_coordinator"
|
|
|
|
|
2021-01-29 10:05:13 +00:00
|
|
|
# Defaults
|
|
|
|
DEFAULT_PORT = 8080
|
|
|
|
DEFAULT_TIMEOUT = 20
|
2021-04-06 19:20:57 +00:00
|
|
|
|
|
|
|
ERROR_STATES = (0, 254, 255)
|