The Xiaomi Home Assistant is a powerful tool for managing smart home devices. However, with the recent update to Home Assistant 2025.09, some users have encountered a deprecation warning related to the battery level integration. This warning indicates that the custom integration 'xiaomi_home' is setting the battery_level, which has been deprecated and will stop working in Home Assistant 2026.8. To resolve this issue, it is recommended to implement a sensor instead with a correct device class and link it to the same device. This article will provide a step-by-step guide on how to reproduce the issue, the expected behavior, and the solution to this problem. Additionally, it will cover the Home Assistant logs, log timezone, Home Assistant Core version, Home Assistant Operation System version, and Xiaomi Home Integration version. By following this guide, users can ensure a seamless transition to the new integration method and avoid any disruptions to their smart home setup. The Xiaomi Home Assistant is a versatile platform that supports a wide range of devices, and with the right integration, users can enjoy a more convenient and automated home experience. As the smart home industry continues to evolve, it is essential to stay up-to-date with the latest developments and updates to ensure compatibility and optimal performance. The deprecation warning for the battery level integration is a significant update that requires attention, and by implementing the recommended solution, users can future-proof their smart home setup and enjoy the latest features and improvements.
Xiaomi Home Assistant: Resolving Deprecation Warnings for Battery Level Integration