Closed Kyle0820 closed 7 months ago
Show device diagnostics
thanks Alexx, and below are the logs, please check when you are available:
2024-04-08 20:54:03.584 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'openmiio/report', 'data': b'{"gateway":{"firmware":"1.0.6_0016","model":"lumi.gateway.mcn001"},"miio":{"cloud_starts":1,"cloud_state":"cloud_connected","cloud_uptime":"166h50m31s"},"openmiio":{"uptime":"166h50m32s","version":"1.2.1"},"serial":{"bluetooth_rx":1093008522,"bluetooth_tx":159795377,"zigbee_rx":524898,"zigbee_tx":431315},"zigbee":{"z3_starts":1,"z3_uptime":"166h50m31s"}}'}
2024-04-08 20:54:19.209 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'central/report', 'data': b'{"id":1087954740,"_to":128,"method":"_async.ble_event","params":{"dev":{"did":"1035545599","mac":"1B:CF:2A:44:7C:D4","pdid":7735},"evt":[{"eid":7,"edata":"01FCE81366"}],"frmCnt":70,"gwts":1712580858}}'}
2024-04-08 20:54:19.211 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.125] {'uid': '1bcf2a447cd4', 'did': '1035545599', 'msg': 'on_report', 'data': {'contact': False, 'action': 'door', 'action_id': 1, 'message': 'Door is closed', 'timestamp': '2024-04-08T20:54:20'}}
2024-04-08 20:54:19.394 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report', 'data': b'{"id":1244515824,"method":"_async.ble_event","params":{"dev":{"did":"1035545599","mac":"1B:CF:2A:44:7C:D4","pdid":7735},"evt":[{"eid":7,"edata":"01fce81366"}],"frmCnt":70,"gwts":1712580858}}'}
2024-04-08 20:54:19.494 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report_ack', 'data': b'{"id":1244515824,"result":"ok"}'}
2024-04-08 20:54:20.261 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'gw/50EC50530204065E/heartbeat', 'data': b'{"networkUp":true,"networkPanId":"0x84F7","radioTxPower":14,"radioChannel":11,"Directory":"/data/zigbee_host/"}'}
2024-04-08 20:54:22.651 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'central/report', 'data': b'{"id":749280744,"_to":128,"type":16,"method":"properties_changed","params":[{"did":"1086718720","siid":2,"piid":4,"tid":109,"value":2}]}'}
2024-04-08 20:54:22.653 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.125] {'uid': 'c85ccca7890b', 'did': '1086718720', 'msg': 'on_report', 'data': {'idle_time': 120}}
2024-04-08 20:54:22.844 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report', 'data': b'{"id":1825083825,"method":"properties_changed","params":[{"did":"1086718720","siid":2,"piid":4,"tid":109,"value":2}],"type":16}'}
2024-04-08 20:54:22.914 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report_ack', 'data': b'{"id":1825083825,"result":"ok"}'}
2024-04-08 20:54:33.583 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'openmiio/report', 'data': b'{"gateway":{"firmware":"1.0.6_0016","model":"lumi.gateway.mcn001"},"miio":{"cloud_starts":1,"cloud_state":"cloud_connected","cloud_uptime":"166h51m1s"},"openmiio":{"uptime":"166h51m2s","version":"1.2.1"},"serial":{"bluetooth_rx":1093067027,"bluetooth_tx":159803633,"zigbee_rx":524940,"zigbee_tx":431341},"zigbee":{"z3_starts":1,"z3_uptime":"166h51m1s"}}'}
2024-04-08 20:54:48.537 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'central/report', 'data': b'{"id":667311771,"_to":128,"method":"_async.ble_event","params":{"dev":{"did":"1035545599","mac":"1B:CF:2A:44:7C:D4","pdid":7735},"evt":[{"eid":4111,"edata":"01"}],"frmCnt":71,"gwts":1712580887}}'}
2024-04-08 20:54:48.539 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.125] {'uid': '1bcf2a447cd4', 'did': '1035545599', 'msg': 'on_report', 'data': {'door': False}}
by the way, I have two light groups that may become unavailable from time to time. When manually turning on and off in the Mi Home app, the entity becomes available, but after a period of time, the entity becomes unavailable again, and only two specific light groups have this issue. Here are the logs when the entity becomes unavailable:
2024-04-08 21:17:23.121 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report_ack', 'data': b'{"id":855664063,"result":"ok"}'}
2024-04-08 21:17:30.191 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report', 'data': b'{"id":120954064,"method":"_sync.ble_mesh_offline","params":{"list":[{"did":"1047544148","rssi":-120,"hops":1,"ts":1712581523}]}}'}
2024-04-08 21:17:30.192 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.0.125] {'uid': '28d127340e50', 'did': '1047544148', 'msg': 'ble_mesh_offline'}
2024-04-08 21:17:30.268 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'miio/report_ack', 'data': b'{"id":120954064,"result":{}}'}
2024-04-08 21:17:33.581 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.192.168.0.125] {'topic': 'openmiio/report', 'data': b'{"gateway":{"firmware":"1.0.6_0016","model":"lumi.gateway.mcn001"},"miio":{"cloud_starts":1,"cloud_state":"cloud_connected","cloud_uptime":"167h14m1s"},"openmiio":{"uptime":"167h14m2s","version":"1.2.1"},"serial":{"bluetooth_rx":1095815474,"bluetooth_tx":160203562,"zigbee_rx":526117,"zigbee_tx":432308},"zigbee":{"z3_starts":1,"z3_uptime":"167h14m1s"}}'}
Your gateway thinks the lights are offline. Could be a weak signal or something else. The integration is correctly processing the message from the gateway
Your gateway thinks the lights are offline. Could be a weak signal or something else. The integration is correctly processing the message from the gateway
Wait a minute, I have a different opinion, is there a possibility here: if I have multiple Bluetooth gateway devices, and the Xiaomi multi-mode gateway thinks that the device with poor signal or offline is actually normal online and has a signal on other Bluetooth gateway (such as a Bluetooth socket) device, then based on the offline message of the Xiaomi multi-mode gateway, is it not appropriate to make the entity unavailable? btw, is the lock's issue a bug?thanks for your patience
Lock model haven't added to integration. But it should works fine when you using lock
Lock model haven't added to integration. But it should works fine when you using lock
hummm....I reboot my Xiaomi multi-mode gateway just now, the lock is works
If you collect all possible actions - I can write converter for your model
If you collect all possible actions - I can write converter for your model
Much obliged for your assistance! Should I provide more infomation about my lock? Thanks again!
No problem. I'm already get spec for your lock.
my door lock's model is loock S50m