Home Assistant custom component for Vacuum 1C SKV4073CN (mijia.vacuum.v2).
Based on https://github.com/DavidConnack/xiaomi_vacuum
Using https://github.com/rytilahti/python-miio for the protocol.
- Add the
custom_components/xiaomi_vacuumfolder to/config/custom_components/ - Add
xiaomi_vacuum_card.pngto/config/www/Vacuum/ - Add
sensor_xiaomi_vacuum.yamlto/config - Add to
configuration.yaml:
vacuum:
- platform: xiaomi_vacuum
host: <ip>
token: "<token>"
name: <name>
template: !include sensor_xiaomi_vacuum.yamlTo retrieve the token, follow the default integration instructions.
- Restart Home Assistant
- Add content of
lovelace-card.yamlto a custom card
The component uses VacuumEntityFeature and VacuumActivity from Home Assistant 2025.10+.
Battery level is exposed as a state attribute for template sensors instead of the deprecated vacuum battery_level property.