From c16f0f8fd1e5374164852a441751abb96a84d300 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 01 七月 2020 12:06:57 +0800
Subject: [PATCH] 2020-7-1-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs
old mode 100755
new mode 100644
index a893a4a..df45fc1
--- a/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs
@@ -41,6 +41,18 @@
                             }
 
                         }
+                        else if (common.Type == DeviceType.IASZone) {
+                            var iASZonedevice = common as IASZone;
+                            if (iASZonedevice.IasDeviceType == 541)
+                            {//鐞冨舰绉诲姩浼犳劅鍣�
+                                if (Common.Logic.CurrentLogic.Conditions[i]["Cluster_ID"] == objecttype["Cluster_ID"])
+                                {
+                                    Common.Logic.CurrentLogic.Conditions.RemoveAt(i);
+                                    Common.Logic.CurrentLogic.Conditions.Insert(i, objecttype);
+                                    return;
+                                }
+                            }
+                        }
                         else
                         {
                             Common.Logic.CurrentLogic.Conditions.RemoveAt(i);

--
Gitblit v1.8.0