From af954b34ffad38c3b11bd82caa54d5fb0c36e6ec Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 13 十二月 2023 16:19:12 +0800 Subject: [PATCH] 2023年12月13日16:18:38 --- HDL_ON/Entity/Function/Function.cs | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index b8a2894..011c185 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -173,6 +173,13 @@ string iconPath = spk.Replace(".", ""); switch (spk) { + case SPK.SensorDryContact2: + case SPK.OtherCommon: + iconPath = "sensordryContact"; + break; + //case SPK.SensorLight: + // iconPath = "lightswitch"; + // break; case SPK.AirSwitchP3: iconPath = "electricalbreaker"; break; @@ -451,7 +458,7 @@ public bool online { get { - if (spk == SPK.AirSwitchP3) + if (spk == SPK.AirSwitchP3|| spk == SPK.ElectricalTvHisense) { return _online; } @@ -1487,6 +1494,10 @@ public const string Temperature = "temperature"; public const string Hcho = "hcho"; public const string Humidity = "humidity"; + /// <summary> + /// 鐓у害 + /// </summary> + public const string Illuminance = "illuminance"; public const string Pm25 = "pm25"; public const string Tvoc = "tvoc"; /// <summary> -- Gitblit v1.8.0