| | |
| | | //过滤掉不支持的设备 |
| | | 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; |
| | | } |
| | | } |
| | | deviceUIlist.Add(device); |
| | | } |
| | | return deviceUIlist; |
| | |
| | | deviceTypeList.Add(DeviceType.Thermostat); |
| | | deviceTypeList.Add(DeviceType.AirSwitch); |
| | | ///门锁特殊 |
| | | deviceTypeList.Add(DeviceType.DoorLock); |
| | | // deviceTypeList.Add(DeviceType.DoorLock); |
| | | } |
| | | break; |
| | | case "condition_mould": |
| | |
| | | deviceTypeList.Add(DeviceType.Thermostat); |
| | | deviceTypeList.Add(DeviceType.AirSwitch); |
| | | ///门锁特殊 |
| | | deviceTypeList.Add(DeviceType.DoorLock); |
| | | // deviceTypeList.Add(DeviceType.DoorLock); |
| | | } |
| | | break; |
| | | |
| | |
| | | { |
| | | succeed = true; |
| | | CurrentLogic.LogicId = logicifon.LogicId; |
| | | Common.Logic.LogicList.Add(CurrentLogic); |
| | | if (LogicView.IfString._LockLogic == if_logic) |
| | | { |
| | | //门锁联动事件逻辑列表 |
| | | Common.Logic.LockLogicList.Add(CurrentLogic); |
| | | } |
| | | else |
| | | { |
| | | //自动化逻辑列表 |
| | | Common.Logic.LogicList.Add(CurrentLogic); |
| | | |
| | | } |
| | | if (tag) |
| | | { |
| | | Send.Zj(tag, CurrentLogic); |
| | |
| | | |
| | | if (LogicView.IfString._Logic == if_logic) |
| | | { |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic"); |
| | | if (CurrentLogic.LogicType == 0) |
| | | { |
| | | |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic"); |
| | | //只刷新分类上下滑动view; |
| | | Phone.Category.CategoryMainForm.instance?.RefreshBodyView(); |
| | | // Category.Category.instance?.RefreshBodyView(); |
| | |
| | | deviceTarget.Show(str1, str2); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 界面高度 |
| | | /// </summary> |
| | | public static int H = 1922; |
| | | } |
| | | } |