Closed PieterGoossens closed 3 years ago
Can you check the log if there are any warnings or errors related?
The log is filled with these lines:
2021-01-24 23:22:17 WARNING (SyncWorker_2) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
2021-01-24 23:22:37 WARNING (SyncWorker_3) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
2021-01-24 23:22:57 WARNING (SyncWorker_1) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
2021-01-24 23:23:17 WARNING (SyncWorker_5) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
2021-01-24 23:23:37 WARNING (SyncWorker_4) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
2021-01-24 23:23:57 WARNING (SyncWorker_3) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
2021-01-24 23:24:17 WARNING (SyncWorker_0) [custom_components.viomise.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.40.102
This happen when the device cannot be contacted, is it on, is the IP address correct?
Try using the miiocli from https://github.com/rytilahti/python-miio to see if you can contact the device with the same data you are using.
Are you blocking its access to the internet? https://python-miio.readthedocs.io/en/latest/troubleshooting.html#intermittent-connection-issues-timeouts-xiaomi-vacuum
SOLVED: The problem was caused by the issue described here: https://python-miio.readthedocs.io/en/latest/troubleshooting.html#discover-devices-across-subnets
The Viomi SE vacuum was in a different VLAN than my Home Assistant installation. As soon as I connected HA to the same VLAN everything started working. Xiaomi vacuums (non Viomi) appear to communicate differently and are not affected by VLAN boundaries. Thanks again for your assistance!
Thanks for updating the installation instructions, installing it through HACS works like a charm! Unfortunately, my Viomi SE vacuum reports to be unavailable. My Xiaomi Mija 1S is working without any issues. I've extracted the tokens using the extractor script found here: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
After which I've added the following to
configuration.yaml
and restarted HA:Any ideas why the Viomi vacuum doesn't work?