高峰期时是否有 public API?
Is there a public API for when a Rush Hour is on going?
我今天注意到我的 Nest 恒温器在 rush hour 期间显示了一个黄色的叶子状符号。有没有办法对像 getHasLeaf()
这样的 Thermostat
对象进行类似的调用,以确定它当前是否正在显示?
是的。它处于结构级别,称为 peak_period_start_time
和 peak_period_end_time
https://developers.nest.com/documentation/api-reference/overview#peakperiodstarttime
我今天注意到我的 Nest 恒温器在 rush hour 期间显示了一个黄色的叶子状符号。有没有办法对像 getHasLeaf()
这样的 Thermostat
对象进行类似的调用,以确定它当前是否正在显示?
是的。它处于结构级别,称为 peak_period_start_time
和 peak_period_end_time
https://developers.nest.com/documentation/api-reference/overview#peakperiodstarttime