Skip to content

Commit

Permalink
Add basic support for xiaomi.aircondition.mc1, mc2, mc4, mc5
Browse files Browse the repository at this point in the history
This commit introduced basic support and tests for MIoT device
Xiaomi Mi Smart Air Conditioner A including xiaomi.aircondition.mc1,
mc2, mc4 and mc5 since they are nearly the same in miot-spec.

Tested on my xiaomi.aircondition.mc4. All properties and function work
except property `electricity' keeps zero.

Device miot-spec:
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-conditioner:0000A004:xiaomi-mc4:1

Device Mi Home plugin:
https://cdn.cnbj1.fds.api.mi-img.com/rn-plugins/2020-08-25/signed_10043_1000595_66_ANDROID_bundle_d8d30e612b4b0722e4a74744614f3c53.zip
  • Loading branch information
zhangjingye03 committed Oct 3, 2020
1 parent a87f872 commit 031726c
Show file tree
Hide file tree
Showing 5 changed files with 675 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Supported devices

- Xiaomi Mi Robot Vacuum V1, S5, M1S
- Xiaomi Mi Home Air Conditioner Companion
- Xiaomi Mi Smart Air Conditioner A (xiaomi.aircondition.mc1, mc2, mc4, mc5)
- Xiaomi Mi Air Purifier
- Xiaomi Aqara Camera
- Xiaomi Aqara Gateway (basic implementation, alarm, lights)
Expand Down
1 change: 1 addition & 0 deletions miio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# flake8: noqa
from importlib_metadata import version # type: ignore
from miio.airconditioner_miot import AirConditionerMiot
from miio.airconditioningcompanion import (
AirConditioningCompanion,
AirConditioningCompanionV3,
Expand Down
Loading

0 comments on commit 031726c

Please sign in to comment.