added polling for thermostat mode