/// <summary>
        /// Logins the specified user name.
        /// </summary>
        /// <param name="userName">Name of the user.</param>
        /// <param name="password">The password.</param>
        /// <returns></returns>
        public bool Login(string userName, string password)
        {
            authHandler                       = new AuthentificationHandler();
            this.websockerHandler             = new InnogyWebSocketHandler();
            this.websockerHandler.InnogyEvent = websh_InnogyEvent;

            this.IsInitialized = false;
            authHandler.Login(userName, password);

            if (!authHandler.CredentialsCorrect)
            {
                return(false);
            }

            return(true);
        }