| | |
| | | { |
| | | //过滤掉不支持的设备 |
| | | continue; |
| | | }
|
| | | if (device.Type == DeviceType.DoorLock)
|
| | | {
|
| | | var myInfo = LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
|
| | | if (myInfo.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone)
|
| | | {
|
| | | //暂时不支持S-one门锁;
|
| | | //过滤掉不支持S-one门锁设备;
|
| | | continue;
|
| | | } |
| | | if (device.Type == DeviceType.DoorLock) |
| | | { |
| | | var myInfo = LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); |
| | | if (myInfo.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone) |
| | | { |
| | | //暂时不支持S-one门锁; |
| | | //过滤掉不支持S-one门锁设备; |
| | | continue; |
| | | } |
| | | } |
| | | if (type == "condition_mould") |
| | |
| | | break; |
| | | case DeviceType.TemperatureSensor: |
| | | { |
| | | var temperatureSensor = device as TemperatureSensor; |
| | | if (temperatureSensor.SensorDiv == 1) |
| | | |
| | | |
| | | //获取设备类型 |
| | | var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); |
| | | //空气质量传感器 |
| | | if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor) |
| | | { |
| | | patm = $"ZigeeLogic/temperature.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedtemperature.png"; |
| | | patm = $"ZigeeLogic/airquality.png"; |
| | | selectedpatm = $"ZigeeLogic/airqualityselected.png"; |
| | | } |
| | | else |
| | | { |
| | | patm = "ZigeeLogic/humidity.png"; |
| | | selectedpatm = "ZigeeLogic/selectedhumidity.png"; |
| | | var temperatureSensor = device as TemperatureSensor; |
| | | if (temperatureSensor.SensorDiv == 1) |
| | | { |
| | | patm = $"ZigeeLogic/temperature.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedtemperature.png"; |
| | | } |
| | | else |
| | | { |
| | | patm = "ZigeeLogic/humidity.png"; |
| | | selectedpatm = "ZigeeLogic/selectedhumidity.png"; |
| | | } |
| | | } |
| | | } |
| | | break; |