question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update of fan.XXX is taking over 10 seconds

See original GitHub issue

Since a week I own a Smartmi Fan 2 (zhimi.fan.za3). I noticed this integration, and added it to my HA setup. All working fine, however, my log shows the following warning:

WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.ventilator is taking over 10 seconds

In the last 24hrs this warning occurred ~30 times. I’m not experiencing any input problems when i want to control the device, however it’s bit annoying that your logs is ‘flooded’ with the same warning.

The room where the fan is placed, has a access point, and the fan is basically right next to it.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

1reaction
webhostsgcommented, Jul 6, 2020

I’m facing the same issues in homeassistant log, no issues controlling the fan though…

This is the log after homeassistant booted up for about 4 hours, most of the logs are cleared. I have automation to clear the log each time the error count goes above 100.

2020-07-07 01:10:23 ERROR (SyncWorker_6) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:10:23 ERROR (MainThread) [custom_components.xiaomi_miio_fan.fan] Got exception while fetching the state: Unable to discover the device 192.168.1.115 , _retry=236
2020-07-07 01:10:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:10:46 ERROR (SyncWorker_3) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:10:46 ERROR (MainThread) [custom_components.xiaomi_miio_fan.fan] Got exception while fetching the state: Unable to discover the device 192.168.1.115 , _retry=237
2020-07-07 01:11:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:11:44 ERROR (SyncWorker_1) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:12:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:12:45 ERROR (SyncWorker_12) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:13:46 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:14:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:14:53 ERROR (SyncWorker_16) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:15:19 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:15:26 ERROR (SyncWorker_9) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:15:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:15:51 ERROR (SyncWorker_15) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:16:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:16:23 ERROR (SyncWorker_4) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:16:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:16:59 ERROR (SyncWorker_4) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:18:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:18:25 ERROR (SyncWorker_3) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
2020-07-07 01:18:55 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2020-07-07 01:18:55 ERROR (SyncWorker_9) [miio.miioprotocol] Unable to discover a device at address 192.168.1.115
1reaction
HammerNL89commented, Jun 28, 2020

Seems related to an incorrect token.

#59 (comment)

Can you control the fan via HA with an incorrect token? Because I have no problems controlling the fan via HA.

I got the token using this method (v5.4.49 Mi home app). I just checked it, and the token on my android devices, matches the one in my HA config.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup of platform XXX is taking over 10 seconds - Configuration
I'm on the 0.41.0 release using the AIO-installer on a RPi3. 17-04-07 13:19:08 WARNING ... Setup of platform XXX is taking over 10...
Read more >
[miio.miioprotocol] Got error when receiving: timed out #59
Connected the fan to WiFi afterwards using mihome app. ... I retrieved a token using miio tool. ... XXX is taking over 10...
Read more >
Inspiron One 2330, Fan keeps blowing after latest OS updates
My computer is an all in one Inspiron 2330, with latest Windows-10. 1) It takes longer to boot up and appears to be...
Read more >
Fix Wi-Fi & Internet Connection Problems in macOS Ventura
You should restart the Mac for the change to take full effect. ... m2, etc), turn the Mac off, let it sit powered...
Read more >
User's manual - VENTILATOR SYSTEM SERVO-i V3.0
10. 2.3.2 Main Rotary Dial. ... Adult. Universal. Options. Table 1.2: Servo-i Ventilator Configurations ... Provides procedures for using the following.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found