xiaomi_airpurifier: Unable to discover the device

A couple of versions back my Air Purifier 2 stopped appearing in HASS and I just got these errors:

2018-03-06 18:14:06 ERROR (Thread-12) [miio.device] Unable to discover a device at address 10.0.2.26
2018-03-06 18:14:06 ERROR (MainThread) [homeassistant.components.fan.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.2.26

I’ve done a factory reset of the purifier and retrieved the token more then once from my iPhone so it should be correct. I’ve also got a Mi Vacuum and it works without problems.

Right now I’m on version 0.65.5 and this is my configuration.yaml:

logger:
  default: warn
  logs:
    miio: debug
    homeassistant.components.fan.xiaomi_miio: debug

fan:
  - platform: xiaomi_miio
    name: Mi Purifier
    host: 10.0.2.26
    token: *token*

This is the log when starting HASS with debug enabled (and disabling the vacuum):

2018-03-29 01:05:47 INFO (MainThread) [homeassistant.components.fan.xiaomi_miio] Initializing with host 10.0.2.26 (token c53b5...)
2018-03-29 01:05:52 ERROR (Thread-10) [miio.device] Unable to discover a device at address 10.0.2.26
2018-03-29 01:05:52 ERROR (MainThread) [homeassistant.components.fan.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.2.26

I’ve tried looking around but can’t seem to figure out what it’s not working.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

So I just factory reset the device (and updated it to 1.2.9_64), extracted a new token, and got the exact same errors…

I might try to setup miio on somthing else and see if the problem is with the RPi.