| | |
| | | if (light.Type == DeviceType.LightDimming || light.Type == DeviceType.LightMixDimming || light.Type == DeviceType.LightDALI) { |
| | | if ((light as LightDimming).CurrentBrightness > 0) |
| | | brighingCount++; |
| | | } else if (light.Type == DeviceType.LightSwitch || light.Type == DeviceType.LightMixSwitch) |
| | | } else if (light.Type == DeviceType.LightSwitch || light.Type == DeviceType.LightMixSwitch || light.Type == DeviceType.LightEnergySwitch) |
| | | if ((light as LightSwitch).CurrentBrightness == 100) |
| | | brighingCount++; |
| | | if (light.Type == DeviceType.LightRGB) |