From 474783457240f62d4f926e628fea2abb1c4b8b0d Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 11 十月 2021 14:53:37 +0800 Subject: [PATCH] spk更新异常,安防中心传感器状态无显示 --- HDL_ON/Entity/Function/Function.cs | 34 ++++++++++++++++++++++++---------- 1 files changed, 24 insertions(+), 10 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 4c47af2..4c6031f 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -619,6 +619,8 @@ case FunctionAttributeKey.SetTemp: case FunctionAttributeKey.FanSpeed: case FunctionAttributeKey.Percent: + case FunctionAttributeKey.CCT: + case FunctionAttributeKey.RGB: //case FunctionAttributeKey.FadeTime: if (attr.curValue.ToString() == "{}") { @@ -657,12 +659,13 @@ { vv = 26; } - sFunc.status.Add(new SceneFunctionStatus() { key = attr.key, value = Convert.ToInt32(vv).ToString() }); + sFunc.status.Add(new SceneFunctionStatus() { key = attr.key, value = Convert.ToInt32(vv).ToString(), max = attr.max, min = attr.min }); } else { - sFunc.status.Add(new SceneFunctionStatus() { key = attr.key, value = attr.curValue.ToString() }); + sFunc.status.Add(new SceneFunctionStatus() { key = attr.key, value = attr.curValue.ToString(), max = attr.max, min = attr.min }); } + break; } } @@ -919,10 +922,29 @@ /// value /// </summary> public const string Value = "value"; + + public const string Co2 = "co2"; + public const string Temperature = "temperature"; + public const string Hcho = "hcho"; + public const string Humidity = "humidity"; + public const string Pm25 = "pm25"; + public const string Tvoc = "tvoc"; /// <summary> /// 鐘舵��,浼犳劅鍣� /// </summary> public const string Status = "status"; + /// <summary> + /// 鐘舵��(鏈夋棤浜�) + /// </summary> + public const string PeopleStatus = "people_status"; + /// <summary> + /// 鐘舵��(鎶ヨ) + /// </summary> + public const string AlarmStatus = "alarm_status"; + /// <summary> + /// 鐘舵��(闂悎銆佹墦寮�) + /// </summary> + public const string ContactStatus = "contact_status"; /// <summary> /// 姣背娉紶鎰熷櫒锛屽姩浣滅姸鎬� /// </summary> @@ -1000,14 +1022,6 @@ /// 鑺傝兘 /// </summary> public const string Energy = "energy"; - /// <summary> - /// 婀垮害 - /// </summary> - public const string Humidity = "humidity"; - /// <summary> - /// 娓╁害 - /// </summary> - public const string Temperature = "temperature"; /// <summary> /// 瀹ゅ唴娓╁害 /// </summary> -- Gitblit v1.8.0