Xiaomi Mijia Smart Multi-Mode Gateway (ZNDMWG03LM) support

Hi AllexIT, i managed to install your integration (did not enable telnet though).
Point is that when adding host and received token (method by interrogating recovered DB from Iphone ap, via IP string eg 192.168.1.71)…but i receive the error : No response from server! LOG Says [miio.miioprotocol] Got error when receiving: timed out.

Then i deleted the gateway from the app and tried to add it, now error is ERROR: Unable to discover the device 192.168.1.71. What would be the problem and fix?

LATER EDIT: I recaptured the token as it was re-generated.
Do you have a guide on how to add devices (like a wallswitch or something), without having to pair it first to the Hub with the MI APP?
Thanks

You need turn on Pair switch entity for enable Gateway Pair mode.

1 Like

Thanks @AlexxIT, with firmware v0.2.4, my gateway show itself and 4 Plant Flower Care by BLE.
But it not discover a smart lock Aquara N100 (https://www.gearbest.com/door-intercom/pp_009718041110.html). This lock are discovered in MiHome app.
Have you any solution for it?

Support of locks in development.

Thanks Alexey for your development. I’m just starting with Hassio and was able to integrate ZNDMWG03LM thanks to your tutorial.
So far I have 4 TH sensors ( LYWSD03MMC ) + 1 XIAOMI MIJIA Temperature Humidity Sensor ( WSDCGQ01LM ).
1st question: What is default data refresh rate and can it be edited?
2nd: The temperature is showed with 2 digits after coma, can it be rounded to 1 digit after?
3rd: The air pressure from WSDCGQ01LM is showed without coma, which gives wrong value: 100879 hPa ( should be 1008.79 hPa ), how can I fix it?
image
Sorry if my questions are evident.
Regards,
Edit: LYWSD03MMC temperatures are well rounded to 1 digit after coma

If you need other sensor values - you should create template sensor.
I will fix pressure in future releases.

1 Like

Bluetooth Locks supported in latest release!

2 Likes

I just want to say a big THANK YOU @AlexxIT.

I managed after a lot of trials and errors to make my ZNDMWG03LM to work, without flashing, without anything.

But the real surprise was that the Aqara lamp ZNLDP12LM works, while on the older gates didn’t work (1) (2)

Thank you again and keep up the good work!

With Release v0.3.0, the Aqara N100 lock are detected, but only 1 entity as battery. Don’t have a Action entity as follow:

Did you do something with the lock? The rest of the objects will appear as events are received from lock.

After reinstall and re-config the component, on HASS UI, the action sensor appear :+1:


but the state of this sensor is empty and some time it was unavailable state:

Hi Gents,
I am very noob here, I understand that thanks to AlexxIT, it’s possble to integrate latest Xiaomi Multimode gateway for supporting BLE and ZigBee devices.

Will it be also possible to support Wifi devices too with this same component or are there other solutions for these ones, please ? (i.e. Xiaomi Wifi Wecam, relay, etc.)

Many thanls in advance
Fred

Hi, I’m from Russia, so I’m sorry if my speech isn’t very clear. I have a question about what I quoted, I also tried to do what you wrote and got an eternal reboot, but I managed to bypass this and go into the bootloader, but I do not understand how to flash rootfs there. I hope you can tell me, thanks.

The state of Action fills up for a split second so it can be used in a trigger.
I don’t know if your lock supports binary lock sensor.
Xiaomi Loock supports it.

Some Xiaomi Wi-Fi devices supports with miio integration.

AlexxIT, I would like to say a really big Thank you in the name of the Community.

I was trying to use this multimode Gateway since half a year, I was using it with HomeKit, but not all my connected devices of course, now I able to use all of them and faster. That is such a huge effort you put into this, we are really grateful for that, I also felt the same when I started to buy Sonoff stuffs and you was the one who solved the integration without tasmota.

Im happy we have a nice and professional guy with us :wink:

Keep up the good work mate!

Bye,
A friend.

3 Likes

Also from me a big thanks to @AlexxIT i was hoping for this to happen.
I got the MI Smart hub working.

But i have a question about the Aqara opple six button device who was tested to work.
HA did find it and it’s working. but does this still work with the “xiaomi.aqara.click” event type?
Older buttons/switches do work with this event type on the V2 gateway.

Do i miss something? i can test the event in HA (trough the event log) but pressing the physical button nothing happens for example: turning the lights on.

Is it possible in future to add support for devices other than xiaomi, for example Tuya wall switch https://pl.aliexpress.com/item/4001138076397.html ? It’s much cheaper than aqara.
Thanks for great work!

I have the same device.
When I click on a button I get this event:

{
    "event_type": "state_changed",
    "data": {
        "entity_id": "sensor.0x4cf8cdf3c77b8b3_action",
        "old_state": {
            "entity_id": "sensor.0x4cf8cdf3c77b8b3_action",
            "state": "button_5_single",
            "attributes": {
                "button_5": 1,
                "action": "button_5_single",
                "friendly_name": "Aqara Opple Six Button Action"
            },
            "last_changed": "2020-09-21T12:48:26.591621+00:00",
            "last_updated": "2020-09-21T12:48:26.591621+00:00",
            "context": {
                "id": "be0148f4fc0811eaabe99d10227985df",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "sensor.0x4cf8cdf3c77b8b3_action",
            "state": "",
            "attributes": {
                "button_5": 1,
                "action": "button_5_single",
                "friendly_name": "Aqara Opple Six Button Action"
            },
            "last_changed": "2020-09-21T12:48:26.692686+00:00",
            "last_updated": "2020-09-21T12:48:26.692686+00:00",
            "context": {
                "id": "be10b5eafc0811ea8eef1bd85b2e84db",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2020-09-21T12:48:26.692769+00:00",
    "context": {
        "id": "be10b5eafc0811ea8eef1bd85b2e84db",
        "parent_id": null,
        "user_id": null
    }
}
Event 0 fired 3:48 PM:
{
    "event_type": "state_changed",
    "data": {
        "entity_id": "sensor.0x4cf8cdf3c77b8b3_action",
        "old_state": {
            "entity_id": "sensor.0x4cf8cdf3c77b8b3_action",
            "state": "",
            "attributes": {
                "friendly_name": "Aqara Opple Six Button Action"
            },
            "last_changed": "2020-09-20T23:45:44.305287+00:00",
            "last_updated": "2020-09-20T23:45:44.305287+00:00",
            "context": {
                "id": "664d1749fb9b11ea8be193abd6512c54",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "sensor.0x4cf8cdf3c77b8b3_action",
            "state": "button_5_single",
            "attributes": {
                "button_5": 1,
                "action": "button_5_single",
                "friendly_name": "Aqara Opple Six Button Action"
            },
            "last_changed": "2020-09-21T12:48:26.591621+00:00",
            "last_updated": "2020-09-21T12:48:26.591621+00:00",
            "context": {
                "id": "be0148f4fc0811eaabe99d10227985df",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2020-09-21T12:48:26.591720+00:00",
    "context": {
        "id": "be0148f4fc0811eaabe99d10227985df",
        "parent_id": null,
        "user_id": null
    }
}

I have another idea: how can we add devices like this ourselves? Let’s help AlexxIT with this task. Although I don’t know how :slight_smile: