Mi(Xiaomi) Smart home bindings?

Just out of curiosity, these are the Xiamo Mi sensors (round(ed corners)) and not the Xiaomi Aqara ones (rectangular), right?

Yes, you are right, there are the rounded corner Mi sensors.

I use the round corners door/window sensors as well, through the XiaomiMii gateway. I also have the Aqara door/window sensors. They work just fine as well.

Was just worndering, as I’ve had some issues with Aqara ones being recognised as the Mi ones when paring with the gatway before, which then also caused issues until corrected.

What do you get in the Karaf console when you type

smarthome:status BasementTemperature

or with the other items?

Also can you post your full things file, with the gateway information included?

i made a dedicated .things file for the Xiaomi items,
here it is,

‘’’
Bridge mihome:bridge:04cf8cxxxxxx “Xiaomi Gateway” [ serialNumber=“04cf8cxxxxxx”, ipAddress=“192.168.1.100”, port=9898, key=“63753b98d7xxxxxx”, pollingInterval=6000 ] {
Things:

sensor_magnet 158d000xxxxxx "Xiaomi Kitchen Door Sensor" [itemId="158d0002xxxxxx"]
sensor_ht 158d00039xxxxx"Xiaomi Basement Temperature Sensor" [itemId="158d0003xxxxxx"]

}

i going to check the log

Looks all fine to me, much the same as I have it here.

In PaperUI have a look under Configuration - Things, and search for Xiaomi. Then you should see your defined Xiaomi Things. Click on them and see if your channels are linked there (white dot inside the blue circle)

Could you also put code fences around the whole Thing file in your above posting? Kust to see if there are tabs/spaces before your sensor_magnet and sensor_ht definitions? Do they get coloured in your things file or are they white, when there is no tab before?

I.e. is it like this

Bridge mihome:bridge:04cf8cxxxxxx “Xiaomi Gateway” [ serialNumber=“04cf8cxxxxxx”, ipAddress=“192.168.1.100”, port=9898, key=“63753b98d7xxxxxx”, pollingInterval=6000 ] {
Things:
sensor_magnet 158d000xxxxxx "Xiaomi Kitchen Door Sensor" [itemId="158d0002xxxxxx"]
sensor_ht 158d00039xxxxx"Xiaomi Basement Temperature Sensor" [itemId="158d0003xxxxxx"]
}

or like this

Bridge mihome:bridge:04cf8cxxxxxx “Xiaomi Gateway” [ serialNumber=“04cf8cxxxxxx”, ipAddress=“192.168.1.100”, port=9898, key=“63753b98d7xxxxxx”, pollingInterval=6000 ] {
Things:
    sensor_magnet 158d000xxxxxx "Xiaomi Kitchen Door Sensor" [itemId="158d0002xxxxxx"]
    sensor_ht 158d00039xxxxx"Xiaomi Basement Temperature Sensor" [itemId="158d0003xxxxxx"]
}

If Paper UI is dispaying correctly, there is nothing wrong with the items of things. Do you already restarted openHAB?
Does your sitemap file saves correctly?

here it is my xiaomi.things file:

Bridge mihome:bridge:04cf8c9838ed "Xiaomi Gateway" [ serialNumber="04cf8c9838ed", ipAddress="192.168.1.100", port=9898, key="63753b98d7d04e2a", pollingInterval=6000 ] {
Things:

    sensor_magnet 158d0002a15e6c "Xiaomi Kitchen Door Sensor" [itemId="158d0002a15e6c"]
    sensor_ht 158d00039e323c "Xiaomi Basement Temperature Sensor" [itemId="158d00039e323c"]

}

Sensor names are colored ('Bridge" also), there are tabs before these.

Other items are working well on the sitemap.

Now I can only imagine the problem being with the item’s channel links. Can you post a picture of the above?

For a try:
Dump the .things file, and search for your devices in PaperUI. When it´s discovered (the gateway). Add the gateway, search for devices again, and it should discover the rest of your devices.
From there you can create an item file with the correct channel links.
(Thats how I have my gateway and xiaomi devices added. Though I would prefere .things files Xiaomi is one of the devices I never tried to get to work, simply because using PaperUI for the things are way easier).

1 Like

Someone successfully connects gateway v2(with radio) to openhub V3.0 in 2021? How to get a developer key?