Xiaomi has unveiled an official Home Assistant integration for its IoT devices, allowing users to manage their smart devices from a single platform. The integration is available on GitHub, with project documentation showing that the integration and its cloud APIs are provided by Xiaomi's official servers. To access device lists, users need to log in with their Xiaomi account, but please note that Home Assistant does not store the user's Xiaomi account password. However, due to the OAuth 2.0 authentication method, users are required to re-authenticate after 90 days.

The Home Assistant community has developed an adapter for the integration, which can be installed manually through the Home Assistant UI. The adapter uses the Xiaomi API to fetch data from the user's account, and it is configured to only fetch the specified device(s) and not all of them.

The usage is similar to other integrations in Home Assistant, with users being able to control and monitor their Xiaomi devices through the Home Assistant UI. Users can also use templates to automate tasks and integrate their Xiaomi devices with other Home Assistant modules.

Small print: This integration is intended for personal, non-commercial use only. Xiaomi reserves the right to terminate any user's access to the integration if they exceed the usage limits or use the integration for commercial purposes.