Mi(Xiaomi) Smart home bindings?

Hmm, tried it, but nothing happens:

rule "Xiaomi Switch - Doorbell "
when
    Channel "mihome:sensor_switch:158d00014d0cc0:button" triggered SHORT_PRESSED
then
    gGarden_Back_Beds.sendCommand(ON) }
end

Also, now my other Xioami rules doesn’t work - when above is in my rules file.

Sorry - my mistake.

Got it working with;

rule "Xiaomi Switch - Doorbell "
when
    Channel "mihome:sensor_switch:158d00014d0cc0:button" triggered SHORT_PRESSED
then
    if (gGarden_Back_Beds.state == OFF) {
        gGarden_Back_Beds.sendCommand(ON)
    } else {
        gGarden_Back_Beds.sendCommand(OFF)
    }
end

Thanks…

The first 3 Things are missing some sort of label. I thought is was something in the binding’s code (https://github.com/openhab/openhab2-addons/tree/master/addons/binding/org.openhab.binding.mihome/ESH-INF/thing), but I see a correct label for all things. I see the same with my water leak sensors.

What has been changed? this code is still working in my setup…

To be honest, i assume there must have been a change, because after an update the old version did not work anymor for me.

I just bought Xiaomi Mijia Aqara Smart IP Camera
It is camera with getaway functionality. Do you think it will work with the binding? If not who should I ask to update the binding?

This should work with the gateway, but is not yet supported by the binding (https://github.com/openhab/openhab2-addons/tree/master/addons/binding/org.openhab.binding.mihome)

Maybe you can ask it in this topic: Support for more Mi-Home Aqara items

Hi,

Does anyone having problem getting to developer mode in the new mi home app version 5? I press the version in the about page and the only thing I get is a bunch of information about my gateway (ip, wifi password, devices, …).

I’m using gateway 3 v2.46

Just tried it again, is still working. Don’t you see the ‘local area network communication protocol’ item in the About menu? This should appear after enabling developer mode.

My gateway has firmware 1.4.1_150.0143 (version 2.46) (I don’t think a gateway v3 exists)
MiHome v5.0.10

Maybe the one I have is not supported for such developer mode.
In the readme page for the mi home binding there is this step that the gateway 3 is mentioned:
•Add Gateway 2 or 3 to your WiFi Network

It is that one:
https://pt.aliexpress.com/item/2017-Xiaomi-Smart-Home-Gateway-3-Aqara-Smart-Light-Control-ZiGBee-Wifi-Wireless-Key-and-Wall/32790262169.html
However In the xiaomi mi page they mention only as a air condition companion.
https://xiaomi-mi.com/sockets-and-sensors/xiaomi-aqara-air-conditioning-companion-temperature-humidity-sensor/

Has anyone succesfully used the “gateway 3”?

this gateway is supported. there are different versions of it and it is the original gateway v3 - there is an older v2 of this which looks the same. these are montioned in the readme…

Did you find correct way?

Yep, installed v2.2. That helped

1 Like

Hello friend, what example do you have of what you did with the xiaomi temperature sensors? What tutorial do you follow to achieve it with Grafana?

Hello friend, a query

This example that you share can be used to capture the information from the xiaomi temperature sensors, how would you connect it to my device?

@CR_Pena docs.openhab.org/addons/bindings/mihome/readme.html

Hello friend, a query

This example that you share can be used to capture the information from the xiaomi temperature sensors, how would you connect it to my device? Do you have any video of this tutorial?

Is there a way to ask Alexa to turn on,off Xiaomi switch?

I was trying using ifttt applet connecting to openhab exposed mi socket but it didn’t work

but what have you already done? and what does not work? the very beginning here in the pictures :slight_smile:

Well, as correctly marked the @kubawolanin , in the documents everything is there! I did everything according to this instruction.

1 Like

Hi all,
I’m new here.
I am trying to add xiaomi mi smart home gateway to the OH, I’m using 2.2.0-snapshot.
I connected the gateway to my network and enabled local area network communication protocol.
I’ve installed Xiaomi Mi Smart Home Binding, when I try to add the gateway the list is empty.
anyone know what is the problem?
I followed this tutorial: http://docs.openhab.org/addons/bindings/mihome/readme.html

thanks a lot,
Avi

I too am new here. But nice to start with an answer instead of a question :slight_smile:
This binding has been the most challenging for my setup too. For me it was my router was not well configured for Multicast traffic.

Check your router configuration is allowing IGMP snooping (Somewhere in your wireless settings). Then in your LAN settings look for a setting to enable multicast routing (usually under IPTV settings). Also ensure the udp port 9898 is correctly forwarded (not to the WAN though!). And the things should start appearing in the inbox.

1 Like