Closed spacecakes closed 1 year ago
xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)
Hey there @rytilahti, @syssi, @starkillerog, @bieniu, mind taking a look at this issue as it has been labeled with an integration (xiaomi_miio
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Could you check what's the error message in the logs? Is it unable to discover the device or is it something else?
Could you check what's the error message in the logs? Is it unable to discover the device or is it something else?
2022-03-10 06:48:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:48:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:49:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:49:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:50:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:51:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:51:18 WARNING (MainThread) [zeroconf] Error with socket 13 (('::', 5353, 0, 0))): [Errno 1] Operation not permitted
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
self._sock.sendto(data, addr)
PermissionError: [Errno 1] Operation not permitted
2022-03-10 06:51:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:52:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:52:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:53:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:54:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:54:18 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Smartmi Standing Fan 2 data
2022-03-10 06:54:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:55:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:55:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:55:56 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Smartmi Standing Fan 2 data
2022-03-10 06:56:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:56:45 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Smartmi Standing Fan 2 data
2022-03-10 06:56:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:57:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:57:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:58:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:58:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:59:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 06:59:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:00:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:01:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:01:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:02:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:02:59 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Smartmi Standing Fan 2 data
2022-03-10 07:03:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:03:35 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:04:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:04:35 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:05:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:05:35 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:06:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:06:35 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:07:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:07:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:08:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:08:21 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Smartmi Standing Fan 2 data
2022-03-10 07:08:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:09:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:09:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:10:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:11:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:11:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:12:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:12:29 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Smartmi Standing Fan 2 data
2022-03-10 07:12:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:13:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:13:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:14:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:14:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:15:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:15:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:16:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:16:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:17:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:17:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:18:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:18:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:19:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:19:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:20:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:20:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:21:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:21:35 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:22:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:22:35 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:23:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:23:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:24:05 WARNING (MainThread) [homeassistant.components.fan] Updating xiaomi_miio_fan fan took longer than the scheduled update interval 0:00:30
2022-03-10 07:24:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:25:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
2022-03-10 07:25:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of fan.xiaomi_smart_fan is taking over 10 seconds
Could you check what's the error message in the logs? Is it unable to discover the device or is it something else?
Hi. Does that help?
I don't see anything here using either homeassistant.components.xiaomi_miio
or miio
loggers, so only thing it shows is that the device does not seem to be responsive. Could you enable debug logging for one of those and check if you are seeing any responses from the device?
Having same kind of issues. My fan often goes "Unavailable".
Can these logs help?
2022-03-31 20:59:36 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.device] Response received from miio device: ['ok'] 2022-03-31 20:59:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Fan data 2022-03-31 20:59:39 DEBUG (MainThread) [homeassistant.components.xiaomi_miio] Finished fetching Fan data in 10.001 seconds (success: False) 2022-03-31 21:00:01 DEBUG (MainThread) [homeassistant.components.xiaomi_miio] Got new state:
2022-03-31 21:00:01 INFO (MainThread) [homeassistant.components.xiaomi_miio] Fetching Fan data recovered 2022-03-31 21:00:01 DEBUG (MainThread) [homeassistant.components.xiaomi_miio] Finished fetching Fan data in 7.522 seconds (success: True) 2022-03-31 21:00:24 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.device] Response received from miio device: ['ok'] 2022-03-31 21:00:26 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching Fan data 2022-03-31 21:00:26 DEBUG (MainThread) [homeassistant.components.xiaomi_miio] Finished fetching Fan data in 10.001 seconds (success: False)
the same here. Problem with fans and purifiers. Log full of this lines
2022-04-13 07:52:30 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 07:52:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 07:52:52 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 07:52:53 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 07:53:43 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 07:55:21 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 07:55:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 07:57:28 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 07:58:02 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 07:58:07 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 07:58:23 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 07:59:45 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 07:59:56 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:03:56 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:05:18 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:06:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:06:53 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:07:37 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:07:45 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:08:44 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:10:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:11:33 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:11:34 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:13:05 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:13:32 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:14:28 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:14:33 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:14:38 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:16:23 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:17:35 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:18:37 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:19:34 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:19:47 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:22:28 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:22:52 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:23:09 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:24:01 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:24:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:25:03 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:26:23 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:26:51 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:27:08 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:28:32 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:29:14 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:29:18 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:29:28 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:34:03 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:34:53 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:35:50 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:36:05 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:38:01 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:40:12 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer1 data 2022-04-13 08:40:16 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:41:20 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:41:55 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan1 data 2022-04-13 08:42:30 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:43:41 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan2 data 2022-04-13 08:43:47 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:44:52 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:45:54 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching fan3 data 2022-04-13 08:46:35 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data 2022-04-13 08:50:10 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Timeout fetching purifer2 data
Guys did you figure out a workaround? Would really like to get my fan working again... Unofficial integration does the job for now but isn't as sleek.
Exact same issue here with zhimi.fan.za3. I used to have a custom integration for many years that worked flawlessly (ancient miio integration). Today I have installed the fan again as days are getting warmer in my area. As I changed the SSID during winter, I had to reinitialize the Wifi connection. I registered the device again on the Xiaomi app (using sg country). This worked flawlessly. I was then offered to update the fan to 2.0.3.0013 (was in 2.0.3.0010 before). The update went fine. I then removed the custom integration from HA (from my config.yaml) and proceeded to add the fan via the "official" Miio integration. The integration did its job fine until the end, meaning it connected to sg server and identified all my registered devices. I did the same with my home purifier few weeks ago. The Fan gets then added as a new device without issue, and is responsive for about 20 seconds. But It then disconnects from HA and is no longer available as a device. It is nonetheless perfectly seen by the Xiaomi application and does not lose its IP connection. My firewall does not block any traffic neither. Wish you can find a solution to this.
I should add that I also have an Air Purifier (zhimi.airpurifier.mb3) using the exact same SSID and Integration in HA and it does NOT suffer from the same behavior. I have tried to manually add the Fan using the proper API token (extracted using the token extractor python script). The Token is accepted when manually adding the device. But the resulting behavior is identical, with alternating connections/disconnections. Because I doubt the issue is LAN related, this leaves us with 2 options : -Either the integration indeed has a problem for this specific device (zhimi.fan.za3) -Either the updated firmware I have installed on the Fan has changed its behavior regarding its interoperability
The detection problem for zhimi.fan.za3 is ongoing. Has someone found a solution to this ? It is very annoying.
The detection problem for zhimi.fan.za3 is ongoing. Has someone found a solution to this ? It is very annoying.
Unfortunately not :(
@Lefuneste83 How many Xiaomi (miio) devices do you own? Does the situation improve if you remove the Airpurifier so just one miio device is integrated?
@syssi I'm having issues with zhimi.fan.za4 and no other miio devices on the network. Nothing about my setup has changed since the issues began.
If anyone needs testing, logs etc. please message. I'd gladly provide in order to fix this issue.
@ollioddi Could you provide the running firmware version of your device?
img disconnects/unavialable example:
HA info: Home Assistant Core 2022.5.5 Home Assistant Supervisor 2022.05.3 Home Assistant OS 8.1 Kernel version 5.15.32-v8 Agent version 1.2.1 Miio intergation: newest
devices with problems: zhimi.airpurifier.v7 zhimi.airpurifier.mb3 zhimi.fan.za5
devices fw: zhimi.airpurifier.v7 -> 1.4.3_19105 zhimi.airpurifier.mb3 -> 2.0.8.0017 zhimi.fan.za5 -> 2.0.8.0018
I have: 1x zhimi.airpurifier.v7 2x zhimi.airpurifier.mb3 3x zhimi.fan.za5
And problem is on all devices I have other miio devices, such as: gateway, leds, bulbs etc, and no with this devices no problem with disconnect or unavialable. Problems are only with fans/purifers
@KitHubek Could you tell me the model names / devices without issues and the used integration per device?
@syssi I am running firmware 2.0.3.0011
devices with no problems:
2x lumi.gateway.mieu01 1x lumi.gateway.aqhm01 6x philips.light.bulb 1x philips.light.ceiling 4x chuangmi.plug.v2
@KitHubek How did you integrate the lights and plugs? Do you use the official xiaomi_miio
component or do you use custom components here?
using custom comp
In summary: Only devices interfaced via the official xiaomi_miio
integration are affected? As soon another (custom) component is used the connection is stable. Correct?
yes true. I have more devices from Xiaomi but branded Yeelight and working with Yeelight integration, but all this devices i see in my XIaomi Home app. Filament bulbs, desk lamp, lightbar and led strips. This all yeelight devices working with no problems
Is somebody here with the same issue + having access to a local linux machine (!= the Home Assistant host). I would like to spin up a second Home Assistant core (virtualenv) instance. I guess virtualenv installs aren't affected and the issue is somehow docker/container related.
I'm asking for support because I'm unable to reproduce the issue locally.
problem exsist, and now after update HA core errors appears more more times. last 24h error appears over 11k times...
I'm looking for somebody who is able to setup a Home Assistant Core (python virtualenv) instance to compare the behavior of the pure HA core setup with a Home Assistant OS (docker) setup.
I'm looking for somebody who is able to setup a Home Assistant Core (python virtualenv) instance to compare the behavior of the pure HA core setup with a Home Assistant OS (docker) setup.
I'd be happy to help but I'm not sure what this means or entails. What do I need to do?
@spacecakes You've new mail.
Reopened by request of author
last 7 days. Xiaomi purifer PRO not affected
last 7 days. Xiaomi purifer PRO not affected
@KitHubek are you running HA in Docker?
no
I mentioned it in the description, but it was somewhat obscured by all the information, so for anyone finding this issue in search of a fix :
The custom integration by @syssi still works absolutely fine. Uninstall or disable the official one and install this instead to get your fan working with HA.
I'm also experiencing this issue with my Home Assistant setup as per the below and am happy to configure any additional environments to help debug the issue further.
@syssi Just let me know how I can help, I am familiar with Home Assistant, Docker and Linux systems so can get you what you need quickly to progress this issue.
Configuration
Log Data I can trigger this when the fan is toggled from on to off, it quickly goes into an unavailable state shortly after, then it comes and goes for quite some time.
Logger: homeassistant.components.xiaomi_miio
Source: helpers/update_coordinator.py:151
Integration: Xiaomi Miio (documentation, issues)
First occurred: 1:45:07 PM (5 occurrences)
Last logged: 1:53:05 PM
Timeout fetching Smartmi Standing Fan 2S data
Let me know how I can help, this Fan has been flakey for quite some time, would love to get it stable !
Additional Log Data I've configured logging for the component using the following configuration
logger:
default: info
logs:
homeassistant.components.xiaomi_miio: debug
I've then generated the attached log data for your reference. From what I can see, there are long delays in the current status of the fan occurring, resulting in timeouts. You'll see in the logs the other fan I have working correctly, and you can ignore the vacuum messages, this all works fine, it's just offline at the moment.
Connected with #59215
I encountered exactly the same problem with a Xiaomi Philips Bulb (philips.light.bulb
) added to my HA via the Xiaomi Miio integration. Deleting the device and re-adding it didn't solve the problem. My HA is also running in a Docker container on my Raspberry Pi 4.
I discussed this with another user of the same bulb in the HA Community, but they didn't have the problem. They confirmed that they were using the HA OS directly on a Raspberry Pi, which made me suspect that this problem had something to do with my containerised HA. However, I can control my Google Nest Hub from my containerised HA. Really confused as a noob to HA, Docker, and Linux. Any help will be very much appreciated!
Feel free to give the dev branch a try to see if the #82601 fixes (or at least alleviates) the issue, and please report back, thanks!
The problem
Xiaomi Smartmi Fan 2 sets up properly using the GUI, then swiftly becomes unavailable and unable to be controlled. It pops back up intermittently for brief periods and can be controlled, then goes offline again. Other apps can control it just fine, so there is something going on with this integration and this fan.
Edit: I should mention I am running HA in Docker. @syssi suspected this might have something to do with it, although other users below are not and still have problems.
What version of Home Assistant Core has the issue?
2022.3.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Xiami Miio
Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_miio/
Diagnostics information
Does not seem to provide any, unfortunately
Example YAML snippet
Anything in the logs that might be useful for us?
Not more than this unfortunately
Additional information
Some notes that may be of use:
python-miio
CLI is able to read the fanAccording to
python-miio
: