| | |
| | | /// <summary>
|
| | | /// 发送获取状态命令
|
| | | /// </summary>
|
| | | /// <param name="i_device"></param>
|
| | | public override void SendStatuComand(CommonDevice i_device)
|
| | | public override void SendStatuComand()
|
| | | {
|
| | | (i_device as TemperatureSensor).ReadTemperatureOrHumidity();
|
| | | Device.DeviceLogic.ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(i_device);
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //如果住宅为虚拟住宅,则此功能无效
|
| | | return;
|
| | | }
|
| | | //检测能否发送获取状态命令
|
| | | if (this.CheckCanSendStatuComand() == true)
|
| | | {
|
| | | (this.device as TemperatureSensor).ReadTemperatureOrHumidity();
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|