Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pleasse add more feature to ainice.sensor_occupy.rd #1310

Open
three1bro opened this issue Mar 31, 2024 · 6 comments
Open

Pleasse add more feature to ainice.sensor_occupy.rd #1310

three1bro opened this issue Mar 31, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@three1bro
Copy link

I noticed ainice.sensor_occupy.rd is already in the device, but some feature was lost,for example we are missing bluetooth online (not group, and ainice supports up to 14 single bluetooth devices) , which prevents people creating automation for specific persons’ presence or absence.Also i try to add the protcol 4p8, 4p15,4p18。Unfortunate, it dosen't work。Could you help me confirm this situation or am i missing something? and i’d love to help out.
image

@three1bro three1bro changed the title Pleasse add more feature to Pleasse add more feature to ainice.sensor_occupy.rd Mar 31, 2024
@AlexxIT AlexxIT added the question Further information is requested label Mar 31, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 31, 2024

Collect debug logs for device

@three1bro
Copy link
Author

three1bro commented Apr 1, 2024

this is the log file

2024-04-01 09:39:30,977 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) setup mesh ainice-dual-presence-sensor: radar_group_occupancy, radar_occupancy, radar_enter_edge, bluetooth_group_online_status, bluetooth_group_enter_area, test8, test15, test18, illuminance, mesh
2024-04-01 10:01:37,292 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) setup mesh ainice-dual-presence-sensor: radar_group_occupancy, radar_occupancy, radar_enter_edge, bluetooth_group_online_status, bluetooth_group_enter_area, test8, test15, test18, illuminance, mesh
2024-04-01 10:32:07,417 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 10:32:07,417 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 10:41:07,440 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 10:41:07,440 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 10:53:37,466 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 10:53:37,466 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 11:08:37,495 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 11:08:37,496 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 11:23:37,526 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 11:23:37,527 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 11:53:37,582 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 11:53:37,582 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 12:08:37,614 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 12:08:37,615 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 16:23:38,222 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 16:23:38,222 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 16:57:38,285 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 16:57:38,285 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 17:26:08,341 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [BASE] 649e317c8443 (13156) poll state radar_group_occupancy
2024-04-01 17:26:08,341 DEBUG [custom_components.xiaomi_gateway3.core.gateway] 192.168.31.230 [MIOT] 649e317c8443 (13156) read {'mi_spec': [{'siid': 3, 'piid': 2}]}
2024-04-01 18:11:23,604 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'init_device', 'data': {'did': '1008543568', 'mac': '64:9e:31:7c:84:43', 'type': 'mesh', 'cloud_name': 'AInice Dual Presence Sensor', 'cloud_fw': '2.1.1_0206', 'market_brand': 'LSY', 'market_name': 'AInice Dual Presence Sensor', 'market_model': 'ainice-dual-presence-sensor'}}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_device'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_radar_group_occupancy'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_radar_occupancy'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_radar_enter_edge'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_bluetooth_group_online_status'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_bluetooth_group_enter_area'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_test8'}
2024-04-01 18:11:23,605 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_test15'}
2024-04-01 18:11:23,606 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_test18'}
2024-04-01 18:11:23,606 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'sensor.649e317c8443_illuminance'}
2024-04-01 18:11:23,606 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'select.649e317c8443_command'}
2024-04-01 18:11:23,818 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'read', 'data': {'illuminance', 'test8', 'bluetooth_group_enter_area', 'radar_occupancy', 'radar_enter_edge', 'bluetooth_group_online_status', 'test18', 'radar_group_occupancy', 'test15'}}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'init_device', 'data': {'did': '1008543568', 'mac': '64:9e:31:7c:84:43', 'type': 'mesh', 'cloud_name': 'AInice Dual Presence Sensor', 'cloud_fw': '2.1.1_0206', 'market_brand': 'LSY', 'market_name': 'AInice Dual Presence Sensor', 'market_model': 'ainice-dual-presence-sensor'}}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_device'}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_radar_group_occupancy'}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_radar_occupancy'}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_radar_enter_edge'}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_bluetooth_group_online_status'}
2024-04-01 18:16:10,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_bluetooth_group_enter_area'}
2024-04-01 18:16:10,120 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_test8'}
2024-04-01 18:16:10,120 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_test15'}
2024-04-01 18:16:10,120 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'binary_sensor.649e317c8443_test18'}
2024-04-01 18:16:10,120 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'sensor.649e317c8443_illuminance'}
2024-04-01 18:16:10,120 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'add_entity', 'entity': 'select.649e317c8443_command'}
2024-04-01 18:16:10,180 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'read', 'data': {'radar_enter_edge', 'bluetooth_group_enter_area', 'illuminance', 'radar_group_occupancy', 'test18', 'radar_occupancy', 'bluetooth_group_online_status', 'test8', 'test15'}}
2024-04-01 18:16:10,204 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_group_occupancy': False, 'radar_occupancy': False, 'radar_enter_edge': False, 'bluetooth_group_online_status': True, 'bluetooth_group_enter_area': False, 'test8': True, 'test15': False, 'test18': True, 'illuminance': 2}}
2024-04-01 18:18:26,500 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 19}}
2024-04-01 18:18:28,610 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:18:51,208 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 3}}
2024-04-01 18:18:57,801 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:19:13,923 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 16}}
2024-04-01 18:19:16,005 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:19:27,218 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 191}}
2024-04-01 18:19:29,304 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:22:21,689 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:22:35,687 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:22:37,579 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:22:48,114 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 3}}
2024-04-01 18:22:49,698 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:22:56,022 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:22:59,310 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:23:01,020 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 6}}
2024-04-01 18:23:04,203 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 164}}
2024-04-01 18:23:05,912 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:23:11,611 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 3}}
2024-04-01 18:23:13,306 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 4}}
2024-04-01 18:23:16,012 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 5}}
2024-04-01 18:23:20,908 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 6}}
2024-04-01 18:23:43,004 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 7}}
2024-04-01 18:24:19,653 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:24:36,573 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:24:37,838 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 6}}
2024-04-01 18:24:49,675 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:24:52,709 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:24:55,524 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 22}}
2024-04-01 18:25:01,122 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 184}}
2024-04-01 18:25:02,732 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 47}}
2024-04-01 18:25:03,827 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 5}}
2024-04-01 18:25:24,653 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:25:33,726 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 6}}
2024-04-01 18:25:59,320 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 24}}
2024-04-01 18:26:01,425 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 6}}
2024-04-01 18:26:27,123 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 14}}
2024-04-01 18:26:28,730 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 6}}
2024-04-01 18:27:35,477 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:27:48,688 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:27:52,392 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:28:29,078 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 23}}
2024-04-01 18:28:30,680 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 33}}
2024-04-01 18:28:34,687 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:30:18,096 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:30:35,307 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 4}}
2024-04-01 18:30:36,914 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 3}}
2024-04-01 18:30:41,119 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:30:43,608 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:30:44,908 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 2}}
2024-04-01 18:30:48,196 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:30:52,344 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:30:56,784 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:30:59,082 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:31:12,022 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:31:19,157 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': True}}
2024-04-01 18:31:35,628 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:32:41,357 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': True}}
2024-04-01 18:32:59,548 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:33:06,070 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:33:11,372 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:33:13,367 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:33:16,585 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:33:18,260 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:33:21,881 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:34:24,218 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 1}}
2024-04-01 18:36:22,682 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:36:27,070 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:36:29,086 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:36:29,917 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': True}}
2024-04-01 18:39:14,588 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': True}}
2024-04-01 18:39:16,765 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 17}}
2024-04-01 18:39:17,316 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 27}}
2024-04-01 18:39:18,419 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 28}}
2024-04-01 18:39:19,516 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 37}}
2024-04-01 18:39:22,815 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 31}}
2024-04-01 18:39:25,420 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 30}}
2024-04-01 18:39:33,692 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'radar_occupancy': False}}
2024-04-01 18:40:40,728 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 29}}
2024-04-01 18:40:47,741 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:40:47,893 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:40:51,339 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:40:51,928 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': True}}
2024-04-01 18:40:57,453 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:41:04,220 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:41:23,466 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:41:23,919 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:41:37,911 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'illuminance': 0}}
2024-04-01 18:41:42,839 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': True}}
2024-04-01 18:41:53,273 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:41:58,165 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:41:58,927 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': True}}
2024-04-01 18:42:01,089 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}
2024-04-01 18:42:01,915 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'bluetooth_group_online_status': False}}
2024-04-01 18:42:05,775 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:42:11,076 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:45:01,789 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': True}}
2024-04-01 18:45:04,783 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test15': False}}
2024-04-01 18:45:09,841 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': True}}
2024-04-01 18:45:11,135 DEBUG [custom_components.xiaomi_gateway3.gate.192.168.31.230] {'uid': '649e317c8443', 'did': '1008543568', 'msg': 'on_report', 'data': {'test8': False}}

I didn't find any useful information in the log file. Through manual testing, I found that 8 and 15 represent some switch options in the user 1 settings page, as shown below. When I manually enable these two functions, the test8 and test15 sensors become true. In addition, 18 represents the switch of user 2's add to bluetooth group.
微信图片_20240401185201

@three1bro
Copy link
Author

I don't know if I should call it a problem, but it's an interesting situation.
BoolConv("bluetooth_group_online_status", "binary_sensor", mi="4.p.2")
Look at the sensor shown in the picture below
Quicker_20240401_191136
To some extent it is related to the phone settings page. I couldn't figure out what it meant and could only recount what happened. Below is the mobile page.
微信图片_20240401190554
My phone should now be connected to Bluetooth. Pay attention to the switch button at the top. When I turn it on, bluetooth_group_online_status will become true.
Then, I added user 1 to the Bluetooth group and turned it on, and test8 will also be turned on. At this time, if you turn off the top switch button mentioned at the beginning, you will find that bluetooth_group_online_status will not become false. Only when user 1 is turned off and joins the Bluetooth group, test8 will become false together with bluetooth_group_online_status.

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 1, 2024

I have a poor understanding of the capabilities and functionality of your device.
I can see that the converters are working exactly as they should.
Just as you described them.

@three1bro
Copy link
Author

three1bro commented Apr 2, 2024

Yes, but we lost the person tracker. It doesn't allow for effective personal tracking, either by me or anyone else. As long as someone connects to Bluetooth, he will be displayed as true and no more information can be obtained.
There are too many protocols on this page
I can't find the corresponding protocol, which one might be right?

@three1bro
Copy link
Author

three1bro commented Apr 19, 2024

I get the real desc from customer service。And it works on my device。

{
    13156: ["ainice", "AInice Dual Presence Sensor", "ainice-dual-presence-sensor"],
    "spec": [
        BoolConv("radar_group_occupancy", "binary_sensor", mi="3.p.2"),
        BoolConv("radar_occupancy", "binary_sensor", mi="3.p.4"),
        BoolConv("radar_enter_edge", "binary_sensor", mi="3.p.6"),
        MathConv("radar_occupancy_duration", "sensor", mi="3.p.11"),
        MathConv("radar_no_one_duration", "sensor", mi="3.p.12"),
        BoolConv("radar_switch", "switch", mi="3.p.15"),
        BoolConv("bluetooth_group_online_status", "binary_sensor", mi="4.p.2"),
        BoolConv("bluetooth_group_enter_area", "binary_sensor", mi="4.p.5"),
        MathConv("illuminance", "sensor", mi="5.p.2"),

        MaskConv("bluetooth_online_①", "binary_sensor", mi="4.p.149", mask=1),
        MaskConv("bluetooth_online_②", "binary_sensor", mi="4.p.149", mask=2),
        MaskConv("bluetooth_online_③", "binary_sensor", mi="4.p.149", mask=4),
        MaskConv("bluetooth_online_④", "binary_sensor", mi="4.p.149", mask=8),
        MaskConv("bluetooth_online_⑤", "binary_sensor", mi="4.p.149", mask=16),
        MaskConv("bluetooth_online_⑥", "binary_sensor", mi="4.p.149", mask=32),
        MaskConv("bluetooth_online_⑦", "binary_sensor", mi="4.p.149", mask=64),
        MaskConv("bluetooth_online_⑧", "binary_sensor", mi="4.p.149", mask=128),
        MaskConv("bluetooth_online_⑨", "binary_sensor", mi="4.p.149", mask=256),
        MaskConv("bluetooth_online_⑩", "binary_sensor", mi="4.p.149", mask=512),
        MaskConv("bluetooth_online_⑪", "binary_sensor", mi="4.p.149", mask=1024),
        MaskConv("bluetooth_online_⑫", "binary_sensor", mi="4.p.149", mask=2048),
        MaskConv("bluetooth_online_⑬", "binary_sensor", mi="4.p.149", mask=4096),
        MaskConv("bluetooth_online_⑭", "binary_sensor", mi="4.p.149", mask=8192),

        MaskConv("bluetooth_enter_area_①", "binary_sensor", mi="4.p.149", mask=65536),
        MaskConv("bluetooth_enter_area_②", "binary_sensor", mi="4.p.149", mask=131072),
        MaskConv("bluetooth_enter_area_③", "binary_sensor", mi="4.p.149", mask=262144),
        MaskConv("bluetooth_enter_area_④", "binary_sensor", mi="4.p.149", mask=524288),
        MaskConv("bluetooth_enter_area_⑤", "binary_sensor", mi="4.p.149", mask=1048576),
        MaskConv("bluetooth_enter_area_⑥", "binary_sensor", mi="4.p.149", mask=2097152),
        MaskConv("bluetooth_enter_area_⑦", "binary_sensor", mi="4.p.149", mask=4194304),
        MaskConv("bluetooth_enter_area_⑧", "binary_sensor", mi="4.p.149", mask=8388608),
        MaskConv("bluetooth_enter_area_⑨", "binary_sensor", mi="4.p.149", mask=16777216),
        MaskConv("bluetooth_enter_area_⑩", "binary_sensor", mi="4.p.149", mask=33554432),
        MaskConv("bluetooth_enter_area_⑪", "binary_sensor", mi="4.p.149", mask=67108864),
        MaskConv("bluetooth_enter_area_⑫", "binary_sensor", mi="4.p.149", mask=134217728),
        MaskConv("bluetooth_enter_area_⑬", "binary_sensor", mi="4.p.149", mask=268435456),
        MaskConv("bluetooth_enter_area_⑭", "binary_sensor", mi="4.p.149", mask=536870912),
    ]
}] + DEVICES

@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels Apr 19, 2024
@AlexxIT AlexxIT self-assigned this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants