added multiple thermostat support, and 'name' method