Im working with nest API to build an Android app.
Im connecting multiple Thermostats to one nest account. Next, I add Thermostat listeners. I can print out everything i would like to about the thermostats (temp, label, target, etc) but i can not figure out how to dynamically respond only to a specific thermostat. Each thermostat gets an index number, but the order of index number is random. does anyone know how one would set the order of thermostats indexes?
for example, if thermostat in the living room is triggered, do something specific in the living room. but how would i know the corresponding index to each device?