Xiaomi Mi IO binding: channel changes in openHAB 5.3

openHAB 5.3 brings a big clean-up of the Xiaomi Mi IO binding.
Many device families were checked against the Mi Home app and corrected.

What gets better

  • Many more devices: more than 340 models added, including over 100 robot vacuums (Dreame, Roborock, Xiaomi/Mijia and others), 70 lights, and many air purifiers, air conditioners, airers and air fryers. This means most devices supported in the other home automation platforms and devices that are currently sold by Xiaomi are now supported.
  • Better color and brightness: on several color lights, such as Yeelight, the color channel now also follows the brightness and on/off state of the light. Colors are no longer dimmed twice, so a color at low brightness stays the right color.
  • Color temperature in Kelvin on many more lights, and scene selection for Yeelight color lights.
  • Values with units: temperature, humidity, power, time and so on, on about 400 more channels.
  • Modes and states you can choose by name instead of by number on many more devices.
  • Vacuums: Roborock map download fixed, map selection, and corrected cleaning modes.
  • More reliable: the online status of your Thing no longer depends on the cloud when you use a direct connection, and commands with text or several values are sent correctly. E.g. to support sending recipes to your Airfryer

What you may need to do

To get there, some channels have a new name, changed or were removed. Items linked to a renamed or removed channel will not be updated anymore until you link them again.

Here is the list of all changes by device:
List of all changes by device

  1. Search the list for your device, by name or model. Not listed? Then you don’t have to link anything again.
  2. Note which of the channels you use have changed, best before you upgrade.
  3. After the upgrade, open your Thing in openHAB, go to the Channels tab and link your Items to the new channels. Your Items can keep their names.
  4. If the list says the Item type or the values changed, adjust the Item and check your rules.

You don’t need to remove or add your Things again.

The list is a preview and is updated until 5.3 is released. If something is missing or wrong for your device, please reply with the model.

For those with many devices, there are some helpers in the same gist: openHAB Xiaomi Mi IO binding: channel changes for 5.3 · GitHub

  • check_my_channels.py lists only your own affected Items, with the old and the new channel and the rules that use them. It only reads and changes nothing. Run it before the upgrade and keep the result:
    python3 check_my_channels.py --url http://openhab:8080 --changes channel-changes-from-5.2.5.json --plan my-plan.json
    It needs an API token of an administrator.
  • agent-instructions.md: if you use an AI agent connected to openHAB (MCP), give it this file and my-plan.json after the upgrade. Make a backup first, and check its plan before you let it change anything. I have not tried it with a real agent yet, so feedback is welcome.
  • On milestone 5? Use the from-5.3.0.M5 files. For other versions, channel_changes.py makes the list: python3 channel_changes.py 5.1.0 main out.

Sitemaps, pages and persistence are not searched, and your own database files are not considered.