My Python and Home Assistant knowledge does not allow me to continue ducktaping this code. Any new maintainer will be much appreciated! In the meantime, I recommend switching to https://github.com/nergal/homeassistant-vacuum-viomi
Original code by @nqkdev, then I forked it and added HACS support.
Next steps were checking forks of original repository and backporting changes in order to provide most feature-complete Home Assistant integration for STYJ02YM.
- Install it with HACS
- Add the configuration to configuration.yaml, example:
Add to configuration.yaml
:
vacuum:
- platform: miio2
host: 192.168.68.105
token: !secret vacuum
name: Mi hihi