| | |
| | | { |
| | | ///区分出输入条件和输出目标设备 |
| | | var listdevicetype = GetDevice(type); |
| | | var listdevice = GetDeviceUIList(listAllRoom[i], listdevicetype, type); |
| | | var listdevice = GetDeviceUIList(listAllRoom[i], listdevicetype); |
| | | if (listdevice.Count == 0) |
| | | { |
| | | ///过滤掉没有设备的房间 |
| | |
| | | /// </summary> |
| | | /// <param name="room">当前房间</param> |
| | | /// <param name="deviceTypelist">设备类型</param> |
| | | /// /// <param name="type">逻辑类型</param> |
| | | /// <returns></returns> |
| | | public static List<CommonDevice> GetDeviceUIList(Common.Room room, List<DeviceType> deviceTypelist,string type) |
| | | public static List<CommonDevice> GetDeviceUIList(Common.Room room, List<DeviceType> deviceTypelist) |
| | | { |
| | | var deviceUIlist = new List<CommonDevice>(); |
| | | foreach (var deviceKey in room.ListDevice) |
| | |
| | | //暂时不支持S-one门锁;
|
| | | //过滤掉不支持S-one门锁设备;
|
| | | continue;
|
| | | } |
| | | } |
| | | if (type == "condition_mould") |
| | | { |
| | | if (device.Type == DeviceType.IASZone) |
| | | { |
| | | if (device.IasDeviceType != 13) |
| | | {//自动化模板只支持红外传感器 |
| | | continue; |
| | | } |
| | | if (device.ModelIdentifier == "MSPIRB-ZB.10") |
| | | { |
| | | //自动化模板不支持光照度 |
| | | continue; |
| | | } |
| | | |
| | | } |
| | | } |
| | | deviceUIlist.Add(device); |
| | |
| | | { |
| | | break; |
| | | } |
| | | |
| | | if (device.ModelIdentifier == "MSPIRB-ZB.10") |
| | | { |
| | | patm = $"ZigeeLogic/sensor541.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedsensor541.png"; |
| | | } |
| | | else |
| | | { |
| | | patm = $"ZigeeLogic/sensor{iASZonedevice.IasDeviceType}.png"; |
| | | selectedpatm = $"ZigeeLogic/selectedsensor{iASZonedevice.IasDeviceType}.png"; |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.TemperatureSensor: |