From 57da7ebc02985578f65fd3435fd83e482bd76c45 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 26 二月 2021 09:21:55 +0800
Subject: [PATCH] 2021-02-26 1.场景转换调光灯增加on_off属性

---
 Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs b/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs
old mode 100755
new mode 100644
index f37c812..1aa6b00
--- a/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs
+++ b/Crabtree/SmartHome/HDL/Operation/Device/FoolHeat.cs
@@ -153,5 +153,24 @@
             WorkMode = 9,
             Null = 999,
         }
-	}
+
+
+        /// <summary>
+        /// 妯″紡A鍗忚灞炴��
+        /// </summary>
+        /// <returns></returns>
+        public string SetModeAttribute {
+            get {
+                return TemperatureType switch {
+                    1 => "normal",
+                    2 => "day",
+                    3 => "night",
+                    4 => "away",
+                    5 => "timer",
+                    _ => "normal",
+                };
+            }
+        }
+
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0