2021-10-31 23:01:11 +00:00
|
|
|
"""Constants."""
|
2021-12-03 16:51:30 +00:00
|
|
|
from homeassistant.const import Platform
|
2020-04-18 23:16:49 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "broadlink"
|
2019-04-12 18:11:36 +00:00
|
|
|
|
2021-03-12 05:34:56 +00:00
|
|
|
DOMAINS_AND_TYPES = {
|
2021-12-03 16:51:30 +00:00
|
|
|
Platform.REMOTE: {"RM4MINI", "RM4PRO", "RMMINI", "RMMINIB", "RMPRO"},
|
|
|
|
Platform.SENSOR: {
|
2021-07-26 15:42:19 +00:00
|
|
|
"A1",
|
|
|
|
"RM4MINI",
|
|
|
|
"RM4PRO",
|
|
|
|
"RMPRO",
|
|
|
|
"SP2S",
|
|
|
|
"SP3S",
|
|
|
|
"SP4",
|
|
|
|
"SP4B",
|
|
|
|
},
|
2021-12-03 16:51:30 +00:00
|
|
|
Platform.SWITCH: {
|
2021-03-12 05:34:56 +00:00
|
|
|
"BG1",
|
|
|
|
"MP1",
|
|
|
|
"RM4MINI",
|
|
|
|
"RM4PRO",
|
|
|
|
"RMMINI",
|
|
|
|
"RMMINIB",
|
|
|
|
"RMPRO",
|
|
|
|
"SP1",
|
|
|
|
"SP2",
|
|
|
|
"SP2S",
|
|
|
|
"SP3",
|
|
|
|
"SP3S",
|
|
|
|
"SP4",
|
|
|
|
"SP4B",
|
|
|
|
},
|
2022-02-18 20:39:29 +00:00
|
|
|
Platform.LIGHT: {"LB1", "LB2"},
|
2021-03-12 05:34:56 +00:00
|
|
|
}
|
2021-10-31 23:01:11 +00:00
|
|
|
DEVICE_TYPES = set.union(*DOMAINS_AND_TYPES.values())
|
2020-06-09 12:15:46 +00:00
|
|
|
|
2020-08-20 15:30:41 +00:00
|
|
|
DEFAULT_PORT = 80
|
|
|
|
DEFAULT_TIMEOUT = 5
|