Skip to main content

pycoolmasternet

A Python 3 library for interacting with a CoolMasterNet HVAC bridge.

Installation

pip install pycoolmasternet

Or you can get the code from https://github.com/koreth/pycoolmasternet

Usage

from pycoolmasternet import CoolMasterNet

# Supply the IP address and optional port number (default 10102).
#
# By default, properties will be refreshed by querying the device
# if last refresh was more than 1 second ago; pass auto_update=False
# to disable that behavior (in which case you will need to call
# update_status() explicitly).
cool = CoolMasterNet('192.168.0.123', port=12345, auto_update=False)

# Returns a list of CoolMasterDevice objects
devices = cool.devices()

# Device's unit ID on the CoolMasterNet bridge, e.g., "L7.001"
device.uid

# Temperature unit: imperial, celsius
device.unit

# Current reading of device's thermometer
device.temperature

# Current setting of device's thermostat
device.thermostat
device.set_thermostat(28)

# True if device is turned on
device.is_on
device.turn_on()
device.turn_off()

# Fan speed: low, med, high
device.fan_speed
device.set_fan_speed('med')

# Mode of operation: auto, cool, dry, fan, heat
device.mode
device.set_mode('cool')

# Swing mode: horizontal, vertical, auto, 30, 45, 60, stop
# Numeric settings are degrees of louver tilt. On read, the property can
# be None if the bridge reports that the device doesn't support swing.
device.swing
device.set_swing('30')

# Dict with all the properties listed above
device.status

# Force refresh of status (by default, device auto-updates its status
# if most recent update is more than 1 second ago)
device.update_status()

License

This code is released under the MIT license.

Metadata

Release files for pycoolmasternet 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycoolmasternet 0.2.0
File Size Uploaded Provenance Actions
pycoolmasternet-0.2.0.tar.gz 4.3 kB Without provenance Details for pycoolmasternet-0.2.0.tar.gz

Release files / pycoolmasternet-0.2.0.tar.gz

Download URL pycoolmasternet-0.2.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
44c556b7ccb207e98a75d953925a7f08c395d9bd1deeb5dc6ca9ec8782ea9ff1
BLAKE2b-256 checksum
How to use checksums
310648322d5f9ee5a56c9d959808ba7f7a1adb8ec845a3949ee92eff1e6985ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Security for pycoolmasternet 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page