Fan modes comming through as Chinese
I just got this new portable air conditioner. I signed up to a ConnectLife account directly, not Google sign in. With this integration, I was able to get the AC added to my Home Assistant. However, the fan control labels are in Chinese characters and the modes are out of order (H -> L -> M) from top to bottom. The "Auto" is labeled in english. My account should be set to english.
Model: HAP0824TWD AUID: 1379aed15b6d
Something similar here... Missing translation for "medio alto" end "medio basso"
I am sitting on the same issue. I wonder if there's a way to even just hardcode the option into English.
I've take a look to the code but onestly i don't see how...
I get the same thing as well (the Chinese Fan Speeds) and I also have a temp reading as -7.2 for some reason lol. EDIT I fixed the -7.2 by reloading the integration.
Root cause
The fan-mode mapping in climate.py matches the device's description strings with exact equality (==), but the device returns the speed words with a suffix (e.g. 低风/中风/高风, or localized medio basso/medio alto), so the equality never matches and the code falls through to the else branch that uses the raw description verbatim. 自动/Auto works only because that value happens to have no suffix.
Two places do this — the two display paths:
_setup_fan_modes() (~line 297):
if "自动" == value or "auto" == value.lower():
...
elif "低" == value or "low" == value.lower(): # "低" == "低风" -> False
...
fan_mode property (~line 449):
if "自动" == fan_desc or "auto" == fan_desc.lower():
...
elif "低" == fan_desc or "low" == fan_desc.lower(): # same problem
...
The set path (async_set_fan_mode, ~line 652) already uses substring matching ("低" in value), which is why setting a mode works even though the label is wrong — only the display side is broken. That inconsistency is the tell.
This also explains @Marco1971Repo's medio alto / medio basso (Italian locale) and the "out of order H→L→M" — unrecognized values just pass through in value_map order.
Fix
Change == to in (substring) in those two display blocks, and check the 超低/超高 (ultra) variants before 低/高 so an ultra value isn't caught by the base check:
v = value.lower()
if "自动" in value or "auto" in v:
fan_modes.append(FAN_AUTO); self.hasAuto = True
elif "超低" in value or "ultra low" in v:
fan_modes.append(SFAN_ULTRA_LOW)
elif "超高" in value or "ultra high" in v:
fan_modes.append(SFAN_ULTRA_HIGH)
elif "低" in value or "low" in v:
fan_modes.append(FAN_LOW)
elif "中" in value or "medium" in v or "med" in v:
fan_modes.append(FAN_MEDIUM)
elif "高" in value or "high" in v:
fan_modes.append(FAN_HIGH)
else:
fan_modes.append(value)
(Same change in the fan_mode property.) After this, fan_modes resolves to ["low","medium","high","auto"], which the HA frontend localizes correctly, and the ordering follows the standard mode list.
Verified locally against a 006-201 (Split AC, value_map 低风/中风/高风/自动): labels render in English and a round-trip set_fan_mode still maps back to the correct device value.
Happy to open a PR if useful.
@david-sgh @qingshi688 @65kg : any updates on this ? It could be great if it could be fixed...
@david-sgh @qingshi688 @65kg : any updates on this ? It could be great if it could be fixed...
I switched to the https://github.com/oyvindwe/connectlife-ha extension, way more options like swing control, and muted "bips" when the app is controlling the AC.