Metadata-Version: 2.0
Name: pycoolmasternet
Version: 0.0.1
Summary: Lightweight Python API for CoolMasterNet HVAC bridges
Home-page: http://github.com/koreth/pycoolmasternet
Author: Steven Grimm
Author-email: koreth@gmail.com
License: MIT
Keywords: hvac homeautomation
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Home Automation
Classifier: Topic :: Software Development :: Libraries :: Python Modules

pycoolmasternet
===============
A Python 3 library for interacting with a CoolMasterNet_ HVAC bridge.

.. _CoolMasterNet: https://coolautomation.com/products/coolmasternet/

Installation
------------
`pip install pycoolmasternet`

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

Usage
-----

.. code-block:: python

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

License
-------
This code is released under the MIT license.


