| | |
| | | { |
| | | if (function.GetBusId() == subnetID + "_" + deviceID + "_" + receiveBytes[0]) |
| | | { |
| | | if (function.functionCategory == FunctionCategory.Light) |
| | | if (function.functionCategory == FunctionCategory.Light&& function.functionType != FunctionType.RGB) |
| | | { |
| | | var light = function as Light; |
| | | //if (receiveBytes[2] == 0 && light.on_off == "off") |
| | |
| | | if (rgb.functionType == FunctionType.RGB) |
| | | { |
| | | rgb.on_off = receiveBytes[1] > 0 ? "on" : "off"; |
| | | MainPage.Log($"Logic ACK {receiveBytes[1]}"); |
| | | if (receiveBytes[1] >0) |
| | | { |
| | | rgb.brightness = receiveBytes[1]; |