code: def nightmode(self, group=None):
          
          self.off(group)
          if group is None or group == 0:
              if self.has_rgbw:
                  self._send_command(self.RGBW_COMMANDS["all_nightmode"])
              if self.has_white:
                  self._send_command(self.WHITE_COMMANDS["all_nightmode"])
          else:
              self._send_to_group(group, per_group=True, rgbw_cmd=self.RGBW_GROUP_X_NIGHTMODE, white_cmd=self.WHITE_GROUP_X_NIGHTMODE, send_on=False, retries=1)
docs: Enable nightmode (very dim white light).
  
              The command is sent only once, as multiple commands would blink lights rapidly.
              There is no way to automatically detect whether transmitting the command succeeded or not.
  
              This does not work with wifi gateway v3.
  
              Contrary to limitlessled documentation, this works with RGBW bulbs.