code: def set_temperature(self, temp):
          
  
          self.set_service_value(
              self.thermostat_setpoint,
              'CurrentSetpoint',
              'NewCurrentSetpoint',
              temp)
  
          self.set_cache_value('setpoint', temp)
docs: Set current goal temperature / setpoint