Xiaomi Gateway Integration

Hi all, not sure if this was covered or not, my hass to gateway connection seems to break after 12-24 hours, essentially the light sensor reports old values (since it disconnected) the gateway light switch can’t be switched on ( invalid key, even though it did work), and the door sensor I have also doesn’t report correct state.

The gateway still functions, as a have a basic automation on it with the door sensor.

I have run tcpdump and the gateway is in the logs, any tips of debugging this?

My only solution is a hass restart/pi3 reboot, which seems to fix the issue.

You updated the firmware?

Latest 1.4.1xxx

WiFi Zigbee interference?

I’m using a door/window sensor as switch now. May be somebody like the solution. It’s very cheap and made quickly. It looks like you have to click on the image to see all steps.

The automation looks like this:

  - alias: Toggle bedroom light
    trigger:
      - platform: state
        entity_id: binary_sensor.door_window_sensor_158d0xxxxxxxxx
        from: 'off'
        to: 'on'
      - platform: state
        entity_id: binary_sensor.door_window_sensor_158d0xxxxxxxxx
        from: 'on'
        to: 'off'
    action:
      service: light.toggle
      entity_id: light.bedroom

Please be careful. The pads of the reed contact are big but brittle. Next time I will use thinner cables.

4 Likes

@rave and @Danielhiversen:
What’s the status on releasing the xiaomi component to the main repo? I totally understand that we do not want to bypass @rave, since he started the project. But @rave’s last post was quite a while ago, and the latest github commit on his repo is 25 days ago. Is there any way to contact @rave outside of github and here?
I am running @Danielhiversen’s fork now since a couple of versions without any issues. What is the best course of action?

But you or someone else can add it to the main repo if you want.

Hi guys. I tried the method in the chinese forum to get the key needed for this to work however, whenever i press the gateway information button in development mode, the app crashes.

I tried on 3 different android devices - unpair, pair, and etc but the app just crashes whenever i try to enter.

Is there any other way i can get the key?

edit: clicking on local area network communication protocol gives me a message : current device does not support this feature. Does that mean im having v1 w/o radio? And does that mean my xiaomi gateway cannot be integrated?

I really like ti, can you explain better and upload some others screenshots? What do you psyticaly do for activate the light? Thanks

The lights are powered always now (compare the first image). The switch does not disconnect mains anymore. The lights are some yeelights which are integrated into home assistant. If the door sensor / switch changes the state an automation toggles the light.

This just surfaced:

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

Anyone has an idea whether it’s just a different form of the old temperature/humidity sensor?

I found the same a few weeks back from FCC docs:

If you compare the PCB photos of the Aqara device here:
https://fccid.io/document.php?id=3240118

with the Xiaomi device here:

You can see they are very similar, but its not as simple a change to the physical enclosure. There is a board shape AND layout change, too.
Which to me is quite surprising… I would have thought they would be the same internally.

BTW there are apps for both EigenStone and Aqara on iOS appstore.
Both apps appear the same, but it seems you need a chinese mobile number to register. I tried with my UK number and never receiver the registration code by SMS.

Its currently cheaper than the old version, too :slight_smile:

Just noticed some of the others on GB, too:

Zigbee curtain control, anyone?
http://www.gearbest.com/access-control/pp_626697.html

Updated door/window sensor:
http://www.gearbest.com/access-control/pp_626703.html

Updated switch:
http://www.gearbest.com/access-control/pp_626695.html

Literally bought everything a couple of weeks ago and now they get updated! :frowning:

the old look better to me: more tiny

26 cm wide … who has such small windows???

It’s just motor. You’ll need rails.

ahh I see, I never saw one, I do not understand well how they work

Not entirely true. Unless you buy just one. I’ve been keeping an eye on them and they drop them to 11.99 quite often, and you can buy a second one for around ~ $8, which makes the price per unit to $10. Banggood will sell them to you for $9.99/each if you buy 3 or more. But I bought one to test for $8 and I’m waiting for such a price drop again so I can buy several more :smiley: