Xiaomi Gateway Integration

May I ask why this component is no integrated into home assistant? It seems to be pretty advanced and was developed for over half a year now. Much more people would contribute if this is implemeted into home assistant.

Many Thanks!

And how can i make it on / off the alrm?
click_type:duobel click
what what the action?

The button of the gateway is not available/exposed unfortunately.

we tolk about wireless button.

Actions for the wireless button (as looking into the python files) are:

click_type property

click
double_click
both_click

Not sure if valid or if it works but there’s 2 more:

long_click_press
long_click_release

Is the zigbee power switch giving the energy consuption?

It does in the MiHome app

Have you tried connecting it via the hub rather than the app? I think from what I remember you press it three times than press the reset button on the back of whatever you are connecting it should work. I’ve not received mine yet to try it. I also believe it’s fine if you add it via an iPhone

Try a new router… my tplink did this to me…

All 5 work

Been using this for almost a year… Any word of if it can be added into the main distro? Last few HASS upgrades have broken it and required fixing.

1 Like

I’ve already joined them via the android app, so I tried to rejoin them via the hub with the method you explained above but but it didn’t work - it still says there are 2 devices connected but doesn’t display them. Im not sure if I have to delete them first but I have no idea how to do that.
I’m hoping to borrow an old Iphone 4s and try that app tonight.

Hi ! I’m learning a lot about you and your posts but I have a (maybe stupid) question: is Aqara Wall socket (zigbee version) working on HA Xiaomi Gateway Integration? I mean this wall socket:

I’m buying all the smart devices for the house I’m building so I need to know if they work with HA or not to buy them.

Thanks and sorry if it’s an stupid question.

Great job!

This socket is supported by the gateway.
You can see it here in the (iOS) app to be added as a device to the gateway:

I think the main issue is that @rave has become less active again nobody wants to take the responsibility (and bypass @rave who at some point said that he did not want to merge it yet) and also that there are a multitude of forks out there at the moment, while from my feeling many are running @Danielhiversen’s fork.

I had the same question some time ago, but I did not follow up, since the @rave did become active afterwards again, but has been less active again for a while:

3 Likes

Thank you for the insight.We should consider to just create an “official” pull request to HA (maybe from @Danielhiversen fork) that everybody can contribute to. We can mark it work in progress. I am personally not too motivated to contribute to forks that are maybe never merged. And once it is merged into HA I have made the experience that many more people contribute, even if it is just documentation or API changes. The issue right now is that there is no liscense defined, thus a PR is legally impossible…

1 Like

I would support such an approach.
So I hope @rave would answer this issue: https://github.com/lazcad/homeassistant/issues/60

4 Likes

From what I read @Danielhiversen’s fork seems to be the more updated/active, so it is more advisable than the one from @rave (less active recently), right?

Btw, is there any easier way of keeping files updated without download and copying it to the right folders?

Thanks in advance.

Just got my sensors, very easy to pair and setup with HA.There are a few things I am confused about though:

The Xiaomi wireless button seems to only detect that a press occurs after holding the button down for a second, at least that’s what the badge says. It detects when the button is released instantaneously though. Is there a way to catch a single click event and record that instead of having to hold the button down? I just want to use this as a binary sensor.

I also want to catch cube events and record them, but the badge doesn’t display anything when I shake or rotate the cube.

I’m not interesting in automation, just collecting data with these sensors.

I simply cloned the repo in /home/hass/src and the symlinked the respective files inside /home/hass/.homeassistant/custom_components/ now all i have to do is pull the latest changes and restart hass. This way I can easily switch between forks too.

1 Like

Good idea, I’ll give that a try.