hOn/custom_components/hon/const.py

42 lines
763 B
Python
Raw Normal View History

2023-04-26 23:57:44 +02:00
from homeassistant.components.climate import HVACMode
from custom_components.hon import climate
2023-03-06 13:41:58 +01:00
DOMAIN = "hon"
2023-02-19 02:58:21 +01:00
PLATFORMS = [
"sensor",
"select",
2023-03-03 18:23:30 +01:00
"number",
2023-03-05 00:54:57 +01:00
"switch",
2023-03-05 19:19:52 +01:00
"button",
"binary_sensor",
2023-04-26 23:57:44 +02:00
"climate",
2023-02-19 02:58:21 +01:00
]
2023-04-26 23:57:44 +02: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 = {
"1": climate.FAN_HIGH,
"2": climate.FAN_MEDIUM,
"3": climate.FAN_LOW,
"4": climate.FAN_AUTO,
"5": climate.FAN_AUTO,
}