Skip to main content

A python library to control CoolMasterNet HVAC bridges over asyncio.

Project description

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')

# Get fresh info
unit = await unit.refresh()

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

pycoolmasternet_async-0.2.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

pycoolmasternet_async-0.2.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycoolmasternet_async-0.2.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pycoolmasternet_async-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0fe314b26deeb59aefda292a8f459297a5292d9038448041fdb48bbe22ad09f5
MD5 926ea949620187c1973d83eeb74ccae0
BLAKE2b-256 de1779aef0399140e24140b543fd9d8ee91d077b35418374b225d76d6506b694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycoolmasternet_async-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2d18303d287a91cdb76388ac0d410889c9c348dea12dde9f5c6ba03511c434db
MD5 64d1c84689a1167fab2cd1466d116981
BLAKE2b-256 50b0f07c89aefa82523bfc5e45a3612a0507e9ed87a5d844b71ebe5289ee69b0

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