| | |
| | | //Thermostat功能 |
| | | if ((common as ZigBee.Device.AC).DeviceStatusReport.CluterID == 513) |
| | | { |
| | | var attriButeList = (common as ZigBee.Device.AC).DeviceStatusReport.AttriBute; |
| | | var attriButeList = common.DeviceStatusReport.AttriBute; |
| | | if (attriButeList == null || attriButeList.Count == 0) |
| | | { |
| | | return; |
| | | } |
| | | ac.DeviceStatusReport = (common as ZigBee.Device.AC).DeviceStatusReport; |
| | | ac.DeviceStatusReport = common.DeviceStatusReport; |
| | | switch (attriButeList[0].AttributeId) |
| | | { |
| | | case 0: |
| | |
| | | /// <summary> |
| | | /// 初始化 |
| | | /// </summary> |
| | | /// <param name="device">Device.</param> |
| | | /// <param name="room">Room.</param> |
| | | private void InitAC(DeviceUI device, Common.Room room) |
| | | /// <param name="dev">Device.</param> |
| | | /// <param name="curRoom">Room.</param> |
| | | private void InitAC(DeviceUI dev, Common.Room curRoom) |
| | | { |
| | | ZbGateway.StatusList.Add(this); |
| | | this.device = device; |
| | | this.room = room; |
| | | this.device = dev; |
| | | this.room = curRoom; |
| | | this.ac = device.CommonDevice as ZigBee.Device.AC; |
| | | |
| | | //添加topview |