Added sample code to find a thermostat in the device list.