| | |
| | | namespace ZigBee.Device |
| | | { |
| | | [System.Serializable] |
| | | public class FreshAir : Panel |
| | | public class FreshAir : CommonDevice |
| | | { |
| | | /// <summary> |
| | | /// 该类(新风对象)包含新风设备和新风面板 |
| | |
| | | /// 风速模式 |
| | | /// <para>5:自动</para> |
| | | /// <para>6:Smart</para> |
| | | /// <para>7:手动</para> |
| | | /// <para>15:手动</para> |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int currentFanMode = 0; |
| | | /// <summary> |
| | | /// 风速档位 |
| | |
| | | /// <para>2:中风</para> |
| | | /// <para>3:高风 </para> |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int currentFanSpeed = 0; |
| | | /// <summary> |
| | | /// 风扇状态 |
| | | /// <para>0:关闭 </para> |
| | | /// <para>4:打开 </para> |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public int currentFanStatus = 0; |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | if (topic == gatewayID + "/" + "Error_Respon") |
| | | { |
| | | var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.getGatewayBaseInfo.gwID }; |
| | | var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); |
| | | var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<CommonDevice.ErrorResponData>(jobject["Data"].ToString()); |
| | | |
| | | if (temp == null) |
| | | { |
| | |
| | | |
| | | if (topic == gatewayID + "/" + "SetWritableValue_Respon") |
| | | { |
| | | var gatewayTemp = new ZbGateway() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.getGatewayBaseInfo.gwID }; |
| | | var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<SetWritableValueResponData>(jobject["Data"].ToString()); |
| | | |
| | | if (tempData == null) |
| | |
| | | /// <summary> |
| | | /// 手动 |
| | | /// </summary> |
| | | Manual = 7, |
| | | Manual = 15, |
| | | }
|
| | | } |
| | | } |