This Home Assistant custom integration connects Xiaomi Wi-Fi, BLE, and Zigbee devices via the MIoT specification, with UI-based setup and optional cloud or local control modes.
Overview
Xiaomi Miot for HomeAssistant maps MIoT-spec device capabilities into Home Assistant entities. The MIoT specification describes hardware functions for Xiaomi IoT products, and the integration uses the miot protocol to discover and control supported gear.
Installation paths include HACS, manual copy into custom_components, shell scripts over SSH, and a shell_command bootstrap. The UI lets you add devices with a Mi account or host/token pairs, choosing automatic local versus cloud routing per device capabilities.
Configuration options cover filtering entity attributes to limit database growth, YAML reload without full restarts, cloud credentials for token-based devices, and translations contributed by the community. Supported device categories span switches, lights, climate, fans, cameras, appliances, locks, and media hardware.
Local mode may require Home Assistant on the same subnet as some LAN devices; cloud mode suits miio, BLE, and Zigbee hardware that cannot answer on the local network.
Key features
- MIoT-spec protocol integration
- HACS and manual install paths
- Mi account or host token pairing
- Automatic local and cloud routing
- Home Assistant UI configuration
- YAML configuration reload support
- Broad Xiaomi device type coverage
- Optional miot cloud linking
Use cases
- Controlling Xiaomi smart home gear in HA
- Mixing local LAN and cloud Xiaomi devices
- Avoiding manual YAML for Xiaomi setup
- Filtering verbose entity attributes in HA