niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

aqara g2h not connect via telnet #202

Closed almirus closed 11 months ago

almirus commented 1 year ago

hi! I can connect via Putty to Aqara g2h, but AqaraGateway doesn't

root without password image

image

no devices image but

/var # cat /mnt/config/zigbee/device.info
{"devInfo":[{"mac":"0x54ef44100053bb2c","shortId":"0x45c6","manuCode":"0x115f","model":"aqara.lock.bzacn4","did":"lumi.54ef44100053bb2c","devType":0,"appVer":1,"hardVer":0,"devID":65520,"status":0,"model_ver":1,"preLeave":0}]}/var #
 2023-10-05 18:43:16  DEBUG  main  SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2023.10.0', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.11.5', 'docker': True, 'arch': 'aarch64', 'os_name': 'Linux', 'os_version': '6.1.21-v8', 'user': 'root', 'supervisor': '2023.10.0', 'host_os': 'Home Assistant OS 10.5', 'docker_version': '23.0.6', 'chassis': 'embedded'}
 2023-10-05 18:45:30  DEBUG  gateway  192.168.0.34: mosquitto is not running as public!
 2023-10-05 18:52:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000028,"did":"lumi.54ef44100053bb2c","time":1696521173641,"rssi":-41,"zseq":159,"params":[{"res_name":"8.0.2007","value":212},{"res_name":"13.62.85","value":1696521172}],"dev_src":"0"}
 2023-10-05 19:02:50  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000029,"did":"lumi.0","dev_src":"0","time":1696521770394,"rssi":-41,"params":[{"res_name":"8.0.2021","value":"time:2023-10-5 19:2:50.394,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1"}]}
 2023-10-05 19:02:50  DEBUG  gateway  192.168.0.34: gateway <= [{'res_name': '8.0.2021', 'value': 'time:2023-10-5 19:2:50.394,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1'}]
 2023-10-05 19:02:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000030,"did":"lumi.54ef44100053bb2c","time":1696521773650,"rssi":-43,"zseq":160,"params":[{"res_name":"8.0.2007","value":210},{"res_name":"13.62.85","value":1696521772}],"dev_src":"0"}
 2023-10-05 19:12:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000031,"did":"lumi.54ef44100053bb2c","time":1696522373653,"rssi":-44,"zseq":161,"params":[{"res_name":"8.0.2007","value":209},{"res_name":"13.62.85","value":1696522372}],"dev_src":"0"}
 2023-10-05 19:22:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000032,"did":"lumi.54ef44100053bb2c","time":1696522973656,"rssi":-46,"zseq":162,"params":[{"res_name":"8.0.2007","value":208},{"res_name":"13.62.85","value":1696522972}],"dev_src":"0"}
 2023-10-05 19:29:03  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000033,"did":"lumi.54ef44100053bb2c","time":1696523343514,"rssi":-47,"zseq":163,"params":[{"res_name":"13.55.85","value":5784},{"res_name":"13.56.85","value":100},{"res_name":"13.57.85","value":3},{"res_name":"13.62.85","value":1696523342}],"dev_src":"0"}
 2023-10-05 19:29:03  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000033,"did":"lumi.54ef44100053bb2c","time":1696523343514,"rssi":-47,"zseq":163,"params":[{"res_name":"13.55.85","value":5784},{"res_name":"13.56.85","value":100},{"res_name":"13.57.85","value":3},{"res_name":"13.62.85","value":1696523342}],"dev_src":"0"}
 2023-10-05 19:32:51  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000034,"did":"lumi.0","dev_src":"0","time":1696523571266,"rssi":-47,"params":[{"res_name":"8.0.2021","value":"time:2023-10-5 19:32:51.265,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1"}]}
 2023-10-05 19:32:51  DEBUG  gateway  192.168.0.34: gateway <= [{'res_name': '8.0.2021', 'value': 'time:2023-10-5 19:32:51.265,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1'}]
 2023-10-05 19:32:51  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000034,"did":"lumi.0","dev_src":"0","time":1696523571266,"rssi":-47,"params":[{"res_name":"8.0.2021","value":"time:2023-10-5 19:32:51.265,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1"}]}
 2023-10-05 19:32:51  DEBUG  gateway  192.168.0.34: gateway <= [{'res_name': '8.0.2021', 'value': 'time:2023-10-5 19:32:51.265,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1'}]
 2023-10-05 19:32:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000035,"did":"lumi.54ef44100053bb2c","time":1696523573665,"rssi":-45,"zseq":164,"params":[{"res_name":"8.0.2007","value":204},{"res_name":"13.62.85","value":1696523572}],"dev_src":"0"}
 2023-10-05 19:32:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000035,"did":"lumi.54ef44100053bb2c","time":1696523573665,"rssi":-45,"zseq":164,"params":[{"res_name":"8.0.2007","value":204},{"res_name":"13.62.85","value":1696523572}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000036,"did":"lumi.54ef44100053bb2c","time":1696524070167,"rssi":-49,"zseq":165,"params":[{"res_name":"13.88.85","value":8},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000036,"did":"lumi.54ef44100053bb2c","time":1696524070167,"rssi":-49,"zseq":165,"params":[{"res_name":"13.88.85","value":8},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000037,"did":"lumi.54ef44100053bb2c","time":1696524070260,"rssi":-47,"zseq":166,"params":[{"res_name":"13.41.85","value":0},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000037,"did":"lumi.54ef44100053bb2c","time":1696524070260,"rssi":-47,"zseq":166,"params":[{"res_name":"13.41.85","value":0},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000038,"did":"lumi.54ef44100053bb2c","time":1696524070623,"rssi":-47,"zseq":167,"params":[{"res_name":"13.88.85","value":2},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000038,"did":"lumi.54ef44100053bb2c","time":1696524070623,"rssi":-47,"zseq":167,"params":[{"res_name":"13.88.85","value":2},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000039,"did":"lumi.54ef44100053bb2c","time":1696524070714,"rssi":-48,"zseq":168,"params":[{"res_name":"13.17.85","value":0},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:10  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000039,"did":"lumi.54ef44100053bb2c","time":1696524070714,"rssi":-48,"zseq":168,"params":[{"res_name":"13.17.85","value":0},{"res_name":"13.62.85","value":1696524069}],"dev_src":"0"}
 2023-10-05 19:41:15  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000040,"did":"lumi.54ef44100053bb2c","time":1696524074985,"rssi":-40,"zseq":169,"params":[{"res_name":"13.88.85","value":8},{"res_name":"13.62.85","value":1696524074}],"dev_src":"0"}
 2023-10-05 19:41:15  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000040,"did":"lumi.54ef44100053bb2c","time":1696524074985,"rssi":-40,"zseq":169,"params":[{"res_name":"13.88.85","value":8},{"res_name":"13.62.85","value":1696524074}],"dev_src":"0"}
 2023-10-05 19:41:15  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000041,"did":"lumi.54ef44100053bb2c","time":1696524075137,"rssi":-41,"zseq":170,"params":[{"res_name":"13.88.85","value":3},{"res_name":"13.62.85","value":1696524074}],"dev_src":"0"}
 2023-10-05 19:41:15  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000041,"did":"lumi.54ef44100053bb2c","time":1696524075137,"rssi":-41,"zseq":170,"params":[{"res_name":"13.88.85","value":3},{"res_name":"13.62.85","value":1696524074}],"dev_src":"0"}
 2023-10-05 19:41:15  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000042,"did":"lumi.54ef44100053bb2c","time":1696524075225,"rssi":-42,"zseq":171,"params":[{"res_name":"13.17.85","value":1},{"res_name":"13.62.85","value":1696524074}],"dev_src":"0"}
 2023-10-05 19:41:15  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000042,"did":"lumi.54ef44100053bb2c","time":1696524075225,"rssi":-42,"zseq":171,"params":[{"res_name":"13.17.85","value":1},{"res_name":"13.62.85","value":1696524074}],"dev_src":"0"}
 2023-10-05 19:42:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000043,"did":"lumi.54ef44100053bb2c","time":1696524173671,"rssi":-39,"zseq":172,"params":[{"res_name":"8.0.2007","value":205},{"res_name":"13.62.85","value":1696524172}],"dev_src":"0"}
 2023-10-05 19:42:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000043,"did":"lumi.54ef44100053bb2c","time":1696524173671,"rssi":-39,"zseq":172,"params":[{"res_name":"8.0.2007","value":205},{"res_name":"13.62.85","value":1696524172}],"dev_src":"0"}
 2023-10-05 19:52:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000044,"did":"lumi.54ef44100053bb2c","time":1696524773676,"rssi":-38,"zseq":173,"params":[{"res_name":"8.0.2007","value":213},{"res_name":"13.62.85","value":1696524772}],"dev_src":"0"}
 2023-10-05 19:52:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000044,"did":"lumi.54ef44100053bb2c","time":1696524773676,"rssi":-38,"zseq":173,"params":[{"res_name":"8.0.2007","value":213},{"res_name":"13.62.85","value":1696524772}],"dev_src":"0"}
 2023-10-05 20:02:52  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000045,"did":"lumi.0","dev_src":"0","time":1696525372118,"rssi":-38,"params":[{"res_name":"8.0.2021","value":"time:2023-10-5 20:2:52.118,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1"}]}
 2023-10-05 20:02:52  DEBUG  gateway  192.168.0.34: gateway <= [{'res_name': '8.0.2021', 'value': 'time:2023-10-5 20:2:52.118,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1'}]
 2023-10-05 20:02:52  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000045,"did":"lumi.0","dev_src":"0","time":1696525372118,"rssi":-38,"params":[{"res_name":"8.0.2021","value":"time:2023-10-5 20:2:52.118,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1"}]}
 2023-10-05 20:02:52  DEBUG  gateway  192.168.0.34: gateway <= [{'res_name': '8.0.2021', 'value': 'time:2023-10-5 20:2:52.118,channel 0x0b, pan 0x3271, mac 0x54ef44100030ed90, version 6.18 noUartMsgCount:1'}]
 2023-10-05 20:02:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000046,"did":"lumi.54ef44100053bb2c","time":1696525373678,"rssi":-41,"zseq":174,"params":[{"res_name":"8.0.2007","value":213},{"res_name":"13.62.85","value":1696525372}],"dev_src":"0"}
 2023-10-05 20:02:53  DEBUG  gateway  192.168.0.34: MQTT on_message: zigbee/send {"cmd":"report","id":2000000046,"did":"lumi.54ef44100053bb2c","time":1696525373678,"rssi":-41,"zseq":174,"params":[{"res_name":"8.0.2007","value":213},{"res_name":"13.62.85","value":1696525372}],"dev_src":"0"}
