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.4.tar.gz (8.6 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.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_ccm15-0.2.4.tar.gz
  • Upload date:
  • Size: 8.6 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.4.tar.gz
Algorithm Hash digest
SHA256 e4360a29886f9e59008711ec1d1a8c16d37693ab72b75cba0850274c76168a8c
MD5 a6a7aa82fb1b8e3c3bd49f7de8521b01
BLAKE2b-256 6997864c0f48001e7ed9345d5638d34d51e20a286a0f761589049dfced497f06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_ccm15-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 6.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ff5e6ac48b14c7f870e451235550f9fe1c0a0f20632bef8993d330eb0045f7f
MD5 597df71e521edb06b7c8731a6b2bffa2
BLAKE2b-256 75d11e3397646b546659caeca9611d78d74a80f601139e335c8c69abe89bd372

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