@guim31 I’m stuck on the configuration of my Comfee dehumidifier.
The search returns
I think it’s missing a key, but from the Smarthome app I’m using, I can’t find where to get it. Has anyone managed to connect their device?
@guim31 I’m stuck on the configuration of my Comfee dehumidifier.
The search returns
I think it’s missing a key, but from the Smarthome app I’m using, I can’t find where to get it. Has anyone managed to connect their device?
Hi @guim31
Could you try making the “error” message red?
Thanks in advance ![]()
@JKBS64 the key is not retrieved in the app: it’s the integration that requests it from the Midea cloud, and public accounts don’t know about your dehumidifier. In the integration’s Configuration tab, select SmartHome in « Cloud Application », enter your SmartHome account’s email and password in « Cloud Account » and « Password for this account », save, then restart « Search for air conditioners ». Let me know how it goes!
@mutmut good idea: in the next version, the search will be displayed in red when no device responds.
It reassures me what I understood at the beginning before I searched in the cloud without success.
So I entered my Smarthome credentials and saved the configuration, and I get from Gladys:
A recent air conditioner (V3) has no key: the Midea cloud could not provide it. Relaunch “Search for air conditioners” or check the cloud settings.
Then I tested the device via the IP address and I get this message, it apparently does not receive the key:
Report below, WITH credentials, serial numbers and complete local addresses: do not publish it (the logs only keep the masked version). It never contains a token, key or password.
Midea unit test
Generated: 2026-11-15T14:28:50.640Z
Integration version: 1.3.1 (Node v24.22.1)
WARNING: this report shows full ids, serial numbers and local addresses: do not post it publicly. No token, key nor password.
Dehumidifier C8BA (dehumidifier 0xA1, V3, model 00000Q1A)
id 142936511692899, serial 000000P0000000Q1AC93C4ECC8BA0000, address 192.168.1.196:6444
added to Gladys: no, keys: missing (cloud)
answering: not yet, last read never, failures in a row: 0
last error: no key for Dehumidifier C8BA
capabilities answered: no, summary: -
state: -
energy: -, humidity: -
Reading the unit now (queries only, no command)
skipped: this V3 unit has no token and key yet (see “keys” above)
@JKBS64 thanks for the report. The cloud rejects the key, but the report doesn’t say why: password refused, unknown account, or device not in the account. The next version will write it in the report, I’ll let you know as soon as it’s online. In the meantime, check that the email entered is the one with which the dehumidifier appears in your SmartHome app.
@JKBS64 version 1.3.2 of Midea is online: update it, restart « Search for air conditioners », then « Test a device » on your dehumidifier. The report now has a line « cloud answers » that says what the cloud responds to for each account. Just paste me that line (it contains no e-mail or password).
@mutmut and the search displays in red when no device responds ![]()
Yes, I know I’m annoying ![]()
Hello @guim31
Here is the result after the update. I checked my credentials and even renewed the password to be sure.
cloud answers: SmartHome (own account): Midea cloud refused: Account or password incorrect, please re-enter (3102); NetHome Plus (own account): Midea cloud refused: this account does not exist (3102); SmartHome: Midea cloud refused: You have no permissions. (3201); NetHome Plus: Midea cloud refused: system error (9999)
@JKBS64 thanks, that’s very clear: the SmartHome cloud knows your account but refuses the password. The integration calculates it exactly like msmart-ng (the Home Assistant library), so I suspect the account type. Three questions:
@mutmut not annoying at all, that was a good remark ![]()
@JKBS64 thanks, nothing abnormal on that side (and yes, @ is indeed ASCII). To check if the rejection comes from Midea or the integration, you can try the same test with msmart-ng, the library used by Home Assistant. In your Mac Terminal:
python3 -m pip install --user msmart-ng
python3 -m msmart.cli discover 192.168.1.196 --account 'youremail' --password 'yourpassword'
token and a key, the bug is on my end. Do not paste these two values here: you can enter them in “Manually entered token and key”, in the format token:key.Okay, I’ll test it tonight. Have a good day.
Good evening,
Well, my Mac and, as a result, the version of Python are both too old, just like the person behind the keyboard, wink.
Fortunately, @guim31 found a much more solid lead: some SmartHome accounts are stored on a regional Midea server, and the integration still queries the main server, which then responds with “incorrect password”. Home Assistant fixed this in October. I’ll apply the fix in the integration and let you know as soon as the version is online, slightly smiling face.
Thank you very much.
Good evening everyone,
Another success for @guim31 with the correction made and the integration update, my Comfee dehumidifier was immediately discovered. It perfectly meets the need and with a small associated scene, the humidity in the bedroom disappears before bedtime.
I still need to figure out how to close the bedroom door if it’s open when the dehumidifier starts up
. Okay, okay, I get up from the couch and go close the door. In any case, a big thank you.
@JKBS64 brilliant, thanks for your patience and your tests, it paid off
For the door, you’ll need an opening sensor… and a butler!