黄学彪
2020-12-14 e90209beae6a4e822cecb18e6889f8bda23f630e
ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs
@@ -630,6 +630,11 @@
                    {
                        cardContr = new Controls.DevicePmSensorCardControl();
                    }
                    // 晾衣架
                    else if (device.Type == DeviceType.Airer)
                    {
                        cardContr = new Controls.DeviceAirerCardControl();
                    }
                    //彩灯(调光器)
                    else if (device.Type == DeviceType.DimmableLight)
                    {
@@ -1121,6 +1126,15 @@
                {
                    //处理一般设备的上报数据
                    string mainKeys = LocalDevice.Current.GetDeviceMainKeys(report);
                    //晾衣架上报需要特殊处理,其他上报的回路统一转为端点1
                    var tempList = LocalDevice.Current.GetDevicesByMac(report.DeviceAddr);
                    var tempDeviceEnum = LocalDevice.Current.GetMyDeviceEnumInfo(tempList);
                    if (tempDeviceEnum.ConcreteType == Common.DeviceConcreteType.Airer)
                    {
                        mainKeys = report.DeviceAddr + "_" + 1;
                    }
                    if (this.dicDeviceCardControl.ContainsKey(mainKeys) == true)
                    {
                        //刷新卡片信息