Optomechanical oscillator controlled by variation in its heat bath temperature