Closed dacrypt closed 4 years ago
I think the AI mode that my AC unit report seems to be missing and generating this error.
After reading https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/climate/const.py
# The temperature is set based on a schedule, learned behavior, AI or some
# other related mechanism. User is not able to adjust the temperature
HVAC_MODE_AUTO = 'auto'
I ended up modifying climate.py (line 24), and managed to get rid of the error just adding the following modification:
MODES = {
'AI': c_const.HVAC_MODE_AUTO,
'HEAT': c_const.HVAC_MODE_HEAT,
'COOL': c_const.HVAC_MODE_COOL,
'FAN': c_const.HVAC_MODE_FAN_ONLY,
'DRY': c_const.HVAC_MODE_DRY,
'ACO': c_const.HVAC_MODE_HEAT_COOL,
}
This should be fixed better since AI mode should allow to set a mode ranging from -2 to 2 (https://www.lg.com/in/support/product-help/CT20150054-20150225230433-others)
OK, cool! I think we should apply this even if it’s only a partial solution for the “AI” mode. Would you mind opening a pull request?
OK, cool! I think we should apply this even if it’s only a partial solution for the “AI” mode. Would you mind opening a pull request?
there you go -> #43