未提供项目描述
项目描述
PyHTCC
一个(非官方)库,用于与霍尼韦尔 Total Connect Comfort (TCC) 恒温器系统连接。它包括一个简单的 CLI 和一个 API。
安装
pip install pyhtcc
简单的 API 示例
from pyhtcc import PyHTCC
p = PyHTCC(<TCC username>, <TCC password>)
zone = p.get_zone_by_name('<zone name>')
# set cooling on, and a setpoint of 75 degrees
zone.set_permananent_cool_setpoint(75)
有关完整的 API 文档,请参阅https://csm10495.github.io/pyhtcc/。
CLI 语法
usage: pyhtcc [-h] [-u USER] [-p PASSWORD] [-n NAME] [-s] [-d]
[-H HEAT | -C COOL]
A CLI to perform actions on a Honeywell Total Comfort Connect thermostat
system
optional arguments:
-h, --help show this help message and exit
-u USER, --user USER Username to login to TCC. If not given uses the
environment variable PYHTCC_EMAIL
-p PASSWORD, --password PASSWORD
Password to login to TCC. If not given uses the
environment variable PYHTCC_PASS. If neither are
given, will prompt for user input.
-n NAME, --name NAME Thermostat name to target. If not given, targets all
zones
-s, --show-info If given, will show info and quit.
-d, --debug If given, will log to stdout
-H HEAT, --heat HEAT Set a target heat temperature
-C COOL, --cool COOL Set a target cooling temperature
执照
麻省理工学院许可证