code: def set_rgb_dim_level(self, channelIndex: int, rgb: RGBColorState, dimLevel: float):
          
          data = {
              "channelIndex": channelIndex,
              "deviceId": self.id,
              "simpleRGBColorState": rgb,
              "dimLevel": dimLevel,
          }
          return self._restCall(
              "device/control/setSimpleRGBColorDimLevel", body=json.dumps(data)
          )
docs: sets the color and dimlevel of the lamp
  
          Args:
              channelIndex(int): the channelIndex of the lamp. Use self.topLightChannelIndex or self.bottomLightChannelIndex
              rgb(RGBColorState): the color of the lamp
              dimLevel(float): the dimLevel of the lamp. 0.0 = off, 1.0 = MAX
  
          Returns:
              the result of the _restCall