Skip to main content

Lightweight Python API for CoolMasterNet HVAC bridges

Project description

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).
cool = CoolMasterNet('192.168.0.123', port=12345)

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

# 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.

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-0.0.4.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pycoolmasternet-0.0.4.tar.gz.

File metadata

  • Download URL: pycoolmasternet-0.0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for pycoolmasternet-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6632e5cfcc63d5a0ff05be2c3239cb4ac09abee1cdd453970a7a9fb887a5b08e
MD5 b8548aea092139b0ee938e4b179081c2
BLAKE2b-256 00d0a06fd16c25cc7d261d2468cc10c0aac156c02c088a17a1544805eaaee9bb

See more details on using hashes here.

Provenance

Supported by

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