Xiaomi Mijia Smart Multi-Mode Gateway (ZNDMWG03LM) support

Gentleman, did somebody make ethernet port active on gateway after soldering (stock firmware 1.4.6_0043) ? … please give some light.

Hi @AlexxIT,

First of all, thanks for the great work on supporting Gateway3 in Home Assistant.

I have multiple sensors connected to the gateway from zigbee to bluetooth. The only issue I am having so far is the Aqara Water Leak Sensor (SJCGQ11LM). From day 1 when I added the sensor, it will always detect as “Wet” even though in the MiHome app is saying “No water state”. I have manually set to dry and after every reboot of HA, it will be back to “Wet”. How do I get HA to reflect the correct status?

Thanks

Hi. Partition names are rootfs_1 and rootfs_2
“If “kernel” and “rootfs” has “0 0” it means your active kernel is kernel_0 and active root_fs is rootfs_0.” active root_fs is rootfs_0 or rootfs_1?
“If “kernel” and “rootfs” has “1 1” it means your active kernel is kernel_1 and active root_fs is rootfs_1.” active root_fs is rootfs_1 or rootfs_2?

In my case i should use rootfs_2 witch is mtd8?

$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00020000 "bootloader"
mtd1: 00020000 00020000 "boot_info"
mtd2: 00020000 00020000 "factory"
mtd3: 00020000 00020000 "mtd_oops"
mtd4: 00100000 00020000 "bbt"
mtd5: 00300000 00020000 "linux_1"
mtd6: 01900000 00020000 "rootfs_1"
mtd7: 00300000 00020000 "linux_2"
mtd8: 01900000 00020000 "rootfs_2"
mtd9: 00100000 00020000 "homekit"
mtd10: 03820000 00020000 "AppData"

$ boot_ctrl show
vernum: 0
bversion: 1.0.2.005
kernel: 1 1
rootfs: 1 1
kernel_0: 0 e6b8 2126852
kernel_1: 0 c8cf 2157572
rootfs_0: 0 0e23 10215428
rootfs_1: 0 62c6 8552452
root_sum_check: off
priv_mode: on

kernel_0 = linux_1 = mtd5
kernel_1 = linux_2 = mtd7
rootfs_0 = rootfs_1 = mtd6
rootfs_1 = rootfs_2 = mtd8

kernel: 1 1 and rootfs: 1 1 means that active partitions are:
mtd7: 00300000 00020000 “linux_2”
mtd8: 01900000 00020000 “rootfs_2”

1 Like

Thanks to confirm!

@skull29 make it wet in real life once

Thanks a lot. It works! :clap:

Dear AlexxIT!

I switched the operation mode to zigbee2mqtt. Then started adding the devices. There first 5-6 worked fine. then I could add finally 19-20 devices, with some freeze, and some restarting of the zigbee2mqtt integration and the gateway.
Finally everything seemed ok, but later - about 6-8 hours all device stopped. Since that I removed some powered devices. Just unpluged 4 of them. The rest network shold be ok, since the most end device connected to the coordinator.
Now the whole system is very unstable: the buttons and bulbs react very slowly (1-2 minutes after I operate them, or press their button) - if they react at all…
I cant open network map - just waiting, and nothing is displayed.
When I restart the zigbee2mqtt edge integration, seems working for a while, then become sluggish and irresponsive. Also sometimes I can see high CPU load of the integration. (on a Pi 4 with 4 GB RAM)

Earlier I used a CC2531 as coordinator (Zstack 3.x), with the same zigbee2mqtt edge, there were much less issues. There weren’t any lag with that. I can’t figure out what can be wrong.

I had 1.4.6_0012 firmware, before I switched to zb2mqtt mode, and in MI Home mode with 3 devices - that was rock solid…
What do You think, shall I update the firmware of the ZNDMWG03LM to 1.5.xx? Or It already done the firmware update?

Thanks!

@AlexxIT is there a way to force BLE sensors, like Flower Care (HHCCJCY01) to update less frequently?
At the moment they update every 30s or less.

Regards.

No. This needs to be reworked on the integration side

@AlexxIT Is it safe to update firmware to 1.5.0_0027? It has been out for some time but it is yet to be listed as safe to update. I am currently on 1.5.0_0026, so just want to be sure before continuing. Thanks. :slight_smile:

don’t update, no point. this version does not bring anything new beside password change to admin on each reboot.

0027 not supported because a lot of users updates without reading docs. This version can be supported. But closed firmware can be released at any time.

Thanks @rezmus @AlexxIT. I will keep it at 1.5.0_0026 for now then.

Hi,

I bought a AQARA TVOC Air Quality Monitor and I want to connect to my gateway 3.
I try this command, but it not connect it.

service: remote.send_command
data:
  entity_id: remote.gatewayID_pair
  command: pair
  device: lumi.airmonitor.acn01

I push the button on the air monitor for 5-10 sec, I see the connect icon, but nothing happened.

Any suggestion?

Thanks!

just pair it with hub on chinese region (3x click on hub and then device reset).

May I ask how often is updated the temperature ad humidity of the sensors into Home Assistant?

@lostprophet how often the values get updated on HA?

In the case of placing in the bathroom, where the humidity increases rapidly. How many times does he update the values?

Hi @vitinho ,

As I can see, it updates from 5 to 7 minutes.

1 Like

@lostprophet Thank you very much for the answer :smile: