2023-05-06 22:52:54 +00:00
|
|
|
from homeassistant.components.climate import (
|
|
|
|
HVACMode,
|
|
|
|
FAN_LOW,
|
|
|
|
FAN_MEDIUM,
|
|
|
|
FAN_HIGH,
|
|
|
|
FAN_AUTO,
|
|
|
|
)
|
2023-04-26 21:57:44 +00:00
|
|
|
|
2023-03-06 12:41:58 +00:00
|
|
|
DOMAIN = "hon"
|
2023-02-19 01:58:21 +00:00
|
|
|
|
|
|
|
PLATFORMS = [
|
|
|
|
"sensor",
|
|
|
|
"select",
|
2023-03-03 17:23:30 +00:00
|
|
|
"number",
|
2023-03-04 23:54:57 +00:00
|
|
|
"switch",
|
2023-03-05 18:19:52 +00:00
|
|
|
"button",
|
|
|
|
"binary_sensor",
|
2023-04-26 21:57:44 +00:00
|
|
|
"climate",
|
2023-02-19 01:58:21 +00:00
|
|
|
]
|
2023-04-26 21:57:44 +00:00
|
|
|
|
|
|
|
HON_HVAC_MODE = {
|
|
|
|
"0": HVACMode.AUTO,
|
|
|
|
"1": HVACMode.COOL,
|
|
|
|
"2": HVACMode.COOL,
|
|
|
|
"3": HVACMode.DRY,
|
|
|
|
"4": HVACMode.HEAT,
|
|
|
|
"5": HVACMode.FAN_ONLY,
|
|
|
|
"6": HVACMode.FAN_ONLY,
|
|
|
|
}
|
|
|
|
|
|
|
|
HON_HVAC_PROGRAM = {
|
|
|
|
HVACMode.AUTO: "iot_auto",
|
|
|
|
HVACMode.COOL: "iot_cool",
|
|
|
|
HVACMode.DRY: "iot_dry",
|
|
|
|
HVACMode.HEAT: "iot_heat",
|
|
|
|
HVACMode.FAN_ONLY: "iot_fan",
|
|
|
|
}
|
|
|
|
|
|
|
|
HON_FAN = {
|
2023-05-06 22:52:54 +00:00
|
|
|
"1": FAN_HIGH,
|
|
|
|
"2": FAN_MEDIUM,
|
|
|
|
"3": FAN_LOW,
|
|
|
|
"4": FAN_AUTO,
|
|
|
|
"5": FAN_AUTO,
|
2023-04-26 21:57:44 +00:00
|
|
|
}
|