pycoolmasternet-async
A Python 3 library for interacting with a CoolMasterNet HVAC bridge. This is a fork of pycoolmaster, modified to present an async interface and some other small changes.
Installation
You can install pycoolmasternet-async from PyPI:
pip3 install pycoolmasternet-async
Python 3.13 and above are supported.
How to use
from pycoolmasternet_async import CoolMasterNet
cool = CoolMasterNet("coolmaster")
# Supply the IP address and optional port number (default 10102).
cool = CoolMasterNet("192.168.0.123", port=12345, read_timeout=1)
# General information
info = await cool.info()
# Returns a dict of CoolMasterNetUnit objects. Keys are the unit IDs
units = await cool.status()
unit = units["L1.001"]
unit.unit_id
# Temperature unit: Imperial, Celsius
unit.temperature_unit
# Current reading of unit's thermometer
unit.temperature
# Current setting of unit's thermostat
unit.thermostat
# Setters return a new instance with updated info
unit = await unit.set_thermostat(28)
# True if unit is turned on
unit.is_on
unit = await unit.turn_on()
unit = await unit.turn_off()
# Fan speed: low, med, high, auto
unit.fan_speed
unit = await unit.set_fan_speed('med')
# Mode of operation: auto, cool, dry, fan, heat
unit.mode
unit = await unit.set_mode('cool')
# True while the unit is actively calling for heating/cooling, False when it
# is on but idle. None if the bridge's status format doesn't report demand.
unit.demand
# Get fresh info
unit = await unit.refresh()
Errors
Errors raised by this library derive from CoolMasterNetError:
CoolMasterNetConnectionError- the bridge could not be reached, or did not answer as expected. Also aConnectionError, and so anOSError.CoolMasterNetCommandError- the bridge rejected a command. Also aValueError.
They subclass the builtins previously raised, so existing except OSError or
except ValueError handlers keep working. Note that connection failures raised
by asyncio itself (for example TimeoutError, or socket.gaierror for an
unresolvable host) still propagate as plain OSError subclasses.
Release files for pycoolmasternet-async 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycoolmasternet_async-0.2.6.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycoolmasternet_async-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / pycoolmasternet_async-0.2.6.tar.gz
| Download URL | pycoolmasternet_async-0.2.6.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33031dd1328bb0a87cd8fa731fbbb4c63b946ba5e1f379ad1d68df704e07433d
|
|
BLAKE2b-256 checksum How to use checksums |
5b9be8d8d2bd4780c7dab8a328282f57bb2eeff878ef6e51ecd7826ddf1280bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logRelease files / pycoolmasternet_async-0.2.6-py3-none-any.whl
| Download URL | pycoolmasternet_async-0.2.6-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98551f7cb658576feedf9177051d0241275db8d7b644686d6156a635bd9e86da
|
|
BLAKE2b-256 checksum How to use checksums |
a6c20c021d5365b528513a1c0cb8764bc035c3122b4b97933041e35cb8f48860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency log