跳转到主要内容

与Nest™恒温器的Python API和命令行工具

项目描述

#nest_thermostat

**一个用于Nest恒温器的Python接口**

*由Scott M Baker,smbaker@gmail.com,http://www.smbaker.com/的pynest分支*

##安装
`[sudo] pip install nest-thermostat`

##使用

### 模块

您可以将模块导入为`nest_thermostat`。使用源代码,luke!

提示:您需要首先手动调用`.login()`,然后调用`.get_status()`,最后调用`.show_*()`

### 命令行
```
语法:nest.py [选项] 命令 [命令参数]
选项
--user <username> ... 在nest.com上的用户名
--password <password> ... 在nest.com上的密码
--celsius ... 使用摄氏度(默认为华氏度)
--serial <number> ... 可选,指定要使用的Nest的序列号
--index <number> ... 可选,Nest的基于0的索引
(使用--serial或--index,但不能同时使用两者)

命令
temp <temperature> ... 设置目标温度
fan [auto|on] ... 设置风扇状态
mode [cool|heat|range|off] ... 设置模式状态
away ... 切换离线模式
show ... 显示所有内容
curtemp ... 打印当前温度
curhumid ... 打印当前湿度
curmode ... 打印当前模式

示例
nest.py --user joe@user.com --password swordfish temp 73
nest.py --user joe@user.com --password swordfish fan auto
```


---

*Chris Burris的Siri Nest Proxy对学习Nest的认证和协议的一些部分非常有帮助。

项目详情


下载文件

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

源代码分发

nest-thermostat-1.2.tar.gz (4.0 kB 查看哈希值)

上传时间:

由以下支持