-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MI Air Conditioner Companion MCN #52
Comments
Hi, I am wondering myself how this actually works that outlets can be air conditioners?😅 Anyway, yes adding support for the device should be straight forward, the only thing which we will need to find out if this is actually a miio or miot device. From the issue you linked I saw that they use miio commands. When you right now add the device when you try to use the switch, does it actually do anything? Could you post debug log when you use the switch so we can check out if the device accepts the command? If the device does not accept miot commands locally then I can use the MiCloud to make it work. So we just need to figure out if the device can be controlled locally using miot or if it requires MiCloud... |
The air conditioner on the socket, I researched some time ago, it should be a miot device. The following is the desensitization log of homebridge: |
What i can see from the log is that the property fetch call times out and this is a strong indicator that the device is not a miot device. Older devices use the old miio protocol but xiaomi built in a translator in the cloud to convert the miot commands from the specs which you posted here to local miio commands. So yes, i can add support for the device but it will require a MiCloud connection. You can also already check out now if the device will work with MiCloud by adding the following lines to your device config in the config.json:
Add your username and password and also the cloud country where your devices are located. That should make the device successfully sync the power property. Let me know if that is the case, and then i will add it. |
@merdok Thanks for your help~
|
Perfect! So as expected this is a miio device. I will add full support for it in the next update! Will let you know when the update is ready! |
@merdok Wow, that’s great~ Thank you very much. |
Version 0.9.7 is now online with support for the device. Please try it and let me know! |
Hi, Works great. However, when trying to tap and hold the tile in the Home app, it defaults to OFF thus turning it back off everytime I wanted to adjust the temperature. Also, the temperature meter stated 0.0 all the time. Here's the log on the dashboard: [18/07/2021, 10:26:53] [homebridge-miot] [Aircond] Poll failed 4 times in a row! Stopping polling and trying to reconnect! |
I think you do not have the latest version of the plugin hece there is the the error in the console. Please update to the latest version. The temperature will be reported as 0.0 by the accessory since the device does not support temperature reporting |
Hi, Appreciate your response. The plugin runs on the latest version tho, which is 0.9.7. As for the temperature report, maybe if it could follow the temperature we manually adjust in the tile? I’m using a separate “Mi Heatercooler” plugin for the the old version of Mi Air Conditioner Controller and it does that. |
Ah, you are right, it will be fixed in the next update. Also after the update the tile will show the temperature which you set. |
Thank you! You're awesome! |
Should now be fixed in version 0.9.8 |
Hi, I can confirmed that its fixed now. Works really well. Thank you! |
Hello,
Would it be possible to add support for the Mi Air Conditioner Companion MCN?
Model:
lumi.acpartner.mcn02
SKU:
KTBL03LM
Link: https://www.mi.com/buy/detail?product_id=9726
When setup in the plugin, it seems to connect successfully and is seen as a switch, but there are no additional controls.
I see that python-miio has his support, you can refer to python-miio#809.
If there is anything I can provide (logs, testing, etc.), I would be happy to help the best I can.
The text was updated successfully, but these errors were encountered: