old mode 100755
new mode 100644
| | |
| | | if (ac.GetBusId() == subnetID + "_" + deviceID + "_" + receiveBytes[0]) |
| | | { |
| | | ac.curTempType = receiveBytes[1]; |
| | | ac.trait_IndoorTemp.curValue = receiveBytes[2]; |
| | | ac.trait_IndoorTemp.curValue = receiveBytes[2].ToString(); |
| | | ac.trait_on_off.curValue = receiveBytes[8] == 1 ? "on" : "off"; |
| | | ac.curModeIndex = receiveBytes[9]; |
| | | ac.curFanIndex = receiveBytes[10]; |
| | | ac.trait_temp.curValue = receiveBytes[11]; |
| | | ac.trait_temp.curValue = receiveBytes[11].ToString(); |
| | | ac.lastState = ""; |
| | | switch (ac.trait_mode.curValue.ToString()) |
| | | { |
| | |
| | | { |
| | | case "normal": |
| | | fh.lastState = Language.StringByID(StringId.Normal); |
| | | fh.trait_temp.curValue = receiveBytes[4]; |
| | | fh.trait_temp.curValue = receiveBytes[4].ToString(); |
| | | break; |
| | | case "day": |
| | | fh.lastState = Language.StringByID(StringId.Day); |
| | | fh.trait_temp.curValue = receiveBytes[5]; |
| | | fh.trait_temp.curValue = receiveBytes[5].ToString(); |
| | | break; |
| | | case "night": |
| | | fh.lastState = Language.StringByID(StringId.Night); |
| | | fh.trait_temp.curValue = receiveBytes[6]; |
| | | fh.trait_temp.curValue = receiveBytes[6].ToString(); |
| | | break; |
| | | case "timer": |
| | | fh.lastState = Language.StringByID(StringId.Auto); |
| | | if (receiveBytes[8] == 0) |
| | | { |
| | | fh.timeFlag = 0; |
| | | fh.trait_temp.curValue = receiveBytes[5]; |
| | | fh.trait_temp.curValue = receiveBytes[5].ToString(); |
| | | } |
| | | else |
| | | { |
| | | fh.timeFlag = 1; |
| | | fh.trait_temp.curValue = receiveBytes[6]; |
| | | fh.trait_temp.curValue = receiveBytes[6].ToString(); |
| | | } |
| | | break; |
| | | case "away": |
| | | fh.trait_temp.curValue = receiveBytes[7]; |
| | | fh.trait_temp.curValue = receiveBytes[7].ToString(); |
| | | fh.lastState = Language.StringByID(StringId.Away); |
| | | break; |
| | | } |
| | |
| | | case 7: |
| | | case 8: |
| | | case 19: |
| | | ac.trait_temp.curValue = receiveBytes[1]; |
| | | ac.trait_temp.curValue = receiveBytes[1].ToString(); |
| | | break; |
| | | case 5: |
| | | ac.curFanIndex = receiveBytes[1]; |
| | |
| | | { |
| | | if (ac.GetBusId() == subnetID + "_" + deviceID + "_" + receiveBytes[0]) |
| | | { |
| | | ac.trait_IndoorTemp.curValue = receiveBytes[1]; |
| | | ac.trait_IndoorTemp.curValue = receiveBytes[1].ToString(); |
| | | FunctionPage.UpdataStates(ac); |
| | | } |
| | | } |