Mi(Xiaomi) Smart home bindings?

Developer key added, other devices work fine

/addons.cfg

xiaomigateway:key=gywewf878wf08wefff
xiaomigateway:startColor=1677786880

Can I do something wrong?

I have tested the Aqara switch 86sw2 (double button) and I can confirm the event reading is supported (feel free to use the rules) but we can’t control the switch remotely (write), I’m getting {“error”:“Unsupported device”} with actual firmware 1.4.1_143.0141. So far only a plug and gateway color control is supported by this FW …

This really means you have probably two bindings active!? in one network. Instead of sending a write command to the gateway (which resends the event to device via zigbee) some binding gets this message and tries to process it (and of course it can’t process the write command since this is a command for gateway)

All thanks for the help, everything works, updated the developer key.

@kubawolanin @pboos
Hi,
i bought a “Xiaomi Philips Eyecare Smart Lamp 2”

The device is great hardware for the price! It is integrated via the Mi Home app, but no gateway whatsoveer is needed.

I there a chance to get it running with this binding too?

Best
Michael

1 Like

I just found this :slight_smile: With this, I can control my Xiaomi Air Purifier 2.

I hope this information is help to implement Air Purifier to this binding.

3 Likes

Hi,

is it possible to get the scenes to work? For example, to arm the alarm.

Since the last FW update 1.4.1_144.0141 the plug reports extended power data and it seems other battery powered devices report battery voltage as well :slight_smile:

{“voltage”:3600,“status”:“off”,“inuse”:“0”,“power_consumed”:“16”,“load_power”:“0”}
{“voltage”:2995,“temperature”:“2199”,“humidity”:“3849”}

2 Likes

Hello!
Please share the latest file .jar (openHAB2)
The links above are not working.
Thank you!

Today i got another firmware update from xiaomi.

Now it´s: 1.4.1_145.0141

Is there a changelog from xiaomi anywhere?

Please can someone provide us a new jar-file from latest version of OH2 binding?

Or can someone explain how i can do this myself?

1 Like

Here is the latest jar file, what dimalo provided (11 hours old).

https://github.com/openhab/openhab2-addons/files/914779/org.openhab.binding.mihome-2.1.0-SNAPSHOT.jar.zip

1 Like

Thanky you!

I installed the new binding. Can you help me with my temp-sensors? How can i get the new voltage item? I looked inside the paper ui, but there is still only temp and humidity visible?

I made a openhab2 restart and looked for new things, but nothing changed.

Just remove the thing, and add it again, and the new features will be appear :wink:

It lasted a verly long time to get values for voltage, it always was NaN… Now it works. Thank you!

Triggering scenes is not possible at the moment. the gateway does no report this back. I just activated the alarm and logged the messages the openHAB binding reveiced. nothing to find there.

perhaps things will develop as with the voltage values…

Thanks for your great efforts here.

What I don’t understand with the Things:
Whats the difference between “Xiaomi Mi Smart Home Bridge” and “Xiaomi Mi Smart Home Gateway” ? Isn’t this the same device ?

yeah this one is a bit strange, but @pboos answered this sometime ago in the PR discussion over at github

About Gateway/Bridge. I know that is kind of weird. The problem is that one. The BRIDGE (speaking in openhab/smarthome terms) can only route to other devices, but has no functionality. Now the xiaomi gateway has lights! So it is a BRIDGE + A THING. So I needed to create two different ones. Or at least I didn’t figure out how to do it in one. Because adding channels to the bridge gave me errors.

1 Like

thanks for clarification :+1:

Just updated to last bridge firmware and motion sensor stopped working. I had it linked with hue lights

Which version is it? 1.4.1. 145?
I have motion sensors myself and everything is fine with them…