Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.switchbot.const Namespace Reference

Variables

string CONF_ENCRYPTION_KEY = "encryption_key"
 
string CONF_KEY_ID = "key_id"
 
string CONF_LOCK_NIGHTLATCH = "lock_force_nightlatch"
 
string CONF_RETRY_COUNT = "retry_count"
 
dictionary CONNECTABLE_SUPPORTED_MODEL_TYPES
 
bool DEFAULT_LOCK_NIGHTLATCH = False
 
string DEFAULT_NAME = "Switchbot"
 
int DEFAULT_RETRY_COUNT = 3
 
string DOMAIN = "switchbot"
 
dictionary HASS_SENSOR_TYPE_TO_SWITCHBOT_MODEL
 
string MANUFACTURER = "switchbot"
 
dictionary NON_CONNECTABLE_SUPPORTED_MODEL_TYPES
 
dictionary SUPPORTED_LOCK_MODELS = {SwitchbotModel.LOCK, SwitchbotModel.LOCK_PRO}
 
tuple SUPPORTED_MODEL_TYPES
 

Detailed Description

Constants for the switchbot integration.

Variable Documentation

◆ CONF_ENCRYPTION_KEY

string homeassistant.components.switchbot.const.CONF_ENCRYPTION_KEY = "encryption_key"

Definition at line 75 of file const.py.

◆ CONF_KEY_ID

string homeassistant.components.switchbot.const.CONF_KEY_ID = "key_id"

Definition at line 74 of file const.py.

◆ CONF_LOCK_NIGHTLATCH

string homeassistant.components.switchbot.const.CONF_LOCK_NIGHTLATCH = "lock_force_nightlatch"

Definition at line 76 of file const.py.

◆ CONF_RETRY_COUNT

string homeassistant.components.switchbot.const.CONF_RETRY_COUNT = "retry_count"

Definition at line 73 of file const.py.

◆ CONNECTABLE_SUPPORTED_MODEL_TYPES

dictionary homeassistant.components.switchbot.const.CONNECTABLE_SUPPORTED_MODEL_TYPES
Initial value:
1 = {
2  SwitchbotModel.BOT: SupportedModels.BOT,
3  SwitchbotModel.CURTAIN: SupportedModels.CURTAIN,
4  SwitchbotModel.PLUG_MINI: SupportedModels.PLUG,
5  SwitchbotModel.COLOR_BULB: SupportedModels.BULB,
6  SwitchbotModel.LIGHT_STRIP: SupportedModels.LIGHT_STRIP,
7  SwitchbotModel.CEILING_LIGHT: SupportedModels.CEILING_LIGHT,
8  SwitchbotModel.HUMIDIFIER: SupportedModels.HUMIDIFIER,
9  SwitchbotModel.LOCK: SupportedModels.LOCK,
10  SwitchbotModel.LOCK_PRO: SupportedModels.LOCK_PRO,
11  SwitchbotModel.BLIND_TILT: SupportedModels.BLIND_TILT,
12  SwitchbotModel.HUB2: SupportedModels.HUB2,
13 }

Definition at line 35 of file const.py.

◆ DEFAULT_LOCK_NIGHTLATCH

bool homeassistant.components.switchbot.const.DEFAULT_LOCK_NIGHTLATCH = False

Definition at line 70 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.switchbot.const.DEFAULT_NAME = "Switchbot"

Definition at line 12 of file const.py.

◆ DEFAULT_RETRY_COUNT

int homeassistant.components.switchbot.const.DEFAULT_RETRY_COUNT = 3

Definition at line 69 of file const.py.

◆ DOMAIN

string homeassistant.components.switchbot.const.DOMAIN = "switchbot"

Definition at line 7 of file const.py.

◆ HASS_SENSOR_TYPE_TO_SWITCHBOT_MODEL

dictionary homeassistant.components.switchbot.const.HASS_SENSOR_TYPE_TO_SWITCHBOT_MODEL
Initial value:
1 = {
2  str(v): k for k, v in SUPPORTED_MODEL_TYPES.items()
3 }

Definition at line 64 of file const.py.

◆ MANUFACTURER

string homeassistant.components.switchbot.const.MANUFACTURER = "switchbot"

Definition at line 8 of file const.py.

◆ NON_CONNECTABLE_SUPPORTED_MODEL_TYPES

dictionary homeassistant.components.switchbot.const.NON_CONNECTABLE_SUPPORTED_MODEL_TYPES
Initial value:
1 = {
2  SwitchbotModel.METER: SupportedModels.HYGROMETER,
3  SwitchbotModel.IO_METER: SupportedModels.HYGROMETER,
4  SwitchbotModel.METER_PRO: SupportedModels.HYGROMETER,
5  SwitchbotModel.METER_PRO_C: SupportedModels.HYGROMETER_CO2,
6  SwitchbotModel.CONTACT_SENSOR: SupportedModels.CONTACT,
7  SwitchbotModel.MOTION_SENSOR: SupportedModels.MOTION,
8 }

Definition at line 49 of file const.py.

◆ SUPPORTED_LOCK_MODELS

dictionary homeassistant.components.switchbot.const.SUPPORTED_LOCK_MODELS = {SwitchbotModel.LOCK, SwitchbotModel.LOCK_PRO}

Definition at line 62 of file const.py.

◆ SUPPORTED_MODEL_TYPES

tuple homeassistant.components.switchbot.const.SUPPORTED_MODEL_TYPES
Initial value:
1 = (
2  CONNECTABLE_SUPPORTED_MODEL_TYPES | NON_CONNECTABLE_SUPPORTED_MODEL_TYPES
3 )

Definition at line 58 of file const.py.