Two Nest Thermostats: if one goes in, the other goes off

This is what I use to connect to my nest t-stat. [RELEASE] Google SDM API - Nest integration