From 822861fed1a8732d40d75f15389b0c3d975bf611 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 05 十一月 2021 10:27:44 +0800 Subject: [PATCH] 空调设置温度跳动问题 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs index cc89c35..52305af 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -318,6 +318,14 @@ string strPath = ""; switch (functionType) { + + case SPK.AirSwitch: + { + strPath = "FunctionIcon/Icon/electricalbreaker.png"; + } + break; + case SPK.PanelSocket: + case SPK.ElectricSocket: case SPK.LightSwitch: case SPK.LightRGB: case SPK.LightRGBW: @@ -394,7 +402,11 @@ || device.spk == SPK.LightDimming || device.spk == SPK.LightCCT || device.spk == SPK.LightRGB - || device.spk == SPK.LightRGBW); + || device.spk == SPK.LightRGBW + || device.spk == SPK.AirSwitch + || device.spk == SPK.PanelSocket + || device.spk == SPK.ElectricSocket + ); if (lightjosn != null) { deviceStrTypeList.Add(Language.StringByID(StringId.Lights)); @@ -467,7 +479,10 @@ functionTypeList.Add(SPK.LightDimming); functionTypeList.Add(SPK.LightRGB); functionTypeList.Add(SPK.LightRGBW); - functionTypeList.Add(SPK.LightCCT); + functionTypeList.Add(SPK.LightCCT); + functionTypeList.Add(SPK.AirSwitch); + functionTypeList.Add(SPK.PanelSocket); + functionTypeList.Add(SPK.ElectricSocket); } else if (deviceType == Language.StringByID(StringId.Curtain)) { @@ -558,6 +573,9 @@ deviceTypeList.Add(SPK.SensorPm25); deviceTypeList.Add(SPK.SensorTVOC); deviceTypeList.Add(SPK.SensorHcho); + deviceTypeList.Add(SPK.AirSwitch); + deviceTypeList.Add(SPK.PanelSocket); + deviceTypeList.Add(SPK.ElectricSocket); } break; @@ -574,6 +592,9 @@ deviceTypeList.Add(SPK.AcStandard); deviceTypeList.Add(SPK.HvacAC); deviceTypeList.Add(SPK.FloorHeatStandard); deviceTypeList.Add(SPK.HvacFloorHeat); deviceTypeList.Add(SPK.AirFreshStandard); deviceTypeList.Add(SPK.HvacAirFresh); + deviceTypeList.Add(SPK.AirSwitch); + deviceTypeList.Add(SPK.PanelSocket); + deviceTypeList.Add(SPK.ElectricSocket); } break; } -- Gitblit v1.8.0