mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 06:34:22 -04:00
Control air conditioners
This commit is contained in:
parent
8e4e491c33
commit
8aa8563b9b
26 changed files with 1641 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
from homeassistant.components.climate import HVACMode
|
||||
|
||||
from custom_components.hon import climate
|
||||
|
||||
DOMAIN = "hon"
|
||||
|
||||
PLATFORMS = [
|
||||
|
@ -7,4 +11,31 @@ PLATFORMS = [
|
|||
"switch",
|
||||
"button",
|
||||
"binary_sensor",
|
||||
"climate",
|
||||
]
|
||||
|
||||
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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue