/// <summary>
        /// Learn a code for a switch from a remote
        /// </summary>
        /// <returns>Code to associate with a (new) switch</returns>
        public async Task <string> LearnSwitchCode()
        {
            SwitchCode response = await GetData <SwitchCode>("sw/learn");

            return(response == null ? string.Empty : response.Code);
        }
        /// <summary>
        /// Generate a code for a switch
        /// </summary>
        /// <returns>Code to associate with a (new) switch</returns>
        public async Task <string> GenerateSwitchCode()
        {
            SwitchCode response = await GetData <SwitchCode>("sw/generatekaku");

            return(response == null ? string.Empty : response.Code);
        }