old mode 100755
new mode 100644
| | |
| | | }
|
| | | return Language.StringByID(R.MyInternationalizationString.Close);
|
| | | }
|
| | | |
| | | else if (device.Type == DeviceType.AirSwitch)
|
| | | {
|
| | | //在网关没有回复之前,默认离线
|
| | |
| | | temperature = $"{pMSensor.currentTemperature}℃";
|
| | | pm = $"{pMSensor.currentPmData}μg/m³";
|
| | | return $"{curQuality},{pm},{temperature},{humidity}";
|
| | |
|
| | | } |
| | | else if (device.Type == DeviceType.Airer) |
| | | { |
| | | //是否存在开的状态 |
| | | bool isOpen = false; |
| | | var airer = device as Airer; |
| | | if (airer.OnOffStatus == 1 || |
| | | airer.DryOnOffStatus == 1 || |
| | | airer.WindOnOffStatus == 1 || |
| | | airer.DisinfectOnOffStatus == 1) |
| | | { |
| | | isOpen = true; |
| | | } |
| | | //在网关没有回复之前,默认离线 |
| | | if (device.HadReadDeviceStatu == false) |
| | | { |
| | | return Language.StringByID(R.MyInternationalizationString.uOffLine); |
| | | } |
| | | if (isOpen) |
| | | { |
| | | return Language.StringByID(R.MyInternationalizationString.uOpen1); |
| | | } |
| | | return Language.StringByID(R.MyInternationalizationString.Close); |
| | | }
|
| | | else if (device.Type == DeviceType.Thermostat)
|
| | | {
|