home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.9k stars 29k forks source link

Mi Purifier 3H availability blips #100716

Open rwjack opened 9 months ago

rwjack commented 9 months ago

The problem

This is a long standing issue that was apparently fixed by bumping python miio, but it's still occurring for me.

HA has an interface that is on the IOT subnet, so the devices are able to talk locally, unsure why this is happening.

https://github.com/home-assistant/core/issues/37651 https://github.com/home-assistant/core/issues/36972 https://community.home-assistant.io/t/miio-xiaomi-air-purifier-availability-blinking/205707/25 https://github.com/home-assistant/core/pull/82601 https://github.com/rytilahti/python-miio/issues/422

The following line is repeated many times in HA core logs:

2023-09-22 12:57:54.472 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Error fetching Mi Purifier 3H data: Unable to discover the device [REDACTED PURIFIER IP]

image


image

What version of Home Assistant Core has the issue?

core-2023.9.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

xiaomi_miio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @rytilahti, @syssi, @starkillerog, 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!

Code owner commands Code owners of `xiaomi_miio` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign xiaomi_miio` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)

issue-triage-workflows[bot] commented 6 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

rwjack commented 6 months ago

Still an issue unfortunately.

larryb31 commented 6 months ago

Experiencing same issue, would appreciate a fix please.

rwjack commented 6 months ago

I think I found a fix, but nobody is going to like it...

Once I enabled internet access for the purifier, both the WiFi reconnects and the error logs in HA stopped, how about that...

lukaslabryszewski commented 5 months ago

I'm experiencing the same issue

larryb31 commented 4 months ago

In addition to the blips, I have to reauthenticate about once a week, possibly nees to open separate thread if I figure out how.

jokerigno commented 4 months ago

same here but with a different device :xiaomi bedroom light (only 1 of 2 that I have in my bedroom). Very strange.

I did not updated fw in years and devices are behind firewall rules that cut internet connection

2024-02-22 19:29:26.105 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.15

this message is going over and over. Maybe increassing polling time?

issue-triage-workflows[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

rwjack commented 1 month ago

still active

lukaslabryszewski commented 1 month ago

This issue seems to have been resolved in recent updates. I'm no longer experiencing this issue myself. Two 3H purifiers have stayed connected for several months now. Thank you devs. πŸ‘

rwjack commented 1 month ago

@lukaslabryszewski you're using the core mi integration? Not xiaomi miiot auto? And you have no blips in history?

lukaslabryszewski commented 1 month ago

@lukaslabryszewski you're using the core mi integration? Not xiaomi miiot auto? And you have no blips in history?

I'm using the Xiaomi Miio integration.

No more disconnects where I have to re-authenticate. It also could be due to me resetting the purifier so that I can use non-official filters without the RFID tag. I'm not sure if it's related, I just thought about it now although I've done it last November so I don't think it's related.

Filter reset on Xiaomi Air Purifier 3H | YouTube

MI Air Purifier Pro 3H - Filter Reset | Reddit

rwjack commented 1 month ago

just to confirm it's still happening for me.

image

image

cobirnm commented 4 weeks ago

Hello I'm also experiencing the same with a Mio Light. Every 2 minutes I get an error message. image image