AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.45k stars 342 forks source link

SSM-U02 pairing fails #575

Closed denisdatsko closed 2 years ago

denisdatsko commented 2 years ago

Hi everyone,

Got some issues with pairing SSM-U02, the gateway finds the device and adds it to the HA but a few seconds after it is being removed. That's sad because I bought it only because it had been announced as supported.

I tested this behaviour in cn region and got the same results. Found a similar issue #526 with another device but it doesn't help. Adding using remote.send_command also didn't work out, so no clue how it could be solved.

Here is my environment: Home Assistant: 2021.12.4 Gateway: ZNDMWG02LM Fw: 1.5.0_026 Integration: 1.6.5 Device: SSM-U02 (one channel no neutral relay) Region: Russia

Notification about new device in HA: did: lumi.54ef441000075989 mac: 54ef441000075989 model: lumi.switch.l0agl1 version: 22 zb_ver: 3.0 joined_type: 1

Here is my basic and mqtt log:


`2021-12-24 13:07:17  DEBUG    main          SysInfo: {'installation_type': 'Unknown', 'version': '2021.12.4', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.10.0', 'docker': False, 'arch': 'mips', 'timezone': 'Europe/Moscow', 'os_name': 'Linux', 'os_version': '4.9-ndm-5', 'user': 'root'}
2021-12-24 13:07:31  DEBUG    main          Loaded from MiCloud 5 devices
2021-12-24 13:07:42  DEBUG    gateway3      192.168.1.57 | Main loop step 0
2021-12-24 13:07:44  DEBUG    gateway3      192.168.1.57 | lumi.158d000709143e lumi.sensor_wleak.aq1 retain: {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 79, 'battery_end_of_life': 0, 'chip_temperature': 33, 'cur_state': 3, 'fw_ver': '1.0.0_0006', 'hw_ver': 2, 'lqi': 160, 'parent': '', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 7, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3075}
2021-12-24 13:07:44  DEBUG    gateway3      192.168.1.57 | lumi.158d0007086701 lumi.sensor_wleak.aq1 retain: {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 80, 'battery_end_of_life': 0, 'chip_temperature': 34, 'cur_state': 3, 'fw_ver': '1.0.0_0006', 'hw_ver': 2, 'lqi': 192, 'parent': '', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 6, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3085}
2021-12-24 13:07:44  DEBUG    gateway3      192.168.1.57 | lumi.158d0006f81c84 lumi.sensor_wleak.aq1 retain: {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 80, 'battery_end_of_life': 0, 'chip_temperature': 36, 'cur_state': 3, 'fw_ver': '1.0.0_0006', 'hw_ver': 2, 'lqi': 184, 'parent': '', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 25, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3085}
2021-12-24 13:07:45  DEBUG    gateway3      192.168.1.57 | Setup gateway device {'did': '463152993', 'model': 'lumi.gateway.mgl03', 'mac': '0x0c4314fffe865a98', 'wlan_mac': '54:EF:44:2F:2A:18', 'type': 'gateway', 'fw_ver': '1.5.0_0026', 'online': True, 'init': {'firmware lock': True}}
2021-12-24 13:07:45  DEBUG    gateway3      192.168.1.57 | Setup zigbee device {'did': 'lumi.158d000709143e', 'mac': '0x158d000709143e', 'nwk': '0xb671', 'model': 'lumi.sensor_wleak.aq1', 'type': 'zigbee', 'fw_ver': 6, 'hw_ver': 2, 'mod_ver': 6, 'init': {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 75, 'battery_end_of_life': 0, 'chip_temperature': 33, 'cur_state': 3, 'fw_ver': '1.0.0_0006', 'hw_ver': 2, 'lqi': 160, 'parent': '', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 7, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3075, 'moisture': 0}, 'online': True}
2021-12-24 13:07:46  DEBUG    gateway3      192.168.1.57 | Setup zigbee device {'did': 'lumi.158d0007086701', 'mac': '0x158d0007086701', 'nwk': '0xd0ff', 'model': 'lumi.sensor_wleak.aq1', 'type': 'zigbee', 'fw_ver': 6, 'hw_ver': 2, 'mod_ver': 6, 'init': {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 77, 'battery_end_of_life': 0, 'chip_temperature': 34, 'cur_state': 3, 'fw_ver': '1.0.0_0006', 'hw_ver': 2, 'lqi': 192, 'parent': '', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 6, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3085, 'moisture': 0}, 'online': True}
2021-12-24 13:07:46  DEBUG    gateway3      192.168.1.57 | Setup zigbee device {'did': 'lumi.158d0006f81c84', 'mac': '0x158d0006f81c84', 'nwk': '0xf152', 'model': 'lumi.sensor_wleak.aq1', 'type': 'zigbee', 'fw_ver': 6, 'hw_ver': 2, 'mod_ver': 6, 'init': {'CCA': 1, 'alarm': 0, 'alive': 1, 'battery': 77, 'battery_end_of_life': 0, 'chip_temperature': 36, 'cur_state': 3, 'fw_ver': '1.0.0_0006', 'hw_ver': 2, 'lqi': 184, 'parent': '', 'power_tx': 10, 'pre_state': 1, 'pv_state': 0, 'reset_cnt': 25, 'send_all_cnt': 1, 'send_fail_cnt': 0, 'send_retry_cnt': 0, 'voltage': 3085, 'moisture': 0}, 'online': True}
2021-12-24 13:07:46  DEBUG    gateway3      192.168.1.57 | Prepare Gateway
2021-12-24 13:07:52  DEBUG    gateway3      192.168.1.57 | Version: 1.5.0_0026
2021-12-24 13:07:52  DEBUG    gateway3      192.168.1.57 | Patch Bluetooth
2021-12-24 13:07:53  DEBUG    gateway3      192.168.1.57 | MQTT connected
2021-12-24 13:07:53  DEBUG    gateway3      192.168.1.57 | gateway <= True
2021-12-24 13:07:53  DEBUG    gateway3      192.168.1.57 | Gateway time offset: 0.7107069492340088
2021-12-24 13:08:06  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/heartbeat b'{"networkUp":true,"networkPanId":"0x8958","radioTxPower":7,"radioChannel":25}'
2021-12-24 13:08:06  DEBUG    gateway3      192.168.1.57 | gateway <= {'networkUp': True, 'networkPanId': '0x8958', 'radioTxPower': 7, 'radioChannel': 25}
2021-12-24 13:08:53  DEBUG    gateway3      192.168.1.57 | MQTT | log/miio b'\x1b[0;32m2021:12:24:18:08:53.429 [D] miio_client_func: ot_agent_recv_handler_one(): fd:9, msg:{"method":"event.gw.heartbeat","params":[{"free_mem":3376,"ip":"192.168.1.57","load_avg":"1.83|1.88|1.93|3\\/85|2468","rssi":80,"run_time":49973,"setupcode":"333-31-715","ssid":"CryptoNew","tz":"GMT3"}],"id":8201} length:212 bytes\x1b[0m'
2021-12-24 13:08:53  DEBUG    gateway3      192.168.1.57 | gateway <= {'free_mem': 3376, 'ip': '192.168.1.57', 'load_avg': '1.83|1.88|1.93|3/85|2468', 'rssi': 80, 'run_time': 49973, 'setupcode': '333-31-715', 'ssid': 'CryptoNew', 'tz': 'GMT3'}
2021-12-24 13:08:53  DEBUG    gateway3      192.168.1.57 | Gateway time offset: 0.7101826667785645
2021-12-24 13:09:06  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/heartbeat b'{"networkUp":true,"networkPanId":"0x8958","radioTxPower":7,"radioChannel":25}'
2021-12-24 13:09:06  DEBUG    gateway3      192.168.1.57 | gateway <= {'networkUp': True, 'networkPanId': '0x8958', 'radioTxPower': 7, 'radioChannel': 25}
2021-12-24 13:10:07  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/heartbeat b'{"networkUp":true,"networkPanId":"0x8958","radioTxPower":7,"radioChannel":25}'
2021-12-24 13:10:07  DEBUG    gateway3      192.168.1.57 | gateway <= {'networkUp': True, 'networkPanId': '0x8958', 'radioTxPower': 7, 'radioChannel': 25}
2021-12-24 13:10:20  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.0","id":69,"params":[{"res_name":"8.0.2109","value":60}],"source":"","time":1640340620977}'
2021-12-24 13:10:20  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"command":"lumi open-with-cloud-install-code 0x3c","postDelayMs":0}]}'
2021-12-24 13:10:20  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"lumi open-with-cloud-install-code 0x3c"}'
2021-12-24 13:10:20  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":69,"time":1640340620985,"did":"lumi.0","zseq":0,"results":[{"res_name":"8.0.2109","value":60,"error_code":0}]}'
2021-12-24 13:10:20  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'pairing_start': 60} [0.1]
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/Info b'{"MAC Message":"Association Response","newNodeID":"0xC6E1","newNodeEui64":"0x54EF441000075989","parentOfNewNode":"0x0000"}'
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"report","id":2000000099,"did":"lumi.0","time":1640340640214,"rssi":-52,"zseq":0,"params":[{"res_name":"8.0.2110","value":"54ef441000075989"}],"dev_src":"0"}'
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'discovered_mac': '54ef441000075989'} [0.05]
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"report","id":2000000100,"did":"lumi.0","time":1640340640215,"rssi":-52,"zseq":0,"params":[{"res_name":"8.0.2166","value":"{}"}],"dev_src":"0"}'
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'8.0.2166': '{}'} [0.08]
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.0","id":70,"params":[{"res_name":"8.0.2111","value":{"code":0,"install_code":"38bc2ab4d0ac3a0a31a36b2c86ef22c464c8","mac":"54ef441000075989"}}],"source":"","time":1640340640527}'
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"command":"lumi send-nwk-key 0xc6e1 {54ef441000075989} 0x0000 {38bc2ab4d0ac3a0a31a36b2c86ef22c464c8}","postDelayMs":0}]}'
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":70,"time":1640340640535,"did":"lumi.0","zseq":0,"results":[{"res_name":"8.0.2111","value":{"code":0,"install_code":"38bc2ab4d0ac3a0a31a36b2c86ef22c464c8","mac":"54ef441000075989"},"error_code":0}]}'
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'pair_command': {'code': 0, 'install_code': '38bc2ab4d0ac3a0a31a36b2c86ef22c464c8', 'mac': '54ef441000075989'}} [0.06]
2021-12-24 13:10:39  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"lumi send-nwk-key 0xc6e1 {54ef441000075989} 0x0000 {38bc2ab4d0ac3a0a31a36b2c86ef22c464c8}"}'
2021-12-24 13:10:40  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/devicejoined b'{"nodeId":"0xC6E1","deviceState":16,"deviceType":"0x00FF","timeSinceLastMessage":0,"deviceEndpoint":{"eui64":"0x54EF441000075989","endpoint":0,"clusterInfo":[]},"firstjoined":1}'
2021-12-24 13:10:42  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x0A","APSPlayload":"0x1D5F1100031C0802041864100003281C052101009A2010082116010A2100000B2000","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:42  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0x000A","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x0B","APSPlayload":"0x10010000000200","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:42  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0x000A","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x00","APSPlayload":"0x180101000000E2528358290200002B00000000"}'
2021-12-24 13:10:43  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x0C","APSPlayload":"0x1D5F1102030E0104030A302E302E305F30303232","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:45  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x0D","APSPlayload":"0x1D5F1103031C0802041864100003281C052101009A2000082116010A2100000B2000","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zdo node 0xc6e1","postDelayMs":0}]}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x0002","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x00","APSPlayload":"0x4CE1C6"}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zdo node 0xc6e1"}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x8002","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x0E","APSPlayload":"0x4C00E1C60240805F117F6400002C640000","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x0F","APSPlayload":"0x1D5F110403050201050100","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zdo active 0xc6e1","postDelayMs":0}]}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x0005","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x00","APSPlayload":"0x4DE1C6"}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zdo active 0xc6e1"}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x8005","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x10","APSPlayload":"0x4D00E1C60201F2","rssi":-58,"linkQuality":168}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zdo simple 0xc6e1 1","postDelayMs":0}]}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x0004","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x00","APSPlayload":"0x4EE1C601"}'
2021-12-24 13:10:46  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zdo simple 0xc6e1 1"}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x8004","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x11","APSPlayload":"0x4E00E1C6160104010001010500000200030004000500020A001900","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zdo simple 0xc6e1 242","postDelayMs":0}]}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x0004","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x00","APSPlayload":"0x4FE1C6F2"}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zdo simple 0xc6e1 242"}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x8004","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x12","APSPlayload":"0x4F00E1C60AF2E0A161000000012100","rssi":-58,"linkQuality":168}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zcl mfg-code 0x0000"},{"commandcli":"zcl global read 0x0000 0x0001"},{"commandcli":"send 0xc6e1 1 1","postDelayMs":0}]}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl mfg-code 0x0000"}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl global read 0x0000 0x0001"}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zcl global read 0x0000 0x0005"},{"commandcli":"send 0xc6e1 1 1","postDelayMs":0}]}'
2021-12-24 13:10:47  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0x0000","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x12","APSPlayload":"0x101D000100"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"send 0xc6e1 1 1"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl global read 0x0000 0x0005"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0x0000","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x20","APSPlayload":"0x101E000500"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"send 0xc6e1 1 1"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0x0000","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x13","APSPlayload":"0x181D010100002016","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0x0000","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x14","APSPlayload":"0x181E0105000042126C756D692E7377697463682E6C3061676C31","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zdo bind 0xc6e1 1 1 0x0002 {54ef441000075989} {0c4314fffe865a98}","postDelayMs":0}]}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x0021","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x4C","APSPlayload":"0x50895907001044EF5401020003985A86FEFF14430C01"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zdo bind 0xc6e1 1 1 0x0002 {54ef441000075989} {0c4314fffe865a98}"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"report","id":2000000101,"did":"lumi.0","dev_src":"0","zseq":0,"params":[{"res_name":"8.0.2084","value":{"did":"lumi.54ef441000075989","mac":"54ef441000075989","model":"lumi.switch.l0agl1","version":"22","zb_ver":"3.0","joined_type":1}}]}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'added_device': {'did': 'lumi.54ef441000075989', 'mac': '54ef441000075989', 'model': 'lumi.switch.l0agl1', 'version': '22', 'zb_ver': '3.0', 'joined_type': 1}} [?]
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | Setup zigbee device {'did': 'lumi.54ef441000075989', 'mac': '0x54ef441000075989', 'model': 'lumi.switch.l0agl1', 'version': '22', 'zb_ver': '3.0', 'joined_type': 1, 'type': 'zigbee', 'init': {'added_device': {...}}, 'nwk': '0xffff', 'fw_ver': 0, 'online': True}
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"report","id":2000000102,"did":"lumi.0","time":1640340649195,"rssi":-52,"zseq":0,"params":[{"res_name":"8.0.2103","value":"lumi.switch.l0agl1"}],"dev_src":"0"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'device_model': 'lumi.switch.l0agl1'} [0.26]
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"read","did":"lumi.54ef441000075989","id":71,"params":[{"res_name":"8.0.2086"}],"source":"","time":1640340649259}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zcl mfg-code 0x115f"},{"commandcli":"zcl global read 0xfcc0 0x0007"},{"commandcli":"send 0xc6e1 1 1","postDelayMs":0}]}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl mfg-code 0x115f"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl global read 0xfcc0 0x0007"}'
2021-12-24 13:10:48  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x21","APSPlayload":"0x145F111F000700"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"send 0xc6e1 1 1"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x8021","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x15","APSPlayload":"0x5000","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.0","id":72,"params":[{"res_name":"8.0.2104","value":{"model":"lumi.switch.l0agl1","pdid":69002,"template_id":""}}],"source":"","time":1640340649438}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":72,"time":1640340649454,"did":"lumi.0","zseq":0,"results":[{"res_name":"8.0.2104","value":{"model":"lumi.switch.l0agl1","pdid":69002,"template_id":""},"error_code":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'8.0.2104': {'model': 'lumi.switch.l0agl1', 'pdid': 69002, 'template_id': ''}} [0.4]
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x16","APSPlayload":"0x1C5F111F0107000041080000000017B2A506","rssi":-58,"linkQuality":168}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"read_rsp","id":71,"did":"lumi.54ef441000075989","time":1640340649615,"zseq":31,"results":[{"res_name":"8.0.2086","value":"0000000017b2a506","error_code":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | lumi.54ef441000075989 lumi.switch.l0agl1 <= {'8.0.2086': '0000000017b2a506'} [0.3]
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.54ef441000075989","id":73,"params":[{"res_name":"8.0.2087","value":"3C8F6A3987E0BB20F68443CD1234F62B"}],"source":"","time":1640340649889}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zcl mfg-code 0x115f"},{"commandcli":"zcl global write 0xfcc0 0x0008 0x41 {3c8f6a3987e0bb20f68443cd1234f62b}"},{"commandcli":"send 0xc6e1 1 1","postDelayMs":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":73,"time":1640340649895,"did":"lumi.54ef441000075989","zseq":31,"results":[{"res_name":"8.0.2087","value":"3C8F6A3987E0BB20F68443CD1234F62B","error_code":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | lumi.54ef441000075989 lumi.switch.l0agl1 <= {'8.0.2087': '3C8F6A3987E0BB20F68443CD1234F62B'} [0.1]
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl mfg-code 0x115f"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zcl global write 0xfcc0 0x0008 0x41 {3c8f6a3987e0bb20f68443cd1234f62b}"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x23","APSPlayload":"0x145F112002080041103C8F6A3987E0BB20F68443CD1234F62B"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"send 0xc6e1 1 1"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x17","APSPlayload":"0x1C5F11050A0800411015301CCB7ACBD1A65070CB62387E4B76070041080000000017B2A506","rssi":-58,"linkQuality":168}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x01","clusterId":"0xFCC0","profileId":"0x0104","sourceEndpoint":"0x01","APSCounter":"0x18","APSPlayload":"0x1C5F11200400","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"report","id":2000000103,"did":"lumi.54ef441000075989","time":1640340650174,"rssi":-58,"zseq":5,"params":[{"res_name":"8.0.2088","value":"15301ccb7acbd1a65070cb62387e4b76"}],"dev_src":"0"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | lumi.54ef441000075989 lumi.switch.l0agl1 <= {'8.0.2088': '15301ccb7acbd1a65070cb62387e4b76'} [0.08]
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_ack","id":73,"did":"lumi.54ef441000075989","dev_src":"0","time":1640340650175,"rssi":-58,"zseq":32,"params":[{"res_name":"8.0.2087","value":"3c8f6a3987e0bb20f68443cd1234f62b"}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.0","id":74,"params":[{"res_name":"8.0.2109","value":0}],"source":"","time":1640340650234}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"command":"plugin network-creator-security close-network","postDelayMs":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":74,"time":1640340650255,"did":"lumi.0","zseq":0,"results":[{"res_name":"8.0.2109","value":0,"error_code":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'pairing_start': 0} [0.1]
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"plugin network-creator-security close-network"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.0","id":75,"params":[{"res_name":"8.0.2082","value":"lumi.54ef441000075989"}],"source":"","time":1640340650440}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"commandcli":"zdo leave 0xc6e1 0 0","postDelayMs":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":75,"time":1640340650527,"did":"lumi.0","zseq":0,"results":[{"res_name":"8.0.2082","value":"lumi.54ef441000075989","error_code":0}]}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'removed_did': 'lumi.54ef441000075989'} [0.04]
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | remote.0x0c4314fffe865a98_pair | Handle removed_did: lumi.54ef441000075989
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessagePreSentCallback b'{"eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x0034","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x00","APSPlayload":"0x52000000000000000000"}'
2021-12-24 13:10:49  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"zdo leave 0xc6e1 0 0"}'
2021-12-24 13:10:50  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/devicestatechange b'{"eui64":"0x54EF441000075989","deviceState":32}'
2021-12-24 13:10:50  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/MessageReceived b'{"sourceAddress":"0xC6E1","eui64":"0x54EF441000075989","destinationEndpoint":"0x00","clusterId":"0x8034","profileId":"0x0000","sourceEndpoint":"0x00","APSCounter":"0x19","APSPlayload":"0x5200","rssi":-57,"linkQuality":172}'
2021-12-24 13:10:50  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/deviceleft b'{"eui64":"0x54EF441000075989"}'
2021-12-24 13:11:06  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/heartbeat b'{"networkUp":true,"networkPanId":"0x8958","radioTxPower":7,"radioChannel":25}'
2021-12-24 13:11:06  DEBUG    gateway3      192.168.1.57 | gateway <= {'networkUp': True, 'networkPanId': '0x8958', 'radioTxPower': 7, 'radioChannel': 25}
2021-12-24 13:11:21  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/recv b'{"cmd":"write","did":"lumi.0","id":76,"params":[{"res_name":"8.0.2109","value":0}],"source":"","time":1640340681994}'
2021-12-24 13:11:21  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/commands b'{"commands":[{"command":"plugin network-creator-security close-network","postDelayMs":0}]}'
2021-12-24 13:11:21  DEBUG    gateway3      192.168.1.57 | MQTT | gw/0C4314FFFE865A98/executed b'{"command":"plugin network-creator-security close-network"}'
2021-12-24 13:11:21  DEBUG    gateway3      192.168.1.57 | MQTT | zigbee/send b'{"cmd":"write_rsp","id":76,"time":1640340682015,"did":"lumi.0","zseq":0,"results":[{"res_name":"8.0.2109","value":0,"error_code":0}]}'
2021-12-24 13:11:21  DEBUG    gateway3      192.168.1.57 | 463152993 lumi.gateway.mgl03 <= {'pairing_start': 0} [0.1]`
AlexxIT commented 2 years ago

It should work on CN server

denisdatsko commented 2 years ago

@AlexxIT Thank you, it works in CN region, a bit strange why it didn't work out first time. CN is much slower though