|
@@ -412,11 +412,12 @@ def parseRXCode(rx_code, source_cul):
|
|
|
|
|
|
log_write(" CUL '" + source_cul + "' received '" + rx_code + "' => DEV: " + receivedForDevice + ", CMD: " + receivedCmnd)
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
rx_code_stripped = rx_code[0:-2]
|
|
|
if not sucessfullyParsedITCode and rx_code_stripped in RXcodesToDevFunction_IT:
|
|
|
- if debug: log_write(" code found in device config with last 16 bit stripped")
|
|
|
+ if debug: log_write(" code found in device config with last 8 bit stripped")
|
|
|
receivedForDevice = RXcodesToDevFunction_IT[rx_code_stripped][0]
|
|
|
receivedCmnd = RXcodesToDevFunction_IT[rx_code_stripped][1]
|
|
|
|
|
@@ -433,6 +434,28 @@ def parseRXCode(rx_code, source_cul):
|
|
|
if verbose:
|
|
|
|
|
|
log_write(" CUL '" + source_cul + "' received '" + rx_code_stripped + "' => DEV: " + receivedForDevice + ", CMD: " + receivedCmnd + ", VALUE: " + receivedValue)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ rx_code_stripped = rx_code[0:-3]
|
|
|
+ if not sucessfullyParsedITCode and rx_code_stripped in RXcodesToDevFunction_IT:
|
|
|
+ if debug: log_write(" code found in device config with last 12 bit stripped")
|
|
|
+ receivedForDevice = RXcodesToDevFunction_IT[rx_code_stripped][0]
|
|
|
+ receivedCmnd = RXcodesToDevFunction_IT[rx_code_stripped][1]
|
|
|
+
|
|
|
+ receivedValue = rx_code[-3:]
|
|
|
+
|
|
|
+
|
|
|
+ if "convertValueToDecimal" in devdata[receivedForDevice]:
|
|
|
+ if devdata[receivedForDevice]["convertValueToDecimal"] == True:
|
|
|
+ if debug: log_write(" converting value to decimal")
|
|
|
+ receivedValue = str(int(receivedValue, base=16))
|
|
|
+
|
|
|
+ sucessfullyParsedITCode = True
|
|
|
+ if debug: log_write(" DEV: " + receivedForDevice + ", CMD: " + receivedCmnd + ", VALUE: " + receivedValue + ", RX: " + rx_code_stripped)
|
|
|
+ if verbose:
|
|
|
+
|
|
|
+ log_write(" CUL '" + source_cul + "' received '" + rx_code_stripped + "' => DEV: " + receivedForDevice + ", CMD: " + receivedCmnd + ", VALUE: " + receivedValue)
|
|
|
|
|
|
|
|
|
if not sucessfullyParsedITCode:
|