Ça devient compliqué pour moi. La trame (si c’est bien ce qui suit) ça aide ?
[2021-11-12 14:56:11][DEBUG] : Message: 0a520127150100c9380169
[2021-11-12 14:56:11][DEBUG] : Decode : 0a520127150100c9380169
[2021-11-12 14:56:11][DEBUG] : Test message: 0a520127150100c9380169
[2021-11-12 14:56:11][DEBUG] : PacketType: 0x52
[2021-11-12 14:56:11][DEBUG] : Length: 11
[2021-11-12 14:56:11][DEBUG] : Start decoding packet type 0x52
[2021-11-12 14:56:11][DEBUG] : Subtype = TH1 is THGN122/123, THGN132, THGR122/228/238/268
[2021-11-12 14:56:11][DEBUG] : Data : {'packetlen': '0x0A', 'packettype': '0x52', 'subtype': '0x01', 'seqnbr': '0x27', 'id1': '0x15', 'id2': '0x01', 'temperaturesign': '', 'temperature': 201, 'humidity': 56, 'humidity_status': 1, 'battery': 100, 'rssi': 6}
[2021-11-12 14:56:11][DEBUG] : Decoded info : {'packettype': '0x52', 'subtype': '0x01', 'id': '1501', 'temperature': '20.1', 'humidity': 56, 'humidity_status': 1, 'battery': 100, 'rssi': 6}
[2021-11-12 14:56:11][DEBUG] : unknown device id : 1501
[2021-11-12 14:56:13][DEBUG] : Message: 0a520128fc0200c8310159
[2021-11-12 14:56:13][DEBUG] : Decode : 0a520128fc0200c8310159
[2021-11-12 14:56:13][DEBUG] : Test message: 0a520128fc0200c8310159
[2021-11-12 14:56:13][DEBUG] : PacketType: 0x52
[2021-11-12 14:56:13][DEBUG] : Length: 11
[2021-11-12 14:56:13][DEBUG] : Start decoding packet type 0x52
[2021-11-12 14:56:13][DEBUG] : Subtype = TH1 is THGN122/123, THGN132, THGR122/228/238/268
[2021-11-12 14:56:13][DEBUG] : Data : {'packetlen': '0x0A', 'packettype': '0x52', 'subtype': '0x01', 'seqnbr': '0x28', 'id1': '0xFC', 'id2': '0x02', 'temperaturesign': '', 'temperature': 200, 'humidity': 49, 'humidity_status': 1, 'battery': 100, 'rssi': 5}
[2021-11-12 14:56:13][DEBUG] : Decoded info : {'packettype': '0x52', 'subtype': '0x01', 'id': 'FC02', 'temperature': '20.0', 'humidity': 49, 'humidity_status': 1, 'battery': 100, 'rssi': 5}
[2021-11-12 14:56:13][DEBUG] : unknown device id : FC02
[2021-11-12 14:56:16][DEBUG] : Message: 08500229a10400b870
[2021-11-12 14:56:16][DEBUG] : Decode : 08500229a10400b870
[2021-11-12 14:56:16][DEBUG] : Test message: 08500229a10400b870
[2021-11-12 14:56:16][DEBUG] : PacketType: 0x50
[2021-11-12 14:56:16][DEBUG] : Length: 9
[2021-11-12 14:56:16][DEBUG] : Start decoding packet type 0x50
[2021-11-12 14:56:16][DEBUG] : Subtype = TEMP2 is THC238/268,THN132,THWR288,THRN122,THN122,AW129/131,THN129
[2021-11-12 14:56:16][DEBUG] : Data : {'packetlen': '0x08', 'packettype': '0x50', 'subtype': '0x02', 'seqnbr': '0x29', 'id1': '0xA1', 'id2': '0x04', 'temperaturesign': '', 'temperature': 184, 'battery': 10, 'rssi': 7}
[2021-11-12 14:56:16][DEBUG] : Decoded info : {'packettype': '0x50', 'subtype': '0x02', 'id': 'A104', 'temperature': '18.4', 'battery': 10, 'rssi': 7}
[2021-11-12 14:56:16][DEBUG] : Device is known id : A104
[2021-11-12 14:56:16][DEBUG] : Send to jeedom : {'devices': {'A10450': {'packettype': '0x50', 'subtype': '0x02', 'id': 'A104', 'temperature': '18.4', 'battery': 10, 'rssi': 7}}}
[2021-11-12 14:56:16][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:1080
[2021-11-12 14:56:16][DEBUG] : {"devices":{"A10450":{"packettype":"0x50","subtype":"0x02","id":"A104","temperature":"18.4","battery":10,"rssi":7}}}