[2021-06-06 08:34:47][DEBUG] : Start decoding packet type 0x52 [2021-06-06 08:34:47][DEBUG] : Subtype = TH1 is THGN122/123, THGN132, THGR122/228/238/268 [2021-06-06 08:34:47][DEBUG] : Data : {'packetlen': '0x0A', 'packettype': '0x52', 'subtype': '0x01', 'seqnbr': '0xD1', 'id1': '0x94', 'id2': '0x01', 'temperaturesign': '', 'temperature': 197, 'humidity': 54, 'humidity_status': 0, 'battery': 100, 'rssi': 6} [2021-06-06 08:34:47][DEBUG] : Decoded info : {'packettype': '0x52', 'subtype': '0x01', 'id': '9401', 'temperature': '19.7', 'humidity': 54, 'humidity_status': 0, 'battery': 100, 'rssi': 6} [2021-06-06 08:34:47][DEBUG] : Device is known id : 9401 [2021-06-06 08:34:47][DEBUG] : Send to jeedom : {'devices': {'940152': {'packettype': '0x52', 'subtype': '0x01', 'id': '9401', 'temperature': '19.7', 'humidity': 54, 'humidity_status': 0, 'battery': 100, 'rssi': 6}}} [2021-06-06 08:34:47][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2021-06-06 08:34:47][DEBUG] : {"devices":{"940152":{"packettype":"0x52","subtype":"0x01","id":"9401","temperature":"19.7","humidity":54,"humidity_status":0,"battery":100,"rssi":6}}} [2021-06-06 08:34:47][DEBUG] : http://127.0.0.1:80 "POST /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17 HTTP/1.1" 200 0 [2021-06-06 08:34:53][DEBUG] : Message: 0a5201d2680100c4390069 [2021-06-06 08:34:53][DEBUG] : Decode : 0a5201d2680100c4390069 [2021-06-06 08:34:53][DEBUG] : Test message: 0a5201d2680100c4390069 [2021-06-06 08:34:53][DEBUG] : PacketType: 0x52 [2021-06-06 08:34:53][DEBUG] : Length: 11 [2021-06-06 08:34:53][DEBUG] : Start decoding packet type 0x52 [2021-06-06 08:34:53][DEBUG] : Subtype = TH1 is THGN122/123, THGN132, THGR122/228/238/268 [2021-06-06 08:34:53][DEBUG] : Data : {'packetlen': '0x0A', 'packettype': '0x52', 'subtype': '0x01', 'seqnbr': '0xD2', 'id1': '0x68', 'id2': '0x01', 'temperaturesign': '', 'temperature': 196, 'humidity': 57, 'humidity_status': 0, 'battery': 100, 'rssi': 6} [2021-06-06 08:34:53][DEBUG] : Decoded info : {'packettype': '0x52', 'subtype': '0x01', 'id': '6801', 'temperature': '19.6', 'humidity': 57, 'humidity_status': 0, 'battery': 100, 'rssi': 6} [2021-06-06 08:34:53][DEBUG] : Device is known id : 6801 [2021-06-06 08:34:53][DEBUG] : Send to jeedom : {'devices': {'680152': {'packettype': '0x52', 'subtype': '0x01', 'id': '6801', 'temperature': '19.6', 'humidity': 57, 'humidity_status': 0, 'battery': 100, 'rssi': 6}}} [2021-06-06 08:34:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2021-06-06 08:34:53][DEBUG] : {"devices":{"680152":{"packettype":"0x52","subtype":"0x01","id":"6801","temperature":"19.6","humidity":57,"humidity_status":0,"battery":100,"rssi":6}}} [2021-06-06 08:34:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17 HTTP/1.1" 200 0 [2021-06-06 08:34:54][DEBUG] : Message: 0a5201d3e70100ce3a0159 [2021-06-06 08:34:54][DEBUG] : Decode : 0a5201d3e70100ce3a0159 [2021-06-06 08:34:54][DEBUG] : Test message: 0a5201d3e70100ce3a0159 [2021-06-06 08:34:54][DEBUG] : PacketType: 0x52 [2021-06-06 08:34:54][DEBUG] : Length: 11 [2021-06-06 08:34:54][DEBUG] : Start decoding packet type 0x52 [2021-06-06 08:34:54][DEBUG] : Subtype = TH1 is THGN122/123, THGN132, THGR122/228/238/268 [2021-06-06 08:34:54][DEBUG] : Data : {'packetlen': '0x0A', 'packettype': '0x52', 'subtype': '0x01', 'seqnbr': '0xD3', 'id1': '0xE7', 'id2': '0x01', 'temperaturesign': '', 'temperature': 206, 'humidity': 58, 'humidity_status': 1, 'battery': 100, 'rssi': 5} [2021-06-06 08:34:54][DEBUG] : Decoded info : {'packettype': '0x52', 'subtype': '0x01', 'id': 'E701', 'temperature': '20.6', 'humidity': 58, 'humidity_status': 1, 'battery': 100, 'rssi': 5} [2021-06-06 08:34:54][DEBUG] : Device is known id : E701 [2021-06-06 08:34:54][DEBUG] : Send to jeedom : {'devices': {'E70152': {'packettype': '0x52', 'subtype': '0x01', 'id': 'E701', 'temperature': '20.6', 'humidity': 58, 'humidity_status': 1, 'battery': 100, 'rssi': 5}}} [2021-06-06 08:34:54][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2021-06-06 08:34:54][DEBUG] : {"devices":{"E70152":{"packettype":"0x52","subtype":"0x01","id":"E701","temperature":"20.6","humidity":58,"humidity_status":1,"battery":100,"rssi":5}}} [2021-06-06 08:34:54][DEBUG] : http://127.0.0.1:80 "POST /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17 HTTP/1.1" 200 0 [2021-06-06 08:35:06][DEBUG] : Message: 0a5201d4930100cf310160 [2021-06-06 08:35:06][DEBUG] : Decode : 0a5201d4930100cf310160 [2021-06-06 08:35:06][DEBUG] : Test message: 0a5201d4930100cf310160 [2021-06-06 08:35:06][DEBUG] : PacketType: 0x52 [2021-06-06 08:35:06][DEBUG] : Length: 11 [2021-06-06 08:35:06][DEBUG] : Start decoding packet type 0x52 [2021-06-06 08:35:06][DEBUG] : Subtype = TH1 is THGN122/123, THGN132, THGR122/228/238/268 [2021-06-06 08:35:06][DEBUG] : Data : {'packetlen': '0x0A', 'packettype': '0x52', 'subtype': '0x01', 'seqnbr': '0xD4', 'id1': '0x93', 'id2': '0x01', 'temperaturesign': '', 'temperature': 207, 'humidity': 49, 'humidity_status': 1, 'battery': 10, 'rssi': 6} [2021-06-06 08:35:06][DEBUG] : Decoded info : {'packettype': '0x52', 'subtype': '0x01', 'id': '9301', 'temperature': '20.7', 'humidity': 49, 'humidity_status': 1, 'battery': 10, 'rssi': 6} [2021-06-06 08:35:06][DEBUG] : Device is known id : 9301 [2021-06-06 08:35:06][DEBUG] : Send to jeedom : {'devices': {'930152': {'packettype': '0x52', 'subtype': '0x01', 'id': '9301', 'temperature': '20.7', 'humidity': 49, 'humidity_status': 1, 'battery': 10, 'rssi': 6}}} [2021-06-06 08:35:06][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80 [2021-06-06 08:35:06][DEBUG] : {"devices":{"930152":{"packettype":"0x52","subtype":"0x01","id":"9301","temperature":"20.7","humidity":49,"humidity_status":1,"battery":10,"rssi":6}}} [2021-06-06 08:35:06][DEBUG] : http://127.0.0.1:80 "POST /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17 HTTP/1.1" 200 0 [2021-06-06 08:35:07][DEBUG] : Client connected to [127.0.0.1:52464] [2021-06-06 08:35:07][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0710061041040000"]}' [2021-06-06 08:35:07][DEBUG] : Client disconnected from [127.0.0.1:52464] [2021-06-06 08:35:07][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:35:07][DEBUG] : Test message: 0710061041040000 [2021-06-06 08:35:07][DEBUG] : flushOutput serial port [2021-06-06 08:35:07][DEBUG] : flushInput serial port [2021-06-06 08:35:07][DEBUG] : Write message to serial port [2021-06-06 08:35:07][DEBUG] : Write data to serial port : 0710061041040000 [2021-06-06 08:35:07][DEBUG] : Write message ok : 0710061041040000 [2021-06-06 08:35:08][DEBUG] : Client connected to [127.0.0.1:52468] [2021-06-06 08:35:08][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0710061041040000"]}' [2021-06-06 08:35:08][DEBUG] : Client disconnected from [127.0.0.1:52468] [2021-06-06 08:35:08][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:35:08][DEBUG] : Test message: 0710061041040000 [2021-06-06 08:35:08][DEBUG] : flushOutput serial port [2021-06-06 08:35:08][DEBUG] : flushInput serial port [2021-06-06 08:35:08][DEBUG] : Write message to serial port [2021-06-06 08:35:08][ERROR] : Error: device reports readiness to read but returned no data (device disconnected or multiple access on port?) [2021-06-06 08:35:08][DEBUG] : Write data to serial port : 0710061041040000 [2021-06-06 08:35:08][DEBUG] : Write message ok : 0710061041040000 Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py", line 158, in read_rfxcom message = byte + shared.JEEDOM_SERIAL.readbytes(int.from_bytes(byte,'big')) File "/var/www/html/plugins/rfxcom/resources/rfxcomd/jeedom/jeedom.py", line 287, in readbytes buf += byte UnboundLocalError: local variable 'byte' referenced before assignment [2021-06-06 08:40:07][DEBUG] : Client connected to [127.0.0.1:52914] [2021-06-06 08:40:07][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0710061041040000"]}' [2021-06-06 08:40:07][DEBUG] : Client disconnected from [127.0.0.1:52914] [2021-06-06 08:40:07][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:40:07][DEBUG] : Test message: 0710061041040000 [2021-06-06 08:40:07][DEBUG] : flushOutput serial port [2021-06-06 08:40:07][DEBUG] : flushInput serial port [2021-06-06 08:40:07][DEBUG] : Write message to serial port [2021-06-06 08:40:07][DEBUG] : Write data to serial port : 0710061041040000 [2021-06-06 08:40:07][DEBUG] : Write message ok : 0710061041040000 [2021-06-06 08:40:07][DEBUG] : Client connected to [127.0.0.1:52918] [2021-06-06 08:40:07][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0710061041040000"]}' [2021-06-06 08:40:07][DEBUG] : Client disconnected from [127.0.0.1:52918] [2021-06-06 08:40:07][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:40:07][DEBUG] : Test message: 0710061041040000 [2021-06-06 08:40:07][DEBUG] : flushOutput serial port [2021-06-06 08:40:07][DEBUG] : flushInput serial port [2021-06-06 08:40:07][DEBUG] : Write message to serial port [2021-06-06 08:40:07][DEBUG] : Write data to serial port : 0710061041040000 [2021-06-06 08:40:07][DEBUG] : Write message ok : 0710061041040000 [2021-06-06 08:40:20][DEBUG] : Client connected to [127.0.0.1:52932] [2021-06-06 08:40:20][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0B1100002811DA6B09000090"]}' [2021-06-06 08:40:20][DEBUG] : Client disconnected from [127.0.0.1:52932] [2021-06-06 08:40:20][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:40:20][DEBUG] : Test message: 0B1100002811DA6B09000090 [2021-06-06 08:40:20][DEBUG] : flushOutput serial port [2021-06-06 08:40:20][DEBUG] : flushInput serial port [2021-06-06 08:40:20][DEBUG] : Write message to serial port [2021-06-06 08:40:20][DEBUG] : Write data to serial port : 0b1100002811da6b09000090 [2021-06-06 08:40:20][DEBUG] : Write message ok : 0B1100002811DA6B09000090 [2021-06-06 08:43:51][DEBUG] : Client connected to [127.0.0.1:53214] [2021-06-06 08:43:51][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0B1100002811DA6B09000090"]}' [2021-06-06 08:43:51][DEBUG] : Client disconnected from [127.0.0.1:53214] [2021-06-06 08:43:51][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:43:51][DEBUG] : Test message: 0B1100002811DA6B09000090 [2021-06-06 08:43:51][DEBUG] : flushOutput serial port [2021-06-06 08:43:51][DEBUG] : flushInput serial port [2021-06-06 08:43:51][DEBUG] : Write message to serial port [2021-06-06 08:43:51][DEBUG] : Write data to serial port : 0b1100002811da6b09000090 [2021-06-06 08:43:51][DEBUG] : Write message ok : 0B1100002811DA6B09000090 [2021-06-06 08:45:07][DEBUG] : Client connected to [127.0.0.1:53390] [2021-06-06 08:45:07][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0710061041040000"]}' [2021-06-06 08:45:07][DEBUG] : Client disconnected from [127.0.0.1:53390] [2021-06-06 08:45:07][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:45:07][DEBUG] : Test message: 0710061041040000 [2021-06-06 08:45:07][DEBUG] : flushOutput serial port [2021-06-06 08:45:07][DEBUG] : flushInput serial port [2021-06-06 08:45:07][DEBUG] : Write message to serial port [2021-06-06 08:45:07][DEBUG] : Write data to serial port : 0710061041040000 [2021-06-06 08:45:07][DEBUG] : Write message ok : 0710061041040000 [2021-06-06 08:45:07][DEBUG] : Client connected to [127.0.0.1:53394] [2021-06-06 08:45:07][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0710061041040000"]}' [2021-06-06 08:45:07][DEBUG] : Client disconnected from [127.0.0.1:53394] [2021-06-06 08:45:07][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:45:07][DEBUG] : Test message: 0710061041040000 [2021-06-06 08:45:07][DEBUG] : flushOutput serial port [2021-06-06 08:45:07][DEBUG] : flushInput serial port [2021-06-06 08:45:07][DEBUG] : Write message to serial port [2021-06-06 08:45:07][DEBUG] : Write data to serial port : 0710061041040000 [2021-06-06 08:45:07][DEBUG] : Write message ok : 0710061041040000 [2021-06-06 08:45:20][DEBUG] : Client connected to [127.0.0.1:53406] [2021-06-06 08:45:20][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0B1100002811DA6B09000090"]}' [2021-06-06 08:45:20][DEBUG] : Client disconnected from [127.0.0.1:53406] [2021-06-06 08:45:20][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:45:20][DEBUG] : Test message: 0B1100002811DA6B09000090 [2021-06-06 08:45:20][DEBUG] : flushOutput serial port [2021-06-06 08:45:20][DEBUG] : flushInput serial port [2021-06-06 08:45:20][DEBUG] : Write message to serial port [2021-06-06 08:45:20][DEBUG] : Write data to serial port : 0b1100002811da6b09000090 [2021-06-06 08:45:20][DEBUG] : Write message ok : 0B1100002811DA6B09000090 [2021-06-06 08:49:19][DEBUG] : Client connected to [127.0.0.1:53742] [2021-06-06 08:49:19][DEBUG] : Message read from socket: b'{"apikey":"3wJv70J170XMF9TMlVpNaTSk3IR8CmPr3v4kUSGlueY0CO17","cmd":"send","data":["0B1100002811DA6B09000090"]}' [2021-06-06 08:49:19][DEBUG] : Client disconnected from [127.0.0.1:53742] [2021-06-06 08:49:19][DEBUG] : Message received in socket JEEDOM_SOCKET_MESSAGE [2021-06-06 08:49:19][DEBUG] : Test message: 0B1100002811DA6B09000090 [2021-06-06 08:49:19][DEBUG] : flushOutput serial port [2021-06-06 08:49:19][DEBUG] : flushInput serial port [2021-06-06 08:49:19][DEBUG] : Write message to serial port