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

No new entity created after finished adding the gateway #65

Closed kelvinng1 closed 3 years ago

kelvinng1 commented 4 years ago

I added my gateway with the successful message as below:

Success! Created configuration for 192.168.1.152. but there is no entity, including the gateway itself can be find in the Config / Entities

I am using : HA version 0.116.2 Mi Gateway: Plug-in version 1.5.2 firmware version: 1.4.6_0043

rezmus commented 4 years ago

firmware version: 1.4.6_0043 = global hub with locked telnet. let me guess, bought in tw/hk?

kelvinng1 commented 4 years ago

Correct. Bought in HK. If its telnet is locked, why I can get the token of the hub with your component? Shall I use another integration component with the token?

Thanks for your help :-)

rezmus commented 4 years ago

you got token probably with cloud integration using xiaomi account credentials. it's something independent of gateway integration.

can you send miio command to enable telnet? because it's unclear if telnet is disabled or just admin password is not blank. if it's 2nd case maybe something can still be done. you can enable telnet with php-miio, python-miio (miiocli, mirobo) or any tool that can send miio commands.

https://community.home-assistant.io/t/xiaomi-mijia-smart-multi-mode-gateway-zndmwg03lm-support/159586/61

AlexxIT commented 4 years ago

@kelvinng1 please enable debug mode and show logs https://github.com/AlexxIT/XiaomiGateway3#debug-mode

kelvinng1 commented 4 years ago

@AlexxIT , my debug log:

2020-10-14 18:59:29  DEBUG    main          Loaded from MiCloud 4 devices
2020-10-14 18:59:48  DEBUG    gateway3      192.168.1.152 | Read devices
2020-10-14 19:00:48  DEBUG    gateway3      Can't read devices: telnet connection closed
2020-10-14 19:00:48  DEBUG    gateway3      192.168.1.152 | Read devices
2020-10-14 19:01:48  DEBUG    gateway3      Can't read devices: telnet connection closed
2020-10-14 19:01:48  DEBUG    gateway3      192.168.1.152 | Read devices
2020-10-14 19:02:48  DEBUG    gateway3      Can't read devices: telnet connection closed
2020-10-14 19:02:48  DEBUG    gateway3      192.168.1.152 | Read devices
2020-10-14 19:03:48  DEBUG    gateway3      Can't read devices: telnet connection closed
2020-10-14 19:03:48  DEBUG    gateway3      192.168.1.152 | Read devices
AlexxIT commented 4 years ago

Telnet is open, but it probably has a password. Which model is on the bottom of the GW? ZNDMWG02LM or ZNDMWG03LM?

kelvinng1 commented 4 years ago

ZNDMWG02LM

kelvinng1 commented 4 years ago

Any clue to this? I tried both xiaomi_miio and xiaomi_aqara but no luck. HA seems to be able to connect via xiaomi_miio but again, with error. The only connection that works is via homekit_controller, but some devices like wireless button doesn't work due to homekit controller does not support it.

rezmus commented 4 years ago

@kelvinng1 you have to wait for a solution, but it will for sure require to open device. can you share production date from the box?

kelvinng1 commented 4 years ago

Understand and Thanks. Production Date: 08/2020

rezmus commented 4 years ago

if somebody has global hub ZNDMWG02LM with firmware 1.4.6_0043 i can help to get telnet access (uart soldering required). similar way can be used for ZNDMWG03LM with firmware updated to 1.4.7_XXXX.

AlexxIT commented 3 years ago

Global gateway should be flashed with custom firmware to work with component