8000 fix DeviceException handling when updating xiaomi vacuum by azogue · Pull Request #8954 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix DeviceException handling when updating xiaomi vacuum #8954

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

Merged
merged 2 commits into from
Aug 13, 2017

Conversation

azogue
Copy link
Member
@azogue azogue commented Aug 13, 2017

Description:

Fix the error handling when updating the botvac status, changing VacuumException for DeviceException.

@MartinHjelmare MartinHjelmare merged commit c92e5c1 into home-assistant:dev Aug 13, 2017
balloob pushed a commit that referenced this pull request Aug 14, 2017
* Fix DeviceException handling when updating entity

* add DeviceException error handling to generic request
@balloob balloob mentioned this pull request Aug 14, 2017
@meetyourlaser
Copy link
meetyourlaser commented Aug 14, 2017

I’ve just updated to Home Assistant v. 0.51.1 (python version 3.4.2, Xiaomi Vacuum Cleaner firmware version 3.3.9_003077). I also downloaded the newest version of xiaomi.py (due to this thread). Without the new xiaomi.py my vacuum cleaner didn’t appear at all in HA. With the update it appears‚ but it’s listed as unavailable.

My configuration looks like this:

vacuum:
  - platform: xiaomi
    name: 'wolfe'
    host: !secret xiaomi_vacuum_robot_ip
    token: !secret xiaomi_vacuum_robot_token

Output from the dev-info page (I guess not everything is relvant, but maybe …):

2017-08-14 11:57:51 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:57:51 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 11:57:53 WARNING (MainThread) [homeassistant.components.vacuum] Setup of platform xiaomi is taking over 10 seconds. 2017-08-14 11:57:56 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:57:56 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 11:58:01 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:58:01 WARNING (Thread-11) [mirobo.device] Retrying with increme 8000 nted id, retries left: 1 2017-08-14 11:58:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step result = next(coro) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity new_entity, self, update_before_add=update_before_add File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity yield from entity.async_update_ha_state() File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 246, in async_update_ha_state attr = self.state_attributes or {} File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/__init__.py", line 426, in state_attributes value = getattr(self, prop) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/lifx.py", line 436, in color_temp kelvin = self.device.color[3] TypeError: 'NoneType' object is not subscriptable 2017-08-14 11:58:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step result = next(coro) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity new_entity, self, update_before_add=update_before_add File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity yield from entity.async_update_ha_state() File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 246, in async_update_ha_state attr = self.state_attributes or {} File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/__init__.py", line 426, in state_attributes value = getattr(self, prop) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/lifx.py", line 436, in color_temp kelvin = self.device.color[3] TypeError: 'NoneType' object is not subscriptable 2017-08-14 11:58:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step result = next(coro) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity new_entity, self, update_before_add=update_before_add File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity yield from entity.async_update_ha_state() File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 246, in async_update_ha_state attr = self.state_attributes or {} File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/__init__.py", line 426, in state_attributes value = getattr(self, prop) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/lifx.py", line 436, in color_temp kelvin = self.device.color[3] TypeError: 'NoneType' object is not subscriptable 2017-08-14 11:58:04 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step result = next(coro) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity new_entity, self, update_before_add=update_before_add File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity yield from entity.async_update_ha_state() File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 246, in async_update_ha_state attr = self.state_attributes or {} File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/__init__.py", line 426, in state_attributes value = getattr(self, prop) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/lifx.py", line 436, in color_temp kelvin = self.device.color[3] TypeError: 'NoneType' object is not subscriptable 2017-08-14 11:58:06 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:58:06 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 11:58:33 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:58:33 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 11:58:36 WARNING (Thread-10) [homeassistant.components.zwave] zwave not ready after 30 seconds, continuing anyway 2017-08-14 11:58:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 11:58:38 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:58:38 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 11:58:43 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:58:43 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 11:58:47 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi vacuum took longer than the scheduled update interval 0:00:20 2017-08-14 11:58:48 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:58:48 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 11:59:13 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:13 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 11:59:18 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 11:59:18 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:18 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 11:59:23 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:23 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 11:59:28 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:28 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 11:59:34 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:34 WARNING (Thread-10) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 11:59:39 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 11:59:39 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:39 WARNING (Thread-10) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 11:59:44 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:44 WARNING (Thread-10) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 11:59:49 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:49 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 11:59:55 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 11:59:55 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:00:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:00:00 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:00 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:00:05 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:05 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:00:10 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:10 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:00:16 ERROR (Thread-5) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:16 WARNING (Thread-5) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:00:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:00:21 ERROR (Thread-5) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:21 WARNING (Thread-5) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:00:26 ERROR (Thread-5) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:26 WARNING (Thread-5) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:00:31 ERROR (Thread-5) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:31 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:00:37 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:37 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:00:42 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:00:42 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:42 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:00:47 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:47 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:00:52 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:52 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:00:58 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:00:58 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:01:03 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:01:03 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:03 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:01:08 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:08 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:01:13 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:13 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:01:19 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:19 WARNING (Thread-2) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:01:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:01:24 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:24 WARNING (Thread-2) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:01:29 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:29 WARNING (Thread-2) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:01:34 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:34 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:01:40 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:40 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:01:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:01:45 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:45 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:01:50 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:50 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:01:55 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:01:55 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:02:01 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:01 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:02:06 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:02:06 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:06 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:02:11 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:11 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:02:16 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:16 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:02:22 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:22 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:02:27 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:02:27 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:27 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:02:32 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:32 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:02:37 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:37 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:02:43 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:43 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:02:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:02:48 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:48 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:02:53 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:53 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:02:58 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:02:58 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:03:04 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:04 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:03:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:03:09 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:09 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:03:11 ERROR (MainThread) [homeassistant.helpers.service] Template rendered invalid service: 2017-08-14 12:03:14 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:14 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:03:19 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:19 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:03:25 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:25 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:03:30 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:03:30 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:30 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:03:35 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:35 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:03:40 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:40 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:03:46 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:46 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:03:51 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:03:51 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:51 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:03:56 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:03:56 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:04:01 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:01 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:04:07 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:07 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:04:12 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:04:12 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:12 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:04:17 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:17 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:04:22 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:22 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:04:28 ERROR (Thread-6) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:28 WARNING (Thread-6) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:04:33 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:04:34 ERROR (Thread-6) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:34 WARNING (Thread-6) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:04:39 ERROR (Thread-6) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:39 WARNING (Thread-6) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:04:44 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi vacuum took longer than the scheduled update interval 0:00:20 2017-08-14 12:04:44 ERROR (Thread-6) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:04:44 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:05:10 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:10 WARNING (Thread-2) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:05:15 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:05:15 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:15 WARNING (Thread-2) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:05:20 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:20 WARNING (Thread-2) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:05:25 ERROR (Thread-2) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:25 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:05:31 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:31 WARNING (Thread-10) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:05:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:05:36 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:36 WARNING (Thread-10) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:05:41 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:41 WARNING (Thread-10) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:05:46 ERROR (Thread-10) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:46 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:05:52 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:52 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:05:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:05:57 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:05:57 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:06:02 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:02 WARNING (Thread-8) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:06:07 ERROR (Thread-8) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:07 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:06:13 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:13 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:06:18 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:06:18 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:18 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:06:23 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:23 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:06:28 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:28 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:06:34 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:34 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:06:39 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:06:39 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:39 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:06:44 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:44 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:06:49 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:49 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:06:55 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:06:55 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:07:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:07:00 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:00 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:07:05 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:05 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:07:10 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:10 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:07:16 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:16 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:07:21 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:21 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:07:21 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting 2017-08-14 12:07:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:07:26 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:26 WARNING (Thread-4) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:07:31 WARNING (MainThread) [homeassistant.components.vacuum] Updating xiaomi vacuum took longer than the scheduled update interval 0:00:20 2017-08-14 12:07:31 ERROR (Thread-4) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:31 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:07:57 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:07:57 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:08:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:08:02 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:02 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:08:07 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:07 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:08:12 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:12 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:08:18 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:18 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:08:23 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:08:23 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:23 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:08:28 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:28 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:08:33 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:33 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:08:39 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:39 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:08:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:08:44 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:44 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:08:49 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:49 WARNING (Thread-7) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:08:54 ERROR (Thread-7) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:08:54 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:09:00 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:00 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:09:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:09:05 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:05 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:09:10 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:10 WARNING (Thread-9) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:09:15 ERROR (Thread-9) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:15 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:09:21 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:21 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:09:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:09:26 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:26 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 2 2017-08-14 12:09:31 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:31 WARNING (Thread-3) [mirobo.device] Retrying with incremented id, retries left: 1 2017-08-14 12:09:36 ERROR (Thread-3) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:36 WARNING (MainThread) [homeassistant.components.vacuum.xiaomi] Got exception while fetching the state: 2017-08-14 12:09:42 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:42 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 3 2017-08-14 12:09:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.wolfe is taking over 10 seconds 2017-08-14 12:09:47 ERROR (Thread-11) [mirobo.device] Got error when receiving: timed out 2017-08-14 12:09:47 WARNING (Thread-11) [mirobo.device] Retrying with incremented id, retries left: 2

