Dev module xiaomi v4

Hello @link39,

I plan to buy several Xiaomi switches and sensors, but without the gateway.

All of those that interest me are supported by the zigbee2mqtt project.

I wanted to check with you if you have been able to correctly use Gladys with your switches in particular?

Hello.

I’m going through the xiaomi gateway. During my last tests, the sensors were working but not the switches. Just a small function was missing in the code.

Hello @link39

Is the issue resolved for the switches?

Thank you

Yop!

I’m bringing back the topic to help a developer if needed.
I have my two gateways at home with wired switches (with and without neutral) available to finally integrate the control functions into Gladys. :wink:
All the equipment is recognized but @pierre-gilles didn’t have time to finish the code I think :wink:

I’m responding to @Hamtaro’s message; we’re looking for a Xiaomi developer to help finish this integration :slight_smile:

No need for huge skills to help, it’s just Node.js!

Hello,

Not much presence these days, just no time. But it’s starting to free up :smiley:

So I’d be happy to help with the Xiaomi part, especially since I helped at the beginning of the development.

@Hamtaro I’m installing everything, taking a look, and will come back to you to ask you questions to integrate your devices.

Hop on will go directly here.

The information I need is stored in the gladys logs. Normally you should see something like:

Xiaomi device "${message.model}" not handled yet!

With of course the ${message.model} which is the « model » of the object.

You can do a docker logs gladys 2>&1 | grep 'Xiaomi device' to find the information :slight_smile:

@damalgos I edited the grep because it’s a bit special with Docker logs :wink:

Yep you did well it’s an oversight ahah

Logs with grep :wink:

Yes, that makes sense, it is actually supported! Normally, at least. You need to configure the gateway key, but I’m not very familiar with that part.

Hello,
Thank you for the work you do. I also have a gateway configured on the Chinese server, with two sensors, one « temperature » sensor and the other, « presence sensor ». Gladys recognizes all three. The temperature displays well on the dashboard, I have integrated the motion sensor into a scene, it works well, the gateway appears on the dashboard, but I have no action on it (On/Off, color). Is this normal? Or is it because it’s not developed? I can also help with testing if needed.

Yes, that’s normal. The entire command part for Xiaomi devices is not coded.

Ah, thank you for the reply, I’ll wait :slight_smile:

Hello,
you can follow this tutorial: Xiaomi Home | Gladys Assistant to then see your devices. You will then need to associate each detected device with a room in your home.

Have a nice day

Have you already linked your sensors with the Xiaomi mobile app? Your sensors need to be visible to your gateway so that Gladys can detect them later.

What password?
Just need to pass the gateway in developer mode (as written in the doc)

What is the model of your gateway?

@Hamtaro if you pass by :slight_smile:

Indeed, there is confusion.
The password will only be used when the command function code is developed.
Otherwise, everything is done in read-only mode, just by passing the gateway in developer mode.

You just need to make sure you have a Xiaomi gateway compatible with the library used. I’m not up to date on that anymore…

Naughty! You’re the Xiaomi expert :smiley:

What equipment do you have?

You need to wait for information to transit to see the different sensors appear.