mac
2024-07-25 3f6685c77beeb12baf840733fb890860f4c26e7c
HDL_ON/Entity/Function/SecurityAlarm.cs
@@ -336,6 +336,7 @@
                    }
                    break;
                case SPK.SensorPir:
                case SPK.SensorPirHold:
                    if (inputValue == "true")
                    {
                        text += Language.StringByID(StringId.youren) + " ";
@@ -394,6 +395,7 @@
                    }
                    break;
                case SPK.SensorPir:
                case SPK.SensorPirHold:
                    foreach (var con in condition)
                    {
                        if (con.value == "true")
@@ -474,11 +476,11 @@
    {
        /// <summary>
        /// 控制目标类型
        /// 0:设备
        /// 1:场景
        /// 2:自动化
        /// 1:设备
        /// 2:场景
        /// 3:自动化
        /// </summary>
        public string target_type = "0";
        public string target_type = "1";
        /// <summary>
        /// 输出目标的sid
        /// </summary>
@@ -600,7 +602,7 @@
        public string StateText()
        {
            string text = "";
            if (target_type == "0")
            if (target_type == "1")
            {
                switch (spk)
                {
@@ -635,7 +637,7 @@
                        }
                        break;
                }
            }else if(target_type == "1")
            }else if(target_type == "2")
            {
                text = Language.StringByID(StringId.Open);
            }