Skip to main content

未提供项目描述

项目描述

运行测试 PyPI 版本

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

执照

麻省理工学院许可证

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

pyhtcc-0.1.10.tar.gz (8.9 kB 查看哈希

已上传 source