Skip to main content

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
  • aiohttp>=3.8.5

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Made by Oscar Calvo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_ccm15-0.2.3.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_ccm15-0.2.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file py_ccm15-0.2.3.tar.gz.

File metadata

  • Download URL: py_ccm15-0.2.3.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for py_ccm15-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e8947a2d1c1aa51ee752de054ba2c585793481148e145eece66727ae9433d551
MD5 36c1a7042601ab29b450c009a1d6ed32
BLAKE2b-256 d158884f7d3166b2f2f4e62aff510f618ba7612091ebb40d63df5351bb88d1ba

See more details on using hashes here.

File details

Details for the file py_ccm15-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: py_ccm15-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for py_ccm15-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6df207e9ba9a6f1eda422db4bb3d06702ba4cf5e032c5b6c6f38189666ce3554
MD5 fbea09cb50b9d87b076978290ee68c3b
BLAKE2b-256 2dd71c357739cb2f9e5d98df8a84507428ed0872498ffc197735542bb0fdabf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page