From 98ceb6bd2021f9ff136cda27eef28676dd7b5d92 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 21 五月 2020 13:24:02 +0800 Subject: [PATCH] 最后的版本 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs index 198308a..50c8582 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs @@ -58,6 +58,8 @@ this.InitDeviceData(); //鍒濆鍖栧満鏅� this.InitSceneData(); + //鍒锋柊宸﹁竟鍒锋柊鎴块棿瑙嗗浘鍒楄〃 + HdlRoomLogic.Current.RefreshRoomListView(); } #endregion @@ -105,6 +107,9 @@ house.Save(false); Config.Instance.HomeId = house.Id; Config.Instance.Home = House.GetHouseByHouseId(house.Id); + + //棰勫垱寤轰釜浜轰腑蹇冨叏閮ㄧ殑鏂囦欢澶� + UserCenterLogic.CreatAllUserCenterDirectory(); } #endregion @@ -909,10 +914,24 @@ device.ModelIdentifier = ModelIdentifier; device.CurrentGateWayId = string.Empty; - //榛樿姣忎釜璁惧閮藉彲浠ュ畾浣� + //榛樿姣忎釜璁惧閮藉彲浠ュ畾浣�,鎷ユ湁寮�鍏冲姛鑳� device.InClusterList.Add(new CommonDevice.InClusterObj { InCluster = 3 }); device.OutClusterList.Add(new CommonDevice.OutClusterObj { OutCluster = 3 }); - + if (device.Type == DeviceType.AirSwitch || device.Type == DeviceType.OnOffOutput + || device.Type == DeviceType.DimmableLight || device.Type == DeviceType.ColorDimmableLight) + { + device.InClusterList.Add(new CommonDevice.InClusterObj { InCluster = 6 }); + device.OutClusterList.Add(new CommonDevice.OutClusterObj { OutCluster = 6 }); + } + if (device.Type == DeviceType.OnOffOutput || device.Type == DeviceType.DimmableLight + || device.Type == DeviceType.ColorDimmableLight) + { + device.InClusterList.Add(new CommonDevice.InClusterObj { InCluster = 8 }); + } + if (device.Type == DeviceType.WindowCoveringDevice) + { + device.InClusterList.Add(new CommonDevice.InClusterObj { InCluster = 258 }); + } //娣诲姞铏氭嫙璁惧 LocalDevice.Current.AddVirtualDeviceToMemory(device); -- Gitblit v1.8.0