From d72ca686a3e262693f8a6e45e747e8e8da43335b Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 06 七月 2021 09:39:03 +0800
Subject: [PATCH] 2021-07-06 1.更新

---
 HDL_ON/Entity/Function/Function.cs |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 56 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 177d948..a6beab4 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -768,7 +768,7 @@
         /// <summary>
         /// 瀹ゅ唴娓╁害
         /// </summary>
-        public const string IndoorTemp = "room_temp";
+        public const string RoomTemp = "room_temp";
         /// <summary>
         /// value
         /// </summary>
@@ -838,7 +838,7 @@
         /// </summary>
         public const string AnionTimeLeft = "anion_time_surplus";
         /// <summary>
-        /// 鎵撳紑鐧昏(椋庢墖)
+        /// 鎵撳紑绛夌骇(椋庢墖)
         /// </summary>
         public const string OpenLevel = "openLevel";
         /// <summary>
@@ -846,6 +846,30 @@
         /// </summary>
         public const string Key = "key";
 
+        /// <summary>
+        /// 鑺傝兘
+        /// </summary>
+        public const string Energy = "energy";
+        /// <summary>
+        /// 婀垮害
+        /// </summary>
+        public const string Humidity = "humidity";
+        /// <summary>
+        /// 瀹ゅ唴娓╁害
+        /// </summary>
+        public const string IndoorTemp = "indoor_temp";
+        /// <summary>
+        /// 瀹ゅ唴婀垮害
+        /// </summary>
+        public const string IndoorHumidity = "indoor_humidity";
+        /// <summary>
+        /// 杩囨护缃戝墿浣欓噺
+        /// </summary>
+        public const string FilterRemain = "filter_remain";
+        /// <summary>
+        /// 杩囨护缃戞槸鍚﹁秴鏃惰鍛�
+        /// </summary>
+        public const string FilterTimeout = "filter_timeout";
 
         #region tuya
         /// <summary>
@@ -895,7 +919,13 @@
         {
             get
             {
-                return Convert.ToByte(loopId, 16);
+                try
+                {
+                    return Convert.ToByte(loopId, 16);
+                }catch
+                {
+                    return 0;
+                }
             }
         }
 
@@ -1022,6 +1052,10 @@
         /// 锛堟柊椋庯級
         /// </summary>
         public const string AirFreshStandard = "airFresh.standard";
+        /// <summary>
+        /// 鏂伴 鈥斺�旈噾鑼傚畾鍒�
+        /// </summary>
+        public const string AirFreshJinmao = "airFresh.jinmao";
 
         /// <summary>
         /// 鏂伴spk鍒楄〃
@@ -1031,6 +1065,24 @@
         {
             var spkList = new List<string>();
             spkList.Add(AirFreshStandard);
+            spkList.Add(AirFreshJinmao);
+            return spkList;
+        }
+        #endregion
+
+        #region 鑳芥簮
+        /// <summary>
+        /// 鑳芥簮妯″潡
+        /// </summary>
+        public const string EnergyStandard = "energy.standard";
+        /// <summary>
+        /// 鑳芥簮spk鍒楄〃
+        /// </summary>
+        /// <returns></returns>
+        public static List<string> EnergySpkList()
+        {
+            var spkList = new List<string>();
+            spkList.Add(EnergyStandard);
             return spkList;
         }
         #endregion
@@ -1181,6 +1233,7 @@
         /// 绾㈠閬ユ帶鍣�
         /// </summary>
         public const string IrLearn = "ir.learn";
+
         #region 娑傞甫
         /// <summary>
         /// 瀹剁數銆佹秱楦︾┖姘斿噣鍖栧櫒

--
Gitblit v1.8.0