2021-09-18 19:25:05 +00:00
|
|
|
"""Constants for the switchbot integration."""
|
|
|
|
DOMAIN = "switchbot"
|
|
|
|
MANUFACTURER = "switchbot"
|
|
|
|
|
|
|
|
# Config Attributes
|
|
|
|
ATTR_BOT = "bot"
|
2021-09-21 17:35:47 +00:00
|
|
|
ATTR_CURTAIN = "curtain"
|
2022-07-22 16:03:02 +00:00
|
|
|
ATTR_HYGROMETER = "hygrometer"
|
2022-07-26 15:14:02 +00:00
|
|
|
ATTR_CONTACT = "contact"
|
2022-08-02 02:29:44 +00:00
|
|
|
ATTR_PLUG = "plug"
|
2022-08-02 10:38:31 +00:00
|
|
|
ATTR_MOTION = "motion"
|
2021-09-18 19:25:05 +00:00
|
|
|
DEFAULT_NAME = "Switchbot"
|
2022-08-02 10:38:31 +00:00
|
|
|
|
2022-07-22 16:03:02 +00:00
|
|
|
SUPPORTED_MODEL_TYPES = {
|
|
|
|
"WoHand": ATTR_BOT,
|
|
|
|
"WoCurtain": ATTR_CURTAIN,
|
|
|
|
"WoSensorTH": ATTR_HYGROMETER,
|
2022-07-26 15:14:02 +00:00
|
|
|
"WoContact": ATTR_CONTACT,
|
2022-08-02 02:29:44 +00:00
|
|
|
"WoPlug": ATTR_PLUG,
|
2022-08-02 10:38:31 +00:00
|
|
|
"WoPresence": ATTR_MOTION,
|
2022-07-22 16:03:02 +00:00
|
|
|
}
|
2021-09-18 19:25:05 +00:00
|
|
|
|
|
|
|
# Config Defaults
|
|
|
|
DEFAULT_RETRY_COUNT = 3
|
|
|
|
|
|
|
|
# Config Options
|
|
|
|
CONF_RETRY_COUNT = "retry_count"
|
|
|
|
|
2022-07-24 16:38:45 +00:00
|
|
|
# Deprecated config Entry Options to be removed in 2023.4
|
|
|
|
CONF_TIME_BETWEEN_UPDATE_COMMAND = "update_time"
|
|
|
|
CONF_RETRY_TIMEOUT = "retry_timeout"
|
2022-07-24 21:38:07 +00:00
|
|
|
CONF_SCAN_TIMEOUT = "scan_timeout"
|