XiaomiGateway3 icon indicating copy to clipboard operation
XiaomiGateway3 copied to clipboard

Linptech Motion Sensor support

Open micturkey opened this issue 1 year ago • 4 comments

detail: https://home.miot-spec.com/spec/linp.motion.h1

This sensor does not appear in HA at all.

And the log is here:

2022-08-26 19:21:10,683 192.168.0.103 [BASE] a4c13866ddb7 (6284) setup ble (6284): 2022-08-26 19:21:20,403 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"11000443","pdid":6284,"seq":133}' 2022-08-26 19:21:20,427 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:21:22,034 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:21:14.420 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"11000443"}],"frmCnt":133,"gwts":1661512874},"id":1171} length:196 bytes\x1b[0m' 2022-08-26 19:21:49,508 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"13000443","pdid":6284,"seq":134}' 2022-08-26 19:21:49,511 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:21:49,643 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:21:48.610 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"13000443"}],"frmCnt":134,"gwts":1661512908},"id":1182} length:196 bytes\x1b[0m' 2022-08-26 19:22:25,997 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"09000343","pdid":6284,"seq":135}' 2022-08-26 19:22:25,998 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:22:26,363 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:22:25.330 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"09000343"}],"frmCnt":135,"gwts":1661512945},"id":1190} length:196 bytes\x1b[0m' 2022-08-26 19:23:10,260 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0a000943","pdid":6284,"seq":136}' 2022-08-26 19:23:10,261 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:23:10,442 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:23:09.410 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0a000943"}],"frmCnt":136,"gwts":1661512989},"id":1202} length:196 bytes\x1b[0m' 2022-08-26 19:23:47,579 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"09000143","pdid":6284,"seq":137}' 2022-08-26 19:23:47,581 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:23:47,673 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:23:47.640 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"09000143"}],"frmCnt":137,"gwts":1661513026},"id":1212} length:196 bytes\x1b[0m' 2022-08-26 19:24:20,832 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"17000843","pdid":6284,"seq":138}' 2022-08-26 19:24:20,833 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:24:21,337 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:24:20.300 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"17000843"}],"frmCnt":138,"gwts":1661513060},"id":1217} length:196 bytes\x1b[0m' 2022-08-26 19:24:53,282 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"07000343","pdid":6284,"seq":139}' 2022-08-26 19:24:53,285 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:24:53,464 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:24:52.430 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"07000343"}],"frmCnt":139,"gwts":1661513092},"id":1224} length:196 bytes\x1b[0m' 2022-08-26 19:25:52,169 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"6e00a041","pdid":6284,"seq":140}' 2022-08-26 19:25:52,170 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:25:52,634 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:25:51.600 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"6e00a041"}],"frmCnt":140,"gwts":1661513151},"id":1235} length:196 bytes\x1b[0m' 2022-08-26 19:26:23,370 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"bd000343","pdid":6284,"seq":141}' 2022-08-26 19:26:23,372 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:26:23,570 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"bd000343","pdid":6284,"seq":141}' 2022-08-26 19:26:23,746 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:26:23.710 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"bd000343"}],"frmCnt":141,"gwts":1661513182},"id":1243} length:196 bytes\x1b[0m' 2022-08-26 19:26:24,079 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:26:22.337 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"bd000343"}],"frmCnt":141,"gwts":1661513182},"id":1160} length:196 bytes\x1b[0m' 2022-08-26 19:27:00,375 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"12000243","pdid":6284,"seq":142}' 2022-08-26 19:27:00,376 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:27:00,465 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:26:59.430 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"12000243"}],"frmCnt":142,"gwts":1661513219},"id":1252} length:196 bytes\x1b[0m' 2022-08-26 19:27:36,009 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"15000843","pdid":6284,"seq":143}' 2022-08-26 19:27:36,010 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:27:36,172 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:27:35.130 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"15000843"}],"frmCnt":143,"gwts":1661513255},"id":1259} length:196 bytes\x1b[0m' 2022-08-26 19:28:08,667 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"14000243","pdid":6284,"seq":144}' 2022-08-26 19:28:08,669 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:28:08,843 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:28:08.770 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"14000243"}],"frmCnt":144,"gwts":1661513288},"id":1265} length:196 bytes\x1b[0m' 2022-08-26 19:28:45,265 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08000543","pdid":6284,"seq":145}' 2022-08-26 19:28:45,266 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:28:45,525 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:28:44.490 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08000543"}],"frmCnt":145,"gwts":1661513324},"id":1272} length:196 bytes\x1b[0m' 2022-08-26 19:29:19,827 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"1b000643","pdid":6284,"seq":146}' 2022-08-26 19:29:19,829 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:29:20,206 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:29:19.170 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"1b000643"}],"frmCnt":146,"gwts":1661513359},"id":1279} length:196 bytes\x1b[0m' 2022-08-26 19:29:53,696 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0e000243","pdid":6284,"seq":147}' 2022-08-26 19:29:53,697 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:29:53,866 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:29:53.830 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0e000243"}],"frmCnt":147,"gwts":1661513393},"id":1286} length:196 bytes\x1b[0m' 2022-08-26 19:30:28,633 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"22000c43","pdid":6284,"seq":148}' 2022-08-26 19:30:28,635 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:30:29,057 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:30:28.021 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"22000c43"}],"frmCnt":148,"gwts":1661513427},"id":1293} length:196 bytes\x1b[0m' 2022-08-26 19:30:35,102 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0e000943","pdid":6284,"seq":149}' 2022-08-26 19:30:35,104 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:30:35,176 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:30:34.140 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0e000943"}],"frmCnt":149,"gwts":1661513434},"id":1295} length:196 bytes\x1b[0m' 2022-08-26 19:31:09,887 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08000b43","pdid":6284,"seq":150}' 2022-08-26 19:31:09,889 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:31:10,367 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:31:09.330 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08000b43"}],"frmCnt":150,"gwts":1661513469},"id":1302} length:196 bytes\x1b[0m' 2022-08-26 19:31:44,854 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"3100fc42","pdid":6284,"seq":151}' 2022-08-26 19:31:44,855 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:31:45,047 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:31:44.010 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"3100fc42"}],"frmCnt":151,"gwts":1661513504},"id":1313} length:196 bytes\x1b[0m' 2022-08-26 19:32:19,741 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"1600d242","pdid":6284,"seq":152}' 2022-08-26 19:32:19,742 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:32:20,237 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:32:19.200 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"1600d242"}],"frmCnt":152,"gwts":1661513539},"id":1326} length:196 bytes\x1b[0m' 2022-08-26 19:33:40,583 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"14000643","pdid":6284,"seq":154}' 2022-08-26 19:33:40,584 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:33:40,678 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:33:40.640 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"14000643"}],"frmCnt":154,"gwts":1661513619},"id":1359} length:196 bytes\x1b[0m' 2022-08-26 19:34:13,756 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"4900c442","pdid":6284,"seq":155}' 2022-08-26 19:34:13,757 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:34:13,918 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"4900c442","pdid":6284,"seq":155}' 2022-08-26 19:34:14,228 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:34:13.190 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"4900c442"}],"frmCnt":155,"gwts":1661513653},"id":1365} length:196 bytes\x1b[0m' 2022-08-26 19:34:55,975 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0d000643","pdid":6284,"seq":156}' 2022-08-26 19:34:55,976 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:34:56,259 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:34:55.220 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0d000643"}],"frmCnt":156,"gwts":1661513695},"id":1377} length:196 bytes\x1b[0m' 2022-08-26 19:35:31,516 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08000943","pdid":6284,"seq":157}' 2022-08-26 19:35:31,519 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:35:31,801 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:35:31.760 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08000943"}],"frmCnt":157,"gwts":1661513730},"id":1390} length:196 bytes\x1b[0m' 2022-08-26 19:36:05,933 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"2c000c43","pdid":6284,"seq":158}' 2022-08-26 19:36:05,935 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:36:06,090 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:36:05.970 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"2c000c43"}],"frmCnt":158,"gwts":1661513765},"id":1397} length:196 bytes\x1b[0m' 2022-08-26 19:36:41,825 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0e000943","pdid":6284,"seq":159}' 2022-08-26 19:36:41,826 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:36:41,834 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:36:41.790 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0e000943"}],"frmCnt":159,"gwts":1661513801},"id":1407} length:196 bytes\x1b[0m' 2022-08-26 19:37:15,384 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"09000843","pdid":6284,"seq":160}' 2022-08-26 19:37:15,385 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:37:15,497 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:37:14.450 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"09000843"}],"frmCnt":160,"gwts":1661513834},"id":1413} length:196 bytes\x1b[0m' 2022-08-26 19:37:52,034 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"13000543","pdid":6284,"seq":161}' 2022-08-26 19:37:52,036 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:37:52,180 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:37:51.139 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"13000543"}],"frmCnt":161,"gwts":1661513871},"id":1423} length:196 bytes\x1b[0m' 2022-08-26 19:38:32,184 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"09000943","pdid":6284,"seq":162}' 2022-08-26 19:38:32,199 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:38:32,471 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:38:31.430 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"09000943"}],"frmCnt":162,"gwts":1661513911},"id":1432} length:196 bytes\x1b[0m' 2022-08-26 19:39:26,346 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"24000643","pdid":6284,"seq":163}' 2022-08-26 19:39:26,347 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:39:26,531 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:39:25.490 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"24000643"}],"frmCnt":163,"gwts":1661513965},"id":1441} length:196 bytes\x1b[0m' 2022-08-26 19:39:59,305 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"09000b43","pdid":6284,"seq":164}' 2022-08-26 19:39:59,307 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:39:59,692 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:39:59.640 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"09000b43"}],"frmCnt":164,"gwts":1661513998},"id":1450} length:196 bytes\x1b[0m' 2022-08-26 19:40:38,167 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"16000643","pdid":6284,"seq":165}' 2022-08-26 19:40:38,169 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:40:38,461 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:40:37.420 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"16000643"}],"frmCnt":165,"gwts":1661514037},"id":1458} length:196 bytes\x1b[0m' 2022-08-26 19:41:14,004 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"1800ec42","pdid":6284,"seq":166}' 2022-08-26 19:41:14,016 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:41:14,162 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:41:13.120 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"1800ec42"}],"frmCnt":166,"gwts":1661514073},"id":1464} length:196 bytes\x1b[0m' 2022-08-26 19:41:49,591 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"16000543","pdid":6284,"seq":167}' 2022-08-26 19:41:49,592 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:41:49,881 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:41:49.830 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"16000543"}],"frmCnt":167,"gwts":1661514108},"id":1474} length:196 bytes\x1b[0m' 2022-08-26 19:42:24,928 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"17000243","pdid":6284,"seq":168}' 2022-08-26 19:42:24,930 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:42:25,314 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:42:24.260 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"17000243"}],"frmCnt":168,"gwts":1661514144},"id":1481} length:196 bytes\x1b[0m' 2022-08-26 19:42:58,204 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0b000643","pdid":6284,"seq":169}' 2022-08-26 19:42:58,206 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:42:58,460 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:42:57.410 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0b000643"}],"frmCnt":169,"gwts":1661514177},"id":1492} length:196 bytes\x1b[0m' 2022-08-26 19:43:33,030 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08000643","pdid":6284,"seq":170}' 2022-08-26 19:43:33,032 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:43:33,133 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:43:32.090 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08000643"}],"frmCnt":170,"gwts":1661514212},"id":1501} length:196 bytes\x1b[0m' 2022-08-26 19:44:09,071 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08000a43","pdid":6284,"seq":171}' 2022-08-26 19:44:09,072 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:44:09,196 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08000a43","pdid":6284,"seq":171}' 2022-08-26 19:44:09,351 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:44:08.300 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08000a43"}],"frmCnt":171,"gwts":1661514248},"id":1507} length:196 bytes\x1b[0m' 2022-08-26 19:44:09,656 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:44:08.897 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08000a43"}],"frmCnt":171,"gwts":1661514247},"id":1414} length:196 bytes\x1b[0m' 2022-08-26 19:44:56,325 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"1600c242","pdid":6284,"seq":172}' 2022-08-26 19:44:56,328 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:44:56,775 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:44:56.730 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"1600c242"}],"frmCnt":172,"gwts":1661514295},"id":1517} length:196 bytes\x1b[0m' 2022-08-26 19:45:44,780 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08001843","pdid":6284,"seq":173}' 2022-08-26 19:45:44,782 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:45:45,071 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"08001843","pdid":6284,"seq":173}' 2022-08-26 19:45:45,224 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:45:44.179 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"08001843"}],"frmCnt":173,"gwts":1661514344},"id":1531} length:196 bytes\x1b[0m' 2022-08-26 19:46:50,225 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"83021843","pdid":6284,"seq":174}' 2022-08-26 19:46:50,226 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:46:50,347 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"83021843","pdid":6284,"seq":174}' 2022-08-26 19:46:50,530 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:46:49.470 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"83021843"}],"frmCnt":174,"gwts":1661514409},"id":1549} length:196 bytes\x1b[0m' 2022-08-26 19:47:15,434 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0c000343","pdid":6284,"seq":175}' 2022-08-26 19:47:15,436 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:47:15,509 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:47:14.460 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0c000343"}],"frmCnt":175,"gwts":1661514434},"id":1554} length:196 bytes\x1b[0m' 2022-08-26 19:47:48,593 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0c000143","pdid":6284,"seq":176}' 2022-08-26 19:47:48,594 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:47:48,656 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:47:47.610 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0c000143"}],"frmCnt":176,"gwts":1661514467},"id":1560} length:196 bytes\x1b[0m' 2022-08-26 19:48:24,390 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"49000343","pdid":6284,"seq":177}' 2022-08-26 19:48:24,392 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:48:24,866 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:48:24.820 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"49000343"}],"frmCnt":177,"gwts":1661514503},"id":1567} length:196 bytes\x1b[0m' 2022-08-26 19:49:05,808 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0c000643","pdid":6284,"seq":178}' 2022-08-26 19:49:05,809 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:49:06,200 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:49:05.130 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0c000643"}],"frmCnt":178,"gwts":1661514545},"id":1578} length:196 bytes\x1b[0m' 2022-08-26 19:49:40,345 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0c001443","pdid":6284,"seq":179}' 2022-08-26 19:49:40,347 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:49:40,856 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:49:40.810 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"0c001443"}],"frmCnt":179,"gwts":1661514579},"id":1584} length:196 bytes\x1b[0m' 2022-08-26 19:50:25,206 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"1a001243","pdid":6284,"seq":180}' 2022-08-26 19:50:25,208 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:50:25,226 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:50:24.179 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"1a001243"}],"frmCnt":180,"gwts":1661514624},"id":1593} length:196 bytes\x1b[0m' 2022-08-26 19:51:00,237 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"17000e43","pdid":6284,"seq":181}' 2022-08-26 19:51:00,238 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:51:00,417 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:50:59.370 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18952,"edata":"17000e43"}],"frmCnt":181,"gwts":1661514659},"id":1600} length:196 bytes\x1b[0m' 2022-08-26 19:53:14,197 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18953,"edata":"0e080040","pdid":6284,"seq":182}' 2022-08-26 19:53:14,198 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:53:14,428 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:53:13.360 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18953,"edata":"0e080040"}],"frmCnt":182,"gwts":1661514793},"id":1635} length:196 bytes\x1b[0m' 2022-08-26 19:55:16,436 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18953,"edata":"54020040","pdid":6284,"seq":184}' 2022-08-26 19:55:16,437 192.168.0.126 [BLEF] a4c13866ddb7 (6284) recv 2022-08-26 19:55:16,809 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:08:26:19:55:16.760 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":6284},"evt":[{"eid":18953,"edata":"54020040"}],"frmCnt":184,"gwts":1661514915},"id":1661} length:196 bytes\x1b[0m'

