I can’t find a way how to turn the Nest thermostat off. One can set the away mode of nest using the thermostat/set_away_mode (true/false), but not the heat mode. Some explanation about the heat mode is located here:
https://nest.com/support/article/How-do-I-switch-between-heating-and-cooling
Not sure, if the thermostat/set_hvac_mode can be reused for this? It is currently not implemented for Nest. Even the underlying python_nest library seems to support this, though not sure if it works.
I have created a pull request https://github.com/home-assistant/home-assistant/pull/2621. Tested on my environment successfully.