| | |
| | | { |
| | | return Language.StringByID(R.MyInternationalizationString.Close); |
| | | } |
| | | return $"{(int)((device as DimmableLight).Level * 1.0 / 254 * 100)}%"; |
| | | return HdlDeviceCommonLogic.Current.CalculateLightLevelPersent((device as DimmableLight).Level) + "%"; |
| | | } |
| | | else if (device.Type == DeviceType.ColorTemperatureLight) |
| | | { |
| | |
| | | { |
| | | return Language.StringByID(R.MyInternationalizationString.Close); |
| | | } |
| | | return $"{(int)((device as ColorTemperatureLight).Level * 1.0 / 254 * 100)}%"; |
| | | return HdlDeviceCommonLogic.Current.CalculateLightLevelPersent((device as ColorTemperatureLight).Level) + "%"; |
| | | } |
| | | else if (device.Type == DeviceType.WindowCoveringDevice) |
| | | { |
| | |
| | | humidity = $"{tempera.currentHumidity}%"; |
| | | temperature = $"{tempera.currentTemperature}℃"; |
| | | pm = $"{tempera.currentPmData}μg/m³"; |
| | | co2 = $"{tempera.currentCO2}ppm"; |
| | | return $"{curQuality},{pm},{co2},{temperature},{humidity}"; |
| | | //co2 = $"{tempera.currentCO2}ppm"; |
| | | return $"{curQuality},{pm},{temperature},{humidity}"; |
| | | } |
| | | else |
| | | { |