Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.112 - Xiaomi Air Purifier 3 disable #37302

Closed
anglrus opened this issue Jul 1, 2020 · 18 comments
Closed

0.112 - Xiaomi Air Purifier 3 disable #37302

anglrus opened this issue Jul 1, 2020 · 18 comments

Comments

@anglrus
Copy link

anglrus commented Jul 1, 2020

The problem

Xiaomi Air Purifier 3 is not active for 0.112 version

Environment

  • Home Assistant Core release with the issue:
  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core):
  • Integration causing this issue:
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs

Logger: homeassistant.components.xiaomi_miio.fan
Source: components/xiaomi_miio/fan.py:789
Integration: Xiaomi Miio (documentation, issues)
First occurred: 0:12:55 (37 occurrences)
Last logged: 0:31:48

Got exception while fetching the state: {'code': -5001, 'message': 'command error'}

Additional information

@foglietti
Copy link

I have the same issue with this release.

@maciej-szalaj
Copy link

Same issue here... HA updated to 0.112

@SeraphimSerapis
Copy link
Contributor

+1, I can confirm this for my 3H

@pkishino
Copy link
Contributor

pkishino commented Jul 2, 2020

same here

@pkishino
Copy link
Contributor

pkishino commented Jul 2, 2020

was already getting strange errors since 0.111 but was still working there..not now

@dj4shots
Copy link

dj4shots commented Jul 2, 2020

experienced the same problem on 3H.
Last working version was 111.4

@verabeniel
Copy link

Same issue with my 3H

@miecio08
Copy link

miecio08 commented Jul 2, 2020

the same for me; / I try to reset the purifier and with a new token. nothing works

@mrfoxbit
Copy link

mrfoxbit commented Jul 2, 2020

I have the same issue

@rytilahti
Copy link
Member

Duplicate of #36993, upstream issue is here: rytilahti/python-miio#730

@GiaQuy
Copy link

GiaQuy commented Jul 4, 2020

same for me , my air purifier 3 also doesn't work on version 0.112.1

@rytilahti
Copy link
Member

Should work again in 0.112.2.

@mrfoxbit
Copy link

mrfoxbit commented Jul 4, 2020

It's work again in HA 0.112.2 and python-miio 0.5.2.1. But i have error

My device is Xiaomi Air Purifier 3 (zhimi.airpurifier.ma4)

2020-07-04 17:48:52 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'}
2020-07-04 18:24:04 ERROR (SyncWorker_10) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 18:24:04 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 18:39:28 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'}
2020-07-04 19:03:17 ERROR (SyncWorker_9) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 19:03:17 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 19:05:21 ERROR (SyncWorker_14) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 19:05:21 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 19:21:22 ERROR (SyncWorker_4) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 19:21:22 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 20:26:52 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'}
2020-07-04 20:39:16 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'}
2020-07-04 20:51:18 ERROR (SyncWorker_13) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 20:51:18 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 21:01:02 ERROR (SyncWorker_16) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 21:01:02 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 21:22:13 ERROR (SyncWorker_7) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 21:22:13 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 21:25:19 ERROR (SyncWorker_5) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 21:25:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 21:39:46 ERROR (SyncWorker_9) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 21:39:46 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 21:51:14 ERROR (SyncWorker_10) [miio.miioprotocol] Unable to discover a device at address 192.168.100.227
2020-07-04 21:51:14 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: Unable to discover the device 192.168.100.227
2020-07-04 21:52:02 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'}

@vampywiz17
Copy link

The error is gone on log, but the device is not working...

@pkishino
Copy link
Contributor

pkishino commented Jul 5, 2020 via email

@SeraphimSerapis
Copy link
Contributor

My 2 purifiers work great and no additional entities were created.

@anglrus
Copy link
Author

anglrus commented Jul 6, 2020

For 112.2 it works but there is following error in the logs:

Logger: homeassistant.helpers.entity
Source: components/xiaomi_miio/fan.py:641
First occurred: 9:50:42 (2 occurrences)
Last logged: 11:05:05

Update for fan.xiaomi_air_purifier_3 fails
ValueError: None is not a valid OperationMode

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 463, in async_device_update
await self.async_update() # type: ignore
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/fan.py", line 783, in async_update
for key, value in self._available_attributes.items()
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/fan.py", line 783, in
for key, value in self._available_attributes.items()
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/fan.py", line 641, in _extract_value_from_attribute
value = getattr(state, attribute)
File "/usr/local/lib/python3.7/site-packages/miio/airpurifier_miot.py", line 115, in mode
return OperationMode(self.data["mode"])
File "/usr/local/lib/python3.7/enum.py", line 310, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.7/enum.py", line 564, in new
raise exc
File "/usr/local/lib/python3.7/enum.py", line 548, in new
result = cls.missing(value)
File "/usr/local/lib/python3.7/enum.py", line 577, in missing
raise ValueError("%r is not a valid %s" % (value, cls.name))
ValueError: None is not a valid OperationMode

@rytilahti
Copy link
Member

@anglrus that's a completely different issue. Please open an issue at https://github.com/rytilahti/python-miio/ and include the received payload when using miiocli --debug airpurifiermiot --ip <ip> --token <token> status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests