code: def set_colourtemp(self, colourtemp):
          
          if not 0 <= colourtemp <= 255:
              raise ValueError("The colour temperature needs to be between 0 and 255.")
  
          payload = self.generate_payload(SET, {self.DPS_INDEX_COLOURTEMP: colourtemp})
          data = self._send_receive(payload)
          return data
docs: Set the colour temperature of an rgb bulb.
  
          Args:
              colourtemp(int): Value for the colour temperature (0-255).