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.7 and above are supported.
How to use
from pycoolmasternet_async import CoolMasterNet
cool = CoolMasterNet("coolmaster")
cool = CoolMasterNet("192.168.0.123", port=12345, read_timeout=1)
info = await cool.info()
units = await cool.status()
unit = units["L1.001"]
unit.unit_id
unit.temperature_unit
unit.temperature
unit.thermostat
unit = await unit.set_thermostat(28)
unit.is_on
unit = await unit.turn_on()
unit = await unit.turn_off()
unit.fan_speed
unit = await unit.set_fan_speed('med')
unit.mode
unit = await unit.set_mode('cool')
unit = await unit.refresh()