- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果 Nest Thermostat 设备处于“冷却”或“加热”状态,它会显示在屏幕上。如何通过 Nest API 获取此状态?hvac_mode
属性似乎只是显示用户的 Thermostat 能够控制的内容,并且在发生冷却或加热时不会改变。
现在,我使用的是一个简单但并非完美的逻辑:
if (can_cool && target_temperature < ambient_temperature) --> isCooling
if (can_heat && target_temperature > ambient_temperature) --> isHeating
else --> isDoingNothing
ambient_temperature
是
20 Celsius
和
target_temperature
是
21 Celsius
与
can_heat
设置为
true
,我的用户界面会说恒温器正在加热,而实际上不是。
最佳答案
截至 2015 年 5 月,Nest API 现在正式报告 hvac_state 属性(property)。该值将是“加热”、“冷却”或“关闭”之一。
New fields in the data model: hvac_state. You'll use hvac_state to learn if the home HVAC system is actively heating, cooling or is off.
关于nest-api - 嵌套 API : when is Thermostat 'heating' or 'cooling' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26415239/
我正在尝试创建一个名为 Thermostat 的 Arduino 类,它使用 DHT 库。 我认为错误可能是我对 _dht 实例的声明和初始化感到困惑。 我的目标只是让我的主要草图干净,让类 Ther
我正在尝试以编程方式 (Android) 更改我的 Nest 的温度,但没有成功。请求工作可能是 30-50 次尝试中的 1 次。 我已尝试通过 Firebase Nest SDK 执行此操作,但根本
您好,在我的应用程序中,我需要实现 Nest Thermostat。为此,我正在检查 nest 提供的示例代码,因为我在成功运行代码后注册了我的客户端,它生成了身份验证代码,并且,我必须发送此访问 t
我正在尝试自己构建一些智能家居设备。我对构建像 Nest Thermostat 那样能够了解房屋特征和家庭成员行为的物联网算法非常感兴趣。 虽然我有一定的机器学习基础,但我对热模型知之甚少,而热模型是
如果 Nest Thermostat 设备处于“冷却”或“加热”状态,它会显示在屏幕上。如何通过 Nest API 获取此状态? hvac_mode属性似乎只是显示用户的 Thermostat 能够控
Nest 恒温器 SDK,使用 Nest 的 iOS 示例代码作为引用。 示例代码中概述了温度设置。将离开状态设置为 away 或 home(不是向 firebase 发送的字符串值)。 来自上一个问
我正在编写一个 Android 应用程序来控制 Nest 恒温器。我能够很好地连接到它,并且可以读取正确的目标温度(转动恒温器上的旋钮会更新我的 TextView)。 但是,当我尝试这样写目标温度时,
Nest change target_temperature_f : 如何使用 java http PUT 通过 android 代码设置 Nest Thermostat 的目标温度? 最佳答案 您可
我是一名优秀的程序员,十分优秀!