A package to control Midea CCM15 data converter modules
Project description
py-ccm15
Python Library to access a Midea CCM15 data converter
This package provides an asynchronous interface to communicate with Midea CCM15 data converter modules. It allows you to control and monitor air conditioning units via the CCM15 gateway using Python.
Features
- Read and set temperature
- Control fan mode and AC mode
- Async support for non-blocking operations
- Communicate with CCM15 over HTTP
Installation
pip install py-ccm15
Usage
import asyncio
from py_ccm15 import CCM15Client
async def main():
client = CCM15Client(host="192.168.1.100", token="your_token_here")
status = await client.get_status()
print(status)
await client.set_state(ac_mode="cool", fan_mode="auto", temperature=24)
asyncio.run(main())
Requirements
- Python 3.7+
- httpx>=0.24.1
- xmltodict>=0.13.0
Documentation
For full API reference and advanced usage, visit the GitHub repository.
Contributing
Pull requests are welcome. If you find a bug or have a feature request, feel free to open an issue.
Acknowledgements
The CCM15 wire protocol implemented here — the status.xml byte decoding and the
HVAC/fan mode command mappings — was originally derived from the
houselabs/home-assistant-mideaccm
Home Assistant custom component (originally authored by Chao Shen). This library
re-implements that protocol as a standalone, async package. Thanks to the original
authors for reverse-engineering the controller protocol.
Thanks also to daxingplay/home-assistant-midea-ccm15,
an independent CCM15 Home Assistant component whose status.xml decoding and
ctrl.xml command handling were a valuable second reference for validating this
library's wire protocol.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Made by Oscar Calvo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_ccm15-0.5.0.tar.gz.
File metadata
- Download URL: py_ccm15-0.5.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feaa6bca6a15e0e469cc3138fcb17af04cc84abf196e4768f764edcf5cd5f95a
|
|
| MD5 |
96509c69740c34232b520b7d660c06c7
|
|
| BLAKE2b-256 |
36e6ead8a4d983be250760774469ee39f345c323e07501d7e7ce5813efa1ddf8
|
File details
Details for the file py_ccm15-0.5.0-py3-none-any.whl.
File metadata
- Download URL: py_ccm15-0.5.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa7017cfab89ee1051bb451616d1488450efa4e857eb283a76133137ae08852
|
|
| MD5 |
d981ead333022d0bebaed8cb7c1ffd69
|
|
| BLAKE2b-256 |
a4c73e4bd2087aa7eda143ec3fcdbd3188223b95d79808ad4e48fe987f565a38
|