Tutorial: ioBroker – integrating a Xiaomi vacuum cleaner into Loxone
Tutorial
This tutorial shows the integration of a Xiaomi robot vacuum cleaner into Loxone via ioBroker.
Requirements:
- Loxone Miniserver or Loxone Miniserver Go
- Running ioBroker
- Xiaomi MiRobot (v1 or s5)
- Android phone or iPhone with the “Mi Home” app and the vacuum cleaner set up
Link for reading out the token (in German):
https://www.loxwiki.eu/display/LOXBERRY/Token+extrahieren
Questions, comments and suggestions are welcome under the YouTube video or here on the page.
How to proceed
- Read out the token: ioBroker needs your robot vacuum’s token to communicate with it. The link above explains how to read it out of the Mi Home app.
- Set up the adapter in ioBroker: In ioBroker, install the adapter for Xiaomi robot vacuums (e.g. “mihome-vacuum”) and enter the IP address and the token of the vacuum.
- Import the template into Loxone Config: The downloadable Loxone Config template contains templates for virtual inputs through which the status values of the vacuum arrive in Loxone from ioBroker, and a virtual output for the commands from Loxone to ioBroker. Adjust the address of your ioBroker there.
- Test: Start the vacuum from Loxone and check whether the status values arrive in Loxone.
This tutorial dates from 2019. With newer Xiaomi models and current adapter versions, individual steps may differ.
Video about the project (in German)