I tried to parse the ble data but it seems not to be easy :(

micturkey avatar Aug 26 '22 12:08 micturkey

float with lux on motion and float with minutes on no motion events. spec also has battery and lux without motion, but i didnt saw such events (however log time was short).

rezmus avatar Aug 30 '22 19:08 rezmus

float with lux on motion and float with minutes on no motion events. spec also has battery and lux without motion, but i didnt saw such events (however log time was short).

Thanks! This version of the sensor did not report such events and after upgrade it will report. So when the upgrade becomes available I will put new logs here.

micturkey avatar Aug 30 '22 23:08 micturkey

float with lux on motion and float with minutes on no motion events. spec also has battery and lux without motion, but i didnt saw such events (however log time was short).

Hello, the new version's logs are here:

2022-09-10 11:07:19,819 192.168.0.126 [BASE] a4c13866ddb7 (10987) setup ble (10987):
2022-09-10 11:08:41,051 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"00008041","pdid":10987,"seq":72}'
2022-09-10 11:08:41,052 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:08:41,070 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:08:40.438 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18952,"edata":"00008041"}],"frmCnt":72,"gwts":1662779320},"id":34333}{"method":"local.query_status","params":"","id":34334} length:197 bytes\x1b[0m'
2022-09-10 11:08:41,153 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"00008041","pdid":10987,"seq":72}'
2022-09-10 11:08:42,030 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"0000","pdid":10987,"seq":73}'
2022-09-10 11:08:42,032 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:08:42,034 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:08:41.847 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18952,"edata":"00008041"}],"frmCnt":72,"gwts":1662779320},"id":33878} length:197 bytes\x1b[0m'
2022-09-10 11:08:42,035 192.168.0.103 [BLEE] a4c13866ddb7 (10987) recv
2022-09-10 11:08:42,100 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"0000","pdid":10987,"seq":73}'
2022-09-10 11:08:42,102 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:09:43,606 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"3c00","pdid":10987,"seq":74}'
2022-09-10 11:09:43,609 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:09:43,611 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"3c00","pdid":10987,"seq":74}'
2022-09-10 11:09:43,752 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:09:43.567 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18456,"edata":"3c00"}],"frmCnt":74,"gwts":1662779382},"id":33892} length:193 bytes\x1b[0m'
2022-09-10 11:09:43,808 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:09:42.177 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18456,"edata":"3c00"}],"frmCnt":74,"gwts":1662779382},"id":34353} length:193 bytes\x1b[0m'
2022-09-10 11:10:44,629 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"7800","pdid":10987,"seq":75}'
2022-09-10 11:10:44,630 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:10:44,631 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"7800","pdid":10987,"seq":75}'
2022-09-10 11:13:45,526 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"2c01","pdid":10987,"seq":76}'
2022-09-10 11:13:45,527 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:13:45,561 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"2c01","pdid":10987,"seq":76}'
2022-09-10 11:17:58,730 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0000a040","pdid":10987,"seq":77}'
2022-09-10 11:17:58,731 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:17:58,753 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"0000a040","pdid":10987,"seq":77}'
2022-09-10 11:17:59,042 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:17:58.847 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18952,"edata":"0000a040"}],"frmCnt":77,"gwts":1662779878},"id":34014} length:197 bytes\x1b[0m'
2022-09-10 11:17:59,272 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:17:58.637 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18952,"edata":"0000a040"}],"frmCnt":77,"gwts":1662779877},"id":34483} length:197 bytes\x1b[0m'
2022-09-10 11:17:59,744 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"0000","pdid":10987,"seq":78}'
2022-09-10 11:17:59,745 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:18:00,105 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"0000","pdid":10987,"seq":78}'
2022-09-10 11:19:04,302 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"3c00","pdid":10987,"seq":79}'
2022-09-10 11:19:04,303 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:19:04,304 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"3c00","pdid":10987,"seq":79}'
2022-09-10 11:20:05,325 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"7800","pdid":10987,"seq":80}'
2022-09-10 11:20:05,326 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:20:05,328 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"7800","pdid":10987,"seq":80}'
2022-09-10 11:20:05,548 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:20:04.347 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18456,"edata":"7800"}],"frmCnt":80,"gwts":1662780004},"id":34045} length:193 bytes\x1b[0m'
2022-09-10 11:20:05,773 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:20:04.137 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18456,"edata":"7800"}],"frmCnt":80,"gwts":1662780004},"id":34521} length:193 bytes\x1b[0m'
2022-09-10 11:23:06,215 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"2c01","pdid":10987,"seq":81}'
2022-09-10 11:23:06,216 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:23:06,218 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"2c01","pdid":10987,"seq":81}'
2022-09-10 11:26:50,196 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"00007041","pdid":10987,"seq":82}'
2022-09-10 11:26:50,198 192.168.0.126 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:26:50,311 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18952,"edata":"00007041","pdid":10987,"seq":82}'
2022-09-10 11:26:50,512 192.168.0.126 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:26:49.867 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18952,"edata":"00007041"}],"frmCnt":82,"gwts":1662780409},"id":34624} length:197 bytes\x1b[0m'
2022-09-10 11:26:50,779 192.168.0.103 [MQTT] log/miio b'\x1b[0;32m2022:09:10:11:26:50.568 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"_async.ble_event","params":{"dev":{"did":"blt.3.1bc9srn94eg00","mac":"A4:C1:38:66:DD:B7","pdid":10987},"evt":[{"eid":18952,"edata":"00007041"}],"frmCnt":82,"gwts":1662780409},"id":34160} length:197 bytes\x1b[0m'
2022-09-10 11:26:51,192 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"0000","pdid":10987,"seq":83}'
2022-09-10 11:26:51,194 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:26:51,195 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"0000","pdid":10987,"seq":83}'
2022-09-10 11:27:52,904 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"3c00","pdid":10987,"seq":84}'
2022-09-10 11:27:52,914 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:27:52,921 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"3c00","pdid":10987,"seq":84}'
2022-09-10 11:28:53,921 192.168.0.103 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"7800","pdid":10987,"seq":85}'
2022-09-10 11:28:53,923 192.168.0.103 [BLEF] a4c13866ddb7 (10987) recv
2022-09-10 11:28:53,925 192.168.0.126 [MQTT] log/ble b'{"did":"blt.3.1bc9srn94eg00","eid":18456,"edata":"7800","pdid":10987,"seq":85}'

It seems that eid 18952 means lux with motion and eid 18456 means minutes with no motion. To be specific, for eid 18456, 0000 means 0 minute, 3c00 means 1 minute, 7800 means 3 minute. For eid 18952, 00008041 means motion with 16lux, 0000a040 means motion with 5lux, 00007041 means motion with 15lux. And, 00007a44 means motion with 1000 lux

micturkey avatar Sep 10 '22 03:09 micturkey

After big-little convert, for eid 18952, it tells float lux with motion, and eid 18456 means idle time in second. BTW, this sensor does not support lux without motion :(

I have already written the new codes, and after the battery checking is okay I will add a pull request.

micturkey avatar Sep 10 '22 03:09 micturkey