public async Task <PowerSwitchList> GetPowerSwitches()
        {
            HttpRequestMessage request      = new HttpRequestMessage(HttpMethod.Post, "/action/deviceListPSSGet");
            PowerSwitchList    responseBody = await SendRequest <PowerSwitchList>(request);

            return(responseBody);
        }
        private async Task ConfigurePowerSwitches()
        {
            PowerSwitchList response = await _lupusecService.GetPowerSwitches();

            foreach (var powerSwitch in response.PowerSwitches)
            {
                TryCall(powerSwitch, ConfigurePowerSwitch);
            }
        }
        private async Task PublishPowerSwitches()
        {
            PowerSwitchList powerSwitchList = await _lupusecService.GetPowerSwitches();

            _logger.LogDebug("Received {countPowerSwitches} power switches", powerSwitchList.PowerSwitches.Length);

            foreach (var powerSwitch in powerSwitchList.PowerSwitches)
            {
                TryCall(powerSwitch, PublishPowerSwitch);
            }
        }