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.

Xiaomi Miio and Smartmi Fan 2 (zhimi.fan.za3) not responding intermittently

See original GitHub issue

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.

155078466-02537cda-d398-4b89-86fb-dda4bf252207

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

N/A

Anything in the logs that might be useful for us?

Not more than this unfortunately

Smartmi Standing Fan 2 became unavailable 21:28:00 - 2 minutes ago

Smartmi Standing Fan 2 turned off 21:27:35 - 3 minutes ago

Smartmi Standing Fan 2 became unavailable 21:26:47 - 3 minutes ago

Smartmi Standing Fan 2 turned off 21:26:22 - 4 minutes ago

Smartmi Standing Fan 2 became unavailable 21:25:33 - 5 minutes ago

Additional information

Some notes that may be of use:

  • my device is on the same VLAN
  • Wi-Fi reliability and signal are great
  • the unofficial integration still works
  • the Mi app still works
  • the Homebridge fan plugin still works
  • the python-miio CLI is able to read the fan
  • the fan device screen displays the UniFi logo rather than the Mi logo after initial setup, probably because I have a UDM Pro and the UniFi Network integration enabled

According to python-miio:

Model: zhimi.fan.za3 Hardware version: esp32 Firmware version: 2.0.2

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:37 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
keiranscommented, Nov 15, 2022

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.

image

Configuration

  • Home Assistant 2022.11.1
  • Running on Docker (Not HassOS)
  • Using official Xiaomi Miio Intergration (not the custom one)
  • The Official Application works perfectly without issues
  • I have another fan of a different model (Xiaomi Miio: Mi Smart Standing Fan 1X) that does not have these issues and is rock solid.

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.

image

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.

miio_logs.txt

1reaction
KitHubekcommented, Aug 23, 2022

no

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi Miio - Home Assistant
Most Xiaomi Miio devices support configuration using the Home Assistant UI, ... The most common problems are: Xiaomi Miio ... Standing Fan 2,...
Read more >
Xiaomi SmartMi Fan 2S problems - Wi-Fi MiHome app not ...
Sporadically, it becomes available for few seconds and I can even start firmware update, but the update process fails, it never ends ...
Read more >
homebridge-xiaomi-fan - HOOBS
zhimi.fan.sa1 (Mi Standing Fan); zhimi.fan.v2/v3 (Smartmi DC Pedestal Fan); zhimi.fan.za1 (Smartmi Inverter Pedestal Fan); zhimi.fan.za3 ...
Read more >
Integrating a smart fan with Home Assistant - how to survive ...
Here is how you can integrate Home Assistant with the affordable Xiaomi Mi smart standing fan 1C. Contents hide. The Xiaomi smart fan....
Read more >
python-miio — python-miio documentation
The miiocli command allows controlling supported devices from the command line, ... (Chuangmi IR) - Xiaomi Mi Smart Pedestal Fan V2, V3, SA1,...
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