Xiaomi Gateway Integration

That’s so simple! Really thanks for explain how the sensor works! Tomorrow I’ll try an automation with the work that u shared above and a philips hue

Hello and thanks a lot for your nice work!
I have an issue that I would to solve or at least to understand if anyone had the same problem
Anytime I restart my Pi, I lost the connection with the gateway and the only way is to unplug and reconnect the gateway itself to the power supply and everything start to work again in few seconds…
Can anybody explain this behavior?
Thanks in advance

It’s looks like something in your network config. Component on HASS start sends broadcast request to discover gateways. Based on replay component opens socket and listening for gateway messages.

Thanks for your reply!
Actually I have just used my provider’s router and both gateway and Pi are connected to it…
Do you suggest any change in the router configuration?

Currently use rave’s bench.
Put it into custom components folder than manually sim linked to the root (as git puts into a different directory). Can somebody please post simple solution to switch to Danielhiversen branch?
Or even maybe rm -rf and than how to clone the git into the custom_components folder?

1 Like

@syssi at the end I build this :slight_smile:


I’m using it with a Philips hue, all is fast and reactive!

5 Likes

Hi,

How it works do you have an example or video?

thanks

what is this?

It is a Door/Window Sensor modded to be a switch if I am not mistaken. Why you would do something like that is beyond me tho. There are actual switches from Xiaomi which also allow for “hold” and “double click”. Which are nice and clean looking imho.

This looks more like a “hack” and only seems reasonable if you have door/window sensors that you absolutely do not need.

~Cheers

This is also possible using the wireless button, very easy to do.

2 Likes

This is useful in situations where an aqara switch either doesn’t fit or is not suitable.
For example I have 3 switches in a single gang fitting. I only want to integrate one of these switches into my home automation and leave the other 2 intact. I can attach one of these hacked modules onto the back of the existing switch and hardwire the circuit so it is always on.

1 Like

The reed switch hack allows a traditional on/off switch behaviour so its good for seamless hidden integration.
The xiaomi push switch are all momentary so wont be so easily integrated (hacked) into traditional on/off switch.

2 Likes

yes this is correct i should have mentioned this, Although using a momentary switch gives you access to the single press, double press & long press functionality too

Any video to understand how this work?

Exactly it is a door and window sensor moddated to be a switch. Let me explain and you will understand why I preferred to do this. I know the Xiaomi ready switch, and also a Wall Switch, but I wanted to keep the appearance of my current switches. It does not seem that in the rest of the world there is such a focus on the pre-requisites of the components, I could not install a xiaomi wall switch next to a pair of normal deviators, it would be visibly horrible! Surely my was a pastime, but it solved a problem. The solution proposed by @beanian is even better, as soon as possible I will realize it and at that point I’m sure I will not need the xiaomi wall switches or buttons. I also love to make these little hacks very cheap!

Cheers :slight_smile:

Video

2 Likes

Any idea how the Xiaomi Aqara Intelligent Curtain Motor works??

Is here: Xiaomi Gateway Integration

1 Like

Info just started trickling through today:

https://www.mobilescout.com/xiaomi/news/n94115/Xiaomi-Aqara-Smart-Curtain-Controller-crowdfunding.html

not much to go on…

its something to consider smile:

Gearbest is preselling them for 91.28€ w/ free shipping to the Netherlands

http://www.gearbest.com/access-control/pp_626697.html

AFAIK the app and gateway (and hence HA component) does not support it yet.