Dev module xiaomi v4

You therefore have until Sunday to complete the Xiomi module :rofl:

In the mihome application, on the home page you have all your devices. Click on the gateway, then the « … » at the top right, then « about » and finally « gateway information ». You will see all the gateway information such as the ID, the version, the Wi-Fi to which it is connected, etc. Below you have the list of devices that are connected to the gateway, with the model, the SID (called DID) and the name you gave it in mihome.

The device page is going to be completely revised, it’s being discussed in the topic « Let’s talk about Gladys v4 », and indeed, that will be the name of the device that will be used. There is little sense in using the names of the deviceFeatures!

Hello :slight_smile:

I won’t be available all week, at least no access to a computer. I’ll probably drop by the forum from time to time. So the module won’t progress until next Sunday :slight_smile:

If you ever want to have fun making improvements go ahead :slight_smile: If you have devices you want to introduce don’t hesitate! :slight_smile:

Hello everyone,

I need your help! I’m back to developing the module after a short break.

How to find a sensor’s SID through the application?

Thanks

I’ll send you the video on Slack (I prefer to keep this between us, including all the SIDs and everything…)

Otherwise, for the curious, it’s just below the menu activated by tapping the white area of the options to enable the dev mode of the Xiaomi gateway.

Another solution:

Thanks :slight_smile: But I think it’s about the same thing! :wink:

For those who have tested the module, can you give me feedback on what’s missing?
I would like to add for my part:

  • A maximum number of sensors to retrieve their statuses
  • The SID of each sensor to be able to add it

I have never tested the V3 module, do you have other requests?

Thanks :slight_smile:

Hello everyone.

The subject has already been mentioned several times, but @pierre-gilles’ email caught my attention after his visit to @Hamtaro. He tells us that the goal is to make all Xiaomi devices compatible. Will the v3 be part of this, as I was about to order a v2 because I made a mistake with my first order?

I assume you’re talking about the Xiaomi Gateway when you say v3?

I was referring to all Xiaomi Home devices. For the Gateway, it all depends on whether you can put the Gateway in developer mode or not. If you can’t put the Gateway in developer mode, Gladys can’t receive anything and we’ll never be able to do anything about it :slight_smile:

Hello @pierre-gilles

I was indeed talking about the gateway v3. The developer mode does exist on the gateway v3.

But mine is HomeKit compatible, I think, and I read everywhere on the forum that it doesn’t work with it.

Can I connect it to gladys v3 and/or v4?

Hello @jerome :slight_smile: The best way to find out is to test! I invite you to test in Gladys 3 (or in Gladys 4 when the integration is available)

@Hamtaro: I migrated the documentation that piznel made to enable developer mode, I put it in the Gladys 4 documentation (there will be a link in the Xiaomi service to the documentation section) →

Let me know if it’s complete in your opinion? If so, I will translate it into English

I stopped at the first sentence, I felt unwell while reading… :stuck_out_tongue: #incomprehensible

I’ll look at this in more detail as soon as I have some time, and at worst, I’ll make a PR with some changes. :wink:

I just checked, actually I don’t know what happened when Piznel wrote the doc ^^

Hi,

I just noticed that the Xiaomi service has been merged, that’s great!
I did some tests and here are my feedbacks:

  • In the integration view, devices that have already been added to Gladys still appear in « Xiaomi devices not in Gladys »
  • The status of the devices are not automatically updated in the dashboard and device views, you need to refresh (F5) to get the new values
  • The information of the plug does not seem to come back correctly (in uses always at 0 and power without information)

I don’t have any temperature feedback yet, but it might take some time. From memory, it’s what I had noticed in the Xioami branch before the merge (Edit: I confirm, the temperatures start to arrive)

Otherwise, adding devices works well, the interface is intuitive, the features of the devices are well recognized.

Thanks again for this development!

Yes, that’s a small oversight on my part, we referenced the issue here:

https://github.com/GladysAssistant/Gladys/issues/542

That’s not developed yet, to do :stuck_out_tongue: The « Device » view is not developed at all, it’s still a work in progress.

Ah? @Hamtaro do you have the same issues?

Thanks for your feedback!

Hello, some additional feedback after a full day of use.

  • temperatures, pressure and humidity of the probes ok
  • battery level information ok
  • xiaomi button OK. Good detection of click, double click and long press
  • motion detection seems OK
  • cube mode OK. However, no info in cube rotation, maybe there is a special movement to make that I haven’t found.

Everything is therefore OK for me on my devices except for the plug. :+1::tada:

Small suggestion, is it possible to have the names of the actions instead of the codes?

For example, instead of the 0 or 1 of the door detector, have open or closed.
Similarly for the button, have single click, double click, long press.
Etc. etc.

This seems more easily interpretable.
What do you think?

No issues with the plug for me.

Screenshot with a dehumidifier plugged into the outlet: