| | |
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //直接添加缓存
|
| | | ModelData.DeviceModelDataLogic.Current.SetAcModeSupport(device, data, "SetWritableValue");
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, null);
|
| | | return true;
|
| | | }
|
| | | //发送数据
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | //添加缓存
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcModeSupport(device, data, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //直接添加缓存
|
| | | ModelData.DeviceModelDataLogic.Current.SetAcSwingModeSupport(device, data, "SetWritableValue");
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, null);
|
| | | return true;
|
| | | }
|
| | | //发送数据
|
| | |
| | | this.ShowTipMsg(msg);
|
| | | return false;
|
| | | }
|
| | |
|
| | | //添加缓存
|
| | | TemplateData.TemplateDeviceDataLogic.Current.SetAcSwingModeSupport(device, data, result.JsonData[0]);
|
| | |
|
| | | return true;
|
| | | }
|
| | |
| | | ///读取IRACC模块固件版本
|
| | | /// <para>reserve:0-ff</para>
|
| | | /// </summary>
|
| | | public async void UpgradeAsync(CommonDevice device, SendUpgradeData upgradeData)
|
| | | public void UpgradeAsync(CommonDevice device, SendUpgradeData upgradeData)
|
| | | {
|
| | | var Gateway = device.Gateway;
|
| | | if (Gateway == null)
|
| | |
| | | ///读取IRACC模块固件版本
|
| | | /// <para>status:0--成功;1--失败;ff--无效 .</para>
|
| | | /// </summary>
|
| | | public async void SendFinishAsync(CommonDevice device, int status)
|
| | | public void SendFinishAsync(CommonDevice device, int status)
|
| | | {
|
| | | var Gateway = device.Gateway;
|
| | | if (Gateway == null)
|