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

Support Mijia Gateway 3? (Device ZNDMWG03LM) #119

Open
Eckart0 opened this issue Jul 17, 2020 · 8 comments
Open

Support Mijia Gateway 3? (Device ZNDMWG03LM) #119

Eckart0 opened this issue Jul 17, 2020 · 8 comments

Comments

@Eckart0
Copy link

Eckart0 commented Jul 17, 2020

Hi,
is there an update planned for the new mijia gateway? (Item ZNDMWG03LM)?
It seems to be more difficult to enable the LAN mode. I found a desc in [https://community.home-assistant.io/t/xiaomi-mijia-smart-multi-mode-gateway-zndmwg03lm-support/159586/75], and a workaround via Apple Homekit, but I'd prefer a direct integration in iobroker.
Regards, Eckart

@Der-Noeri
Copy link

Hi, that would interest me too. I have the gateway and cannot use it like that.

@BrotherWrong
Copy link

Any news on this at all? Or maybe a different way to get the key?

@LuxBibi
Copy link

LuxBibi commented Nov 26, 2020

Hi .. same issue here ... with Xiaomi Gateway 3 (ZNDMWG03LM) ordered on Aliexpress .... Works fine with Xiaomi App .. but not possible to add to ioBroker .... No "About" menu in app to read key, nor a switch to activate LAN-MODE in App .. I've found partial possts where the soldering is feasible, but RX connectivity ... (https://forum.iobroker.net/user/coupeaze) .. I presume no one was yet able to get this new device connected with ioBroker yet ?

@lastoks
Copy link

lastoks commented Dec 6, 2020

Hi,
I have the EU Version Xiaomi Smart Multimode Gateway (ZNDMWG02LM) https://www.amazon.de/gp/product/B082XCWH71/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

There is also no option to enable the LAN Mode in the Xiaomi App and I can't get the key.
So I connected the Serial convertor to UART Ports and came to the Bootloader. There is a way to get the telnet password (the EU version ist protected with an Password). After I got the password, I activated the telnet with miio commands and bekame a connection to the gateway over telnet.
In the file /data/miio/device.conf you can find the DID and the KEY.
But there is an other Problem. The Firmware VERSION=1.4.6_0043 has no option to enable the LAN Mode. There is no service on the device to open the port 9898. :-( This port is needed for ioBroker.

I will trie to flash an older Firmware and test again.

@Der-Noeri
Copy link

@lastoks Hi, if it works, it would be nice if you could write instructions on it. I have the same gateway, but directly from China. Unfortunately, it's so completely useless to me. Thank you

@lastoks
Copy link

lastoks commented Dec 6, 2020

Hi @Der-Noeri, you can find the intruction here: https://github.com/serrj-sv/lumi.gateway.mgl03/tree/main/uart_recovery.
But this firmware works only with Home Assistent, because they get the data over telnet and need a open telnet port.

The modified firmware has the following features:

Based on official 1.4.7_0065, built by @zvldz
List of modifications:
    enabled 'telnetd'
    disabled gen password
    removes password if exists
    mosquitto port is open for access
    run on startup '/data/run.sh'
    added 'curl'
    added 'dropbear' (to start add in '/data/run.sh' line '/bin/dropbear -R -B')
    replaced 'silabs_ncp_bt' with modified version (works without internet)

Actually I know no way to open the port 9898.
I don't know, if there is an other way to get the data from the gateway without the port 9898.
A translation from https://github.com/AlexxIT/XiaomiGateway3 to the ioBroker adapter could be a way.

Or install a Home Assistant instance with the modified gateway and connect Home Assistence to ioBroker. Not a nice way, but it could work...

@lastoks
Copy link

lastoks commented Dec 7, 2020

Here you can find the desciption how it works with Home Assistant
https://gadget-freakz.com/xiaomi-gateway-3-highly-hackable/

Now, we need someone who build an adapter like the Home Assistant https://github.com/AlexxIT/XiaomiGateway3

@lastoks
Copy link

lastoks commented Dec 7, 2020

I installed a HASS instance and successfully connected the XIAOMI EU Gateway v3 (ZNDMWG02LM) with hacked telnet account.
Then I connected the HASS instance with the ioBroker adapter https://github.com/ioBroker/ioBroker.hass.
Now, I have the Xiaomi temperature and humidity sensors in ioBroker.

It's a quick and dirty workaround... => von hinten durch die Brust ins Auge...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants