Search code examples
nest-api

Is there a public API for when a Rush Hour is on going?


I noticed today my Nest thermostat showed a yellow leaf-like symbol during a rush hour. Is there a way to do a similar call on a Thermostat object like getHasLeaf() to determine if this is currently showing or not?


Solution

  • Yes. It is at the structure level and it is called peak_period_start_time and peak_period_end_time

    https://developers.nest.com/documentation/api-reference/overview#peakperiodstarttime