2019-04-12 18:11:36 +00:00
|
|
|
"""Constants for broadlink platform."""
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_PACKET = "packet"
|
2019-04-12 18:11:36 +00:00
|
|
|
|
2020-04-18 23:16:49 +00:00
|
|
|
DEFAULT_LEARNING_TIMEOUT = 20
|
|
|
|
DEFAULT_NAME = "Broadlink"
|
|
|
|
DEFAULT_PORT = 80
|
|
|
|
DEFAULT_RETRY = 3
|
|
|
|
DEFAULT_TIMEOUT = 5
|
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "broadlink"
|
2019-04-12 18:11:36 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
SERVICE_LEARN = "learn"
|
|
|
|
SERVICE_SEND = "send"
|
2020-04-18 23:16:49 +00:00
|
|
|
|
|
|
|
A1_TYPES = ["a1"]
|
|
|
|
MP1_TYPES = ["mp1"]
|
|
|
|
RM_TYPES = [
|
|
|
|
"rm",
|
|
|
|
"rm2",
|
|
|
|
"rm_mini",
|
|
|
|
"rm_mini_shate",
|
|
|
|
"rm_pro_phicomm",
|
|
|
|
"rm2_home_plus",
|
|
|
|
"rm2_home_plus_gdt",
|
|
|
|
"rm2_pro_plus",
|
|
|
|
"rm2_pro_plus2",
|
|
|
|
"rm2_pro_plus_bl",
|
|
|
|
]
|
|
|
|
RM4_TYPES = [
|
|
|
|
"rm_mini3_newblackbean",
|
|
|
|
"rm_mini3_redbean",
|
|
|
|
"rm4_mini",
|
|
|
|
"rm4_pro",
|
|
|
|
"rm4c_mini",
|
|
|
|
"rm4c_pro",
|
|
|
|
]
|
|
|
|
SP1_TYPES = ["sp1"]
|
|
|
|
SP2_TYPES = ["sp2", "honeywell_sp2", "sp3", "spmini2", "spminiplus"]
|