xiaomi_fan
xiaomi_fan copied to clipboard
Update of fan.XXX is taking over 10 seconds
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.
Try enabling debug logging for clues:
logger:
logs:
custom_components.xiaomi_miio_fan: debug
miio.miioprotocol: debug
Try enabling debug logging for clues:
logger: logs: custom_components.xiaomi_miio_fan: debug miio.miioprotocol: debug
Here is a part of the log containing the error @ timestamp 14:13:49
2020-06-27 14:12:38 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 157, 'method': 'get_prop', 'params': ['angle']}
2020-06-27 14:12:38 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:49, id: 157) << {'id': 157, 'result': [60]}
2020-06-27 14:12:38 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 158, 'method': 'get_prop', 'params': ['speed']}
2020-06-27 14:12:38 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:49, id: 158) << {'id': 158, 'result': [0]}
2020-06-27 14:12:38 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 159, 'method': 'get_prop', 'params': ['poweroff_time']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:49, id: 159) << {'id': 159, 'result': [0]}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 160, 'method': 'get_prop', 'params': ['power']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:50, id: 160) << {'id': 160, 'result': ['off']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 161, 'method': 'get_prop', 'params': ['ac_power']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:50, id: 161) << {'id': 161, 'result': ['on']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 162, 'method': 'get_prop', 'params': ['angle_enable']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:50, id: 162) << {'id': 162, 'result': ['off']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 163, 'method': 'get_prop', 'params': ['speed_level']}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:50, id: 163) << {'id': 163, 'result': [74]}
2020-06-27 14:12:39 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 164, 'method': 'get_prop', 'params': ['natural_level']}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:50, id: 164) << {'id': 164, 'result': [0]}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 165, 'method': 'get_prop', 'params': ['child_lock']}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:51, id: 165) << {'id': 165, 'result': ['off']}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 166, 'method': 'get_prop', 'params': ['buzzer']}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:51, id: 166) << {'id': 166, 'result': [0]}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 167, 'method': 'get_prop', 'params': ['led_b']}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:51, id: 167) << {'id': 167, 'result': [0]}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 168, 'method': 'get_prop', 'params': ['use_time']}
2020-06-27 14:12:40 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:28:51, id: 168) << {'id': 168, 'result': [5595]}
2020-06-27 14:12:40 DEBUG (MainThread) [custom_components.xiaomi_miio_fan.fan] Got new state: <FanStatus power=off, temperature=None, humidity=None,
led=None, led_brightness=LedBrightness.Bright, buzzer=False, child_lock=False, natural_speed=0, direct_speed=74, speed=0, oscillate=False, angle=60,
ac_power=True, battery=None, battery_charge=None, battery_state=None, use_time=5595, delay_off_countdown=0, button_pressed=None>
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 169, 'method': 'get_prop', 'params': ['angle']}
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:19, id: 169) << {'id': 169, 'result': [60]}
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 170, 'method': 'get_prop', 'params': ['speed']}
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:19, id: 170) << {'id': 170, 'result': [0]}
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 171, 'method': 'get_prop', 'params': ['poweroff_time']}
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:19, id: 171) << {'id': 171, 'result': [0]}
2020-06-27 14:13:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 172, 'method': 'get_prop', 'params': ['power']}
2020-06-27 14:13:09 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:20, id: 172) << {'id': 172, 'result': ['off']}
2020-06-27 14:13:09 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 173, 'method': 'get_prop', 'params': ['ac_power']}
2020-06-27 14:13:09 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:20, id: 173) << {'id': 173, 'result': ['on']}
2020-06-27 14:13:09 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 174, 'method': 'get_prop', 'params': ['angle_enable']}
2020-06-27 14:13:09 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:20, id: 174) << {'id': 174, 'result': ['off']}
2020-06-27 14:13:09 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 175, 'method': 'get_prop', 'params': ['speed_level']}
2020-06-27 14:13:12 DEBUG (MainThread) [homeassistant.components.ssdp] Scanning
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.miioprotocol] Retrying with incremented id, retries left: 3
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.protocol] Unable to decrypt, returning raw bytes: b''
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.miioprotocol] Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x07m#&\x00\x01Xe' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x07m#&' (total 4)
ts = 1970-01-02 00:29:25
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.miioprotocol] Discovered 076d2326 with ts: 1970-01-02 00:29:25, token: b'ffffffffffffffffffffffffffffffff'
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 276, 'method': 'get_prop', 'params': ['speed_level']}
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:25, id: 276) << {'id': 276, 'result': [74]}
2020-06-27 14:13:14 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 277, 'method': 'get_prop', 'params': ['natural_level']}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:25, id: 277) << {'id': 277, 'result': [0]}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 278, 'method': 'get_prop', 'params': ['child_lock']}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:26, id: 278) << {'id': 278, 'result': ['off']}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 279, 'method': 'get_prop', 'params': ['buzzer']}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:26, id: 279) << {'id': 279, 'result': [0]}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 280, 'method': 'get_prop', 'params': ['led_b']}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:26, id: 280) << {'id': 280, 'result': [0]}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 281, 'method': 'get_prop', 'params': ['use_time']}
2020-06-27 14:13:15 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:26, id: 281) << {'id': 281, 'result': [5595]}
2020-06-27 14:13:15 DEBUG (MainThread) [custom_components.xiaomi_miio_fan.fan] Got new state: <FanStatus power=off, temperature=None, humidity=None,
led=None, led_brightness=LedBrightness.Bright, buzzer=False, child_lock=False, natural_speed=0, direct_speed=74, speed=0, oscillate=False, angle=60,
ac_power=True, battery=None, battery_charge=None, battery_state=None, use_time=5595, delay_off_countdown=0, button_pressed=None>
2020-06-27 14:13:39 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 282, 'method': 'get_prop', 'params': ['angle']}
2020-06-27 14:13:39 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:50, id: 282) << {'id': 282, 'result': [60]}
2020-06-27 14:13:39 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 283, 'method': 'get_prop', 'params': ['speed']}
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] Retrying with incremented id, retries left: 3
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.protocol] Unable to decrypt, returning raw bytes: b''
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x07m#&\x00\x01X\x83' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x07m#&' (total 4)
ts = 1970-01-02 00:29:55
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] Discovered 076d2326 with ts: 1970-01-02 00:29:55, token: b'ffffffffffffffffffffffffffffffff'
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 384, 'method': 'get_prop', 'params': ['speed']}
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:55, id: 384) << {'id': 384, 'result': [0]}
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 385, 'method': 'get_prop', 'params': ['poweroff_time']}
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:55, id: 385) << {'id': 385, 'result': [0]}
2020-06-27 14:13:44 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 386, 'method': 'get_prop', 'params': ['power']}
2020-06-27 14:13:45 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:56, id: 386) << {'id': 386, 'result': ['off']}
2020-06-27 14:13:45 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 387, 'method': 'get_prop', 'params': ['ac_power']}
2020-06-27 14:13:45 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:29:56, id: 387) << {'id': 387, 'result': ['on']}
2020-06-27 14:13:45 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 388, 'method': 'get_prop', 'params': ['angle_enable']}
2020-06-27 14:13:49 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.ventilator is taking over 10 seconds
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] Retrying with incremented id, retries left: 3
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.protocol] Unable to decrypt, returning raw bytes: b''
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x07m#&\x00\x01X\x89' (total 16)
value = Container:
length = 32
unknown = 0
device_id = b'\x07m#&' (total 4)
ts = 1970-01-02 00:30:01
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] Discovered 076d2326 with ts: 1970-01-02 00:30:01, token: b'ffffffffffffffffffffffffffffffff'
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 489, 'method': 'get_prop', 'params': ['angle_enable']}
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:01, id: 489) << {'id': 489, 'result': ['off']}
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 490, 'method': 'get_prop', 'params': ['speed_level']}
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:01, id: 490) << {'id': 490, 'result': [74]}
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 491, 'method': 'get_prop', 'params': ['natural_level']}
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:01, id: 491) << {'id': 491, 'result': [0]}
2020-06-27 14:13:50 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 492, 'method': 'get_prop', 'params': ['child_lock']}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:02, id: 492) << {'id': 492, 'result': ['off']}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 493, 'method': 'get_prop', 'params': ['buzzer']}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:02, id: 493) << {'id': 493, 'result': [0]}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 494, 'method': 'get_prop', 'params': ['led_b']}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:02, id: 494) << {'id': 494, 'result': [0]}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 >>: {'id': 495, 'method': 'get_prop', 'params': ['use_time']}
2020-06-27 14:13:51 DEBUG (SyncWorker_4) [miio.miioprotocol] 192.168.2.5:54321 (ts: 1970-01-02 00:30:02, id: 495) << {'id': 495, 'result': [5595]}
2020-06-27 14:13:51 DEBUG (MainThread) [custom_components.xiaomi_miio_fan.fan] Got new state: <FanStatus power=off, temperature=None, humidity=None,
led=None, led_brightness=LedBrightness.Bright, buzzer=False, child_lock=False, natural_speed=0, direct_speed=74, speed=0, oscillate=False, angle=60,
ac_power=True, battery=None, battery_charge=None, battery_state=None, use_time=5595, delay_off_countdown=0, button_pressed=None>
Seems related to an incorrect token.
https://github.com/syssi/xiaomi_fan/issues/59#issuecomment-650335569
Seems related to an incorrect token.
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.
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
Same error at my installation on a Pi 4 running only HA on it.
Same error as well. My Xiaomi Fan 2s is in the same room as my wireless repeater. But still getting this error in the logs even though it looks like it is controlable via HomeAssistant normally. Logs are getting polluted by this
Hmmm.. I no longer have the log problem, did not check the logs for a long time, but no more errors now.
@webhostsg actually i stopped getting the error as well now.. Only thing i can see that changed is that i rebooted my repeater and eversince my Xiaomi Fan2S is connected to the main router instead... Could it be some weird issue when a repeater is in the middle?
@webhostsg actually i stopped getting the error as well now.. Only thing i can see that changed is that i rebooted my repeater and eversince my Xiaomi Fan2S is connected to the main router instead... Could it be some weird issue when a repeater is in the middle?
not sure, I changed router several times, updated HomeAssistant and the firmware of the fan several times, but missed out on checking on the logs. So somewhere the issues got resolved, not sure which.
I had a TP Link access point running in my WiFi network (the router and repeater are from AVM - Fritz). After unplugging it all my network problems were gone, even this one. Perhaps this experience can help anyone solving this particular problem.