| | |
| | | byte lightBri = Convert.ToByte(function.GetAttrState(FunctionAttributeKey.Brightness)); |
| | | if (lightBri == 0) |
| | | { |
| | | b = 100; |
| | | b1 = 100; |
| | | } |
| | | else |
| | | { |
| | | b = lightBri; |
| | | b1 = lightBri; |
| | | } |
| | | } |
| | | ControlBytesSend(Command.SetSingleLight, subnetId, deviceId, new byte[] { |
| | |
| | | ControlBytesSend(Command.SetSingleLight, subnetId, deviceId, new byte[] { function.bus.LoopId, function.trait_on_off.curValue.ToString() == "on" ? (byte)100 : (byte)0 }); |
| | | break; |
| | | } |
| | | break; |
| | | case FunctionCategory.AirFresh: |
| | | |
| | | break; |
| | | } |
| | | #region 发送命令立即更新UI |
| | |
| | | case Command.SetACMode: |
| | | case Command.ReadFloorHeat: |
| | | case Command.SetFloorHeat: |
| | | case Command.FreshAirRead: |
| | | case Command.FreshAirControl: |
| | | case Command.FreshAirRead_JinMao: |
| | | case Command.FreshAirControl_JinMao: |
| | | this.sendFlag += string.Format("{0}", target.AddData[0]); |
| | | break; |
| | | case Command.SetLogicLoopColor: |