shenmirenQUQ commented 1 year ago

What version of firmware does your g2h have? How to activate telnet?

almirus commented 1 year ago

@shenmirenQUQ last via SD and hostname file

shenmirenQUQ commented 1 year ago

@shenmirenQUQ last via SD and host file

What version of firmware?I failed to use hostname on 2.2.7 firmware

almirus commented 1 year ago

Screenshot_20231013_173004_Aqara Home

shenmirenQUQ commented 1 year ago

Screenshot_20231013_173004_Aqara Home

I also have this firmware version, but the host name is invalid. It seems that I should study why it does not take effect on my g2h.

almirus commented 1 year ago

Was the SD card formatted in FAT32? Is the file format of the hostname Linux?

shenmirenQUQ commented 1 year ago

SD卡是否格式化为FAT32?主机名的文件格式是Linux吗?

My SD card was formatted using g2h. The format is FAT32. The hostname is a Linux file format created using nodepod++. Can you provide me with a copy of your hostname file for reference? grateful

almirus commented 1 year ago

hostname.gz please unpack (without extension)

almirus commented 1 year ago

@niceboygithub I found a problem, the Telnet status is not displayed if I update busybox, even though Telnet itself is working, but the integration does not detect Telnet and does not get the list of devices.

shenmirenQUQ commented 1 year ago

hostname.gz please unpack (without extension)

Oh My God, after using your file, telnet works normally. Thank you very much. WX20231014-005152@2x