Thermally controlled mechanism