From d8545fbd1b36a6766c57c987e5d89862b470fed9 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 03 九月 2020 09:46:29 +0800 Subject: [PATCH] 2020-09-03 1.修改风扇默认为关状态。2.Alexa添加设备时,去掉空调和通用开关选择添加支持。 3.场景增加通用开关添加和发送控制支持,Alexa 的场景同样增加通用开关的支持。 --- Crabtree/SmartHome/HDL/Operation/Control.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/Control.cs b/Crabtree/SmartHome/HDL/Operation/Control.cs index 070dcf9..8bbe6cf 100644 --- a/Crabtree/SmartHome/HDL/Operation/Control.cs +++ b/Crabtree/SmartHome/HDL/Operation/Control.cs @@ -388,13 +388,13 @@ { add (); if (CommonPage.IsRemote && !isLocal) { - if (!SmartHome.MqttCommon.IsGatewayOnline) { - System.Threading.Thread.Sleep (500); - Utlis.WriteLine ($"缃戝叧涓嶅湪绾� 鍙栨秷鍙戦��:" + SendFlag); - Packet.HaveSendCount = 3; - allDone.Set (); - return; - } + //if (!SmartHome.MqttCommon.IsGatewayOnline) { + // System.Threading.Thread.Sleep (500); + // Utlis.WriteLine ($"缃戝叧涓嶅湪绾� 鍙栨秷鍙戦��:" + SendFlag); + // Packet.HaveSendCount = 3; + // allDone.Set (); + // return; + //} if (IsEnterBackground) { System.Threading.Thread.Sleep (500); Utlis.WriteLine ("宸茶繘鍏ュ悗鍙� 鍙栨秷鍙戦��"); -- Gitblit v1.8.0