Not sure if relevant, but this is the output from 'mirobo' started from CLI (with both IP and token set):

ERROR:mirobo.vacuum_cli:Unable to read the stored msgid: [Errno 2] No such file or directory: '/tmp/python-mirobo.seq'
ERROR:mirobo.device:Got error when receiving: timed out
WARNING:mirobo.device:Retrying with incremented id, retries left: 3
ERROR:mirobo.device:Got error when receiving: timed out
WARNING:mirobo.device:Retrying with incremented id, retries left: 2
ERROR:mirobo.device:Got error when receiving: timed out
WARNING:mirobo.device:Retrying with incremented id, retries left: 1
ERROR:mirobo.device:Got error when receiving: timed out
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 127, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 127, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 127, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 127, in send
    data, addr = s.recvfrom(1024)
socket.timeout: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/homeassistant/bin/mirobo", line 11, in <module>
    sys.exit(cli())
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/vacuum_cli.py", line 78, in cli
    ctx.invoke(status)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/vacuum_cli.py", line 104, in status
    res = vac.status()
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/vacuum.py", line 87, in status
    return VacuumStatus(self.send("get_status")[0])
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 144, in send
    return self.send(command, parameters, retry_count-1)
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 144, in send
    return self.send(command, parameters, retry_count-1)
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 144, in send
    return self.send(command, parameters, retry_count-1)
  File "/srv/homeassistant/lib/python3.4/site-packages/mirobo/device.py", line 145, in send
    raise DeviceException from ex
mirobo.device.DeviceException

@azogue
Copy link
Member Author
azogue commented Aug 14, 2017

@meetyourlaser please open a new issue with that instead of explaining it here.

Looks like it never connects, isn't it? Apart from that, you have more problems with zwave devices and lifx lights. Network problems?

Have you successfully connected anytime with the botvac before? (with the token and the firmware version you have now)

Please open a new issue and we would try to help you there.

@home-assistant home-assistant locked and limited conversation to collaborators Aug 14, 2017
@azogue azogue deleted the fix-xiaomi-vacuum-logs branch August 14, 2017 10:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0