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
73.4k stars 30.65k forks source link

problem setting up xiaomi vacuum integration #39023

Closed hats0id closed 4 years ago

hats0id commented 4 years ago

The problem

Can not set up my brand new xiaomi vacuum mop pro (model STYTJ02YM)

Environment

arch x86_64
chassis vm
dev false
docker true
docker_version 19.03.12
hassio true
host_os Debian GNU/Linux 10 (buster)
installation_type Home Assistant Supervised
os_name Linux
os_version 4.19.0-10-amd64
python_version 3.8.3
supervisor 234
timezone Europe/Chisinau
version 0.114.2
virtualenv false

Problem-relevant configuration.yaml

vacuum:
  - platform: xiaomi_miio
    host: 192.168.111.108
    token: my_token

Traceback/Error logs

2020-08-19 02:05:47 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-08-19 02:05:50 INFO (MainThread) [homeassistant.components.xiaomi_miio.remote] Initializing with host 192.168.111.107 (token 3c013...)
2020-08-19 02:05:50 INFO (MainThread) [homeassistant.components.xiaomi_miio.vacuum] Initializing with host 192.168.111.108 (token 44466...)
2020-08-19 02:05:50 INFO (MainThread) [homeassistant.components.xiaomi_miio.remote] chuangmi.ir.v2 1.2.4_38 MC200 detected
2020-08-19 02:06:10 ERROR (SyncWorker_2) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:06:10 WARNING (SyncWorker_2) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:06:11 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.config_flow] Not yet supported Xiaomi Miio device 'yeelink-light-color1_miio48260276._miio._udp.local.' discovered with host 192.168.111.109
2020-08-19 02:06:11 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.config_flow] Not yet supported Xiaomi Miio device 'yeelink-light-color1_miio53671792._miio._udp.local.' discovered with host 192.168.111.112
2020-08-19 02:06:11 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.config_flow] Not yet supported Xiaomi Miio device 'yeelink-light-color1_miio53667525._miio._udp.local.' discovered with host 192.168.111.113
2020-08-19 02:06:11 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.config_flow] Not yet supported Xiaomi Miio device 'yeelink-light-color1_miio53672036._miio._udp.local.' discovered with host 192.168.111.111
2020-08-19 02:06:11 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.config_flow] Not yet supported Xiaomi Miio device 'yeelink-light-color1_miio48259001._miio._udp.local.' discovered with host 192.168.111.110
2020-08-19 02:06:11 DEBUG (MainThread) [homeassistant.components.xiaomi_miio.config_flow] Not yet supported Xiaomi Miio device 'yeelink-light-color1_miio53648588._miio._udp.local.' discovered with host 192.168.111.114
2020-08-19 02:06:50 ERROR (SyncWorker_27) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:06:50 WARNING (SyncWorker_27) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:07:30 ERROR (SyncWorker_7) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:07:30 WARNING (SyncWorker_7) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:08:11 ERROR (SyncWorker_4) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:08:11 WARNING (SyncWorker_4) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:08:50 ERROR (SyncWorker_23) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:08:50 WARNING (SyncWorker_23) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:09:30 ERROR (SyncWorker_16) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:09:30 WARNING (SyncWorker_16) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:10:10 ERROR (SyncWorker_25) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:10:10 WARNING (SyncWorker_25) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:10:50 ERROR (SyncWorker_23) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:10:50 WARNING (SyncWorker_23) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:11:30 ERROR (SyncWorker_47) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:11:30 WARNING (SyncWorker_47) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:12:08 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139773623866080] Error handling message: expected str for dictionary value @ data['service']. Got None
2020-08-19 02:12:10 ERROR (SyncWorker_20) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:12:10 WARNING (SyncWorker_20) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:12:50 ERROR (SyncWorker_42) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:12:50 WARNING (SyncWorker_42) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:13:30 ERROR (SyncWorker_8) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:13:30 WARNING (SyncWorker_8) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:14:10 ERROR (SyncWorker_17) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:14:10 WARNING (SyncWorker_17) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:14:50 ERROR (SyncWorker_46) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:14:50 WARNING (SyncWorker_46) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:15:30 ERROR (SyncWorker_5) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:15:30 WARNING (SyncWorker_5) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:16:10 ERROR (SyncWorker_35) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:16:10 WARNING (SyncWorker_35) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:16:50 ERROR (SyncWorker_4) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:16:50 WARNING (SyncWorker_4) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:17:30 ERROR (SyncWorker_18) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:17:30 WARNING (SyncWorker_18) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:18:10 ERROR (SyncWorker_36) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:18:10 WARNING (SyncWorker_36) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:18:50 ERROR (SyncWorker_29) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:18:50 WARNING (SyncWorker_29) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:19:30 ERROR (SyncWorker_49) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:19:30 WARNING (SyncWorker_49) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:20:10 ERROR (SyncWorker_37) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:20:10 WARNING (SyncWorker_37) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:20:50 ERROR (SyncWorker_11) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:20:50 WARNING (SyncWorker_11) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:21:30 ERROR (SyncWorker_17) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:21:30 WARNING (SyncWorker_17) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:22:10 ERROR (SyncWorker_27) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:22:10 WARNING (SyncWorker_27) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:22:50 ERROR (SyncWorker_39) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:22:50 WARNING (SyncWorker_39) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:23:30 ERROR (SyncWorker_4) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:23:30 WARNING (SyncWorker_4) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:24:10 ERROR (SyncWorker_22) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:24:10 WARNING (SyncWorker_22) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:24:50 ERROR (SyncWorker_21) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:24:50 WARNING (SyncWorker_21) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:25:30 ERROR (SyncWorker_41) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:25:30 WARNING (SyncWorker_41) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:26:10 ERROR (SyncWorker_20) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:26:10 WARNING (SyncWorker_20) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:26:50 ERROR (SyncWorker_2) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:26:50 WARNING (SyncWorker_2) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:27:30 ERROR (SyncWorker_19) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:27:30 WARNING (SyncWorker_19) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:28:10 ERROR (SyncWorker_17) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:28:10 WARNING (SyncWorker_17) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:28:50 ERROR (SyncWorker_50) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:28:50 WARNING (SyncWorker_50) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:29:29 ERROR (SyncWorker_15) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:29:29 WARNING (SyncWorker_15) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:30:10 ERROR (SyncWorker_37) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:30:10 WARNING (SyncWorker_37) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:30:49 ERROR (SyncWorker_14) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:30:49 WARNING (SyncWorker_14) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:31:29 ERROR (SyncWorker_31) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:31:29 WARNING (SyncWorker_31) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:32:10 ERROR (SyncWorker_13) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:32:10 WARNING (SyncWorker_13) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:32:49 ERROR (SyncWorker_50) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:32:49 WARNING (SyncWorker_50) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:33:30 ERROR (SyncWorker_41) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:33:30 WARNING (SyncWorker_41) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:34:10 ERROR (SyncWorker_9) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:34:10 WARNING (SyncWorker_9) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:34:49 ERROR (SyncWorker_6) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:34:49 WARNING (SyncWorker_6) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:35:29 ERROR (SyncWorker_38) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:35:29 WARNING (SyncWorker_38) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device
2020-08-19 02:36:09 ERROR (SyncWorker_25) [miio.miioprotocol] Got error when receiving: timed out
2020-08-19 02:36:09 WARNING (SyncWorker_25) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: No response from the device

Additional information

bash-5.0# miiocli viomivacuum --ip 192.168.111.108 --token (my_token) status State: ViomiVacuumState.Docked Mode: ViomiMode.Vacuum Error: Unknown error 2105 Battery: 100 Fan speed: ViomiVacuumSpeed.Standard Box type: ViomiBinType.Vacuum Mop type: 0 Clean time: 0:00:01 Clean area: 2.01 Water grade: ViomiWaterGrade.Medium Remember map: True Has map: True Has new map: False Mop mode: ViomiMode.Vacuum

miio inspect 192.168.111.108 INFO Attempting to inspect 192.168.111.108

Device ID: 309261291 Model info: viomi.vacuum.v8 Address: 192.168.111.108 Token: (my_token) via stored token Support: At least generic

Type info: miio Capabilities:

Firmware version: 3.5.3_0017 Hardware version: Linux

WiFi: hats (cc:2d:e0:a2:7a:e8) RSSI:

Remote access (Mi Home App): Maybe

probot-home-assistant[bot] commented 4 years ago

Hey there @rytilahti, @syssi, @starkillerog, mind taking a look at this issue as its been labeled with an integration (xiaomi_miio) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

rytilahti commented 4 years ago

The vacuum integration supports currently only rockrobo vacuums, this is duplicate of #27268.