home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

Error: Unable to discover xiaomi S50 vacuum #20262

Closed herrwusel closed 5 years ago

herrwusel commented 5 years ago

Home Assistant release with the issue:

Home Assistant 0.85.0

Last working Home Assistant release (if known):

Operating environment (Hass.io/Docker/Windows/etc.):

Virtual environment on rpi3.

Component/platform:

https://www.home-assistant.io/components/vacuum.xiaomi_miio/

Description of problem: The vacuum works fine but I get these discovery warnings/errors. I think it sometimes even freezes the vacuum. When I disable the vacuum in home assistant, the freezes on the vacuum disappear.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

vacuum:
  - platform: xiaomi_miio
    host: 192.168.178.33
    token: xxx

Traceback (if applicable):

2019-01-20 16:34:58 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.xiaomi_vacuum_cleaner is taking over 10 seconds 
2019-01-20 16:34:58 ERROR (Thread-21) [miio.device] Unable to discover a device at address 192.168.178.33 2019-01-20 16:34:58 WARNING (Thread-21) [homeassistant.components.vacuum.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.178.33 
2019-01-20 16:35:14 ERROR (Thread-17) [miio.device] Unable to discover a device at address 192.168.178.33 2019-01-20 16:35:14 WARNING (Thread-17) [homeassistant.components.vacuum.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.178.33 
2019-01-20 16:35:35 ERROR (Thread-19) [miio.device] Unable to discover a device at address 192.168.178.33 2019-01-20 16:35:35 WARNING (Thread-19) [homeassistant.components.vacuum.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.178.33

Additional information: The s50's firmware is rooted 1702.

jara1 commented 5 years ago

I'm observing the same once per day. For me it looks like the vacuum is doing periodical restart every day and thus is not accessible for short period. In my case it is 3:40 AM.

herrwusel commented 5 years ago

@jara1 I have these warning/errors every 3 minutes. Anyone know if the vacuum needs to be connected to xiaomi for discovery?

jvmonjo commented 5 years ago

I have the same issue. I have the vacuum connected to Mi Home and updated firmware.

rytilahti commented 5 years ago

Are you blocking its access to the internet? See https://python-miio.readthedocs.io/en/latest/troubleshooting.html#intermittent-connection-issues-timeouts-xiaomi-vacuum

herrwusel commented 5 years ago

Thanks @rytilahti. That solved my problem