Bonjour,
J’ai un aspirateur robot Xiaomi que je souhaite ajouter à Home Assistant mais pour l’instant il est indiqué « Indisponible ». Peut être que ce modèle n’est pas compatible ?
J’ai suivi d’abord le ticket https://forum.hacf.fr/t/ajouter-laspirateur-roborock-s50-de-chez-xiaomi/222 mais je ne le retrouvais pas dans mes entités.
J’ai alors testé cette intégration : GitHub - nqkdev/home-assistant-vacuum-styj02ym
J’ai récupéré le token avec token_extractor.exe :
token : 32 chiffres
model : rockrobo.vacuum.v1
Dans configuration.yaml
vacuum:
- platform: miio2
host: 192.168.1.43
token: '46700000000000000000000000036a38'
name: Kiki
Je le trouve bien dans les entités:
J’ai tout de même ajouté deux Cards :
Mais il est bien indisponible.
Il est disponible et fonctionnel sur l’appli Xiaomi Home.
Je n’ai pas ajouté l’intégration Xiaomi Miio puisque mon but reste de ne plus utiliser d’appli propriétaire.
Voici ce que je trouve dans les logs :
Logger: homeassistant.components.vacuum
Source: /usr/local/lib/python3.9/asyncio/events.py:80
Integration: Aspirateur (documentation, issues)
First occurred: 20:43:38 (1 occurrences)
Last logged: 20:43:38
Setup of vacuum platform miio2 is taking over 10 seconds.
Logger: homeassistant.config_entries
Source: config_entries.py:711
First occurred: 20:44:32 (21 occurrences)
Last logged: 22:03:20
Error occurred loading configuration flow for integration xiaomi_miio: cannot import name 'FanZA5' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/__init__.py)
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:661
First occurred: 20:44:19 (120 occurrences)
Last logged: 22:03:40
Update of vacuum.kiki is taking over 10 seconds
Logger: homeassistant.components.vacuum
Source: helpers/entity_platform.py:712
Integration: Aspirateur (documentation, issues)
First occurred: 20:44:29 (120 occurrences)
Last logged: 22:03:50
Updating miio2 vacuum took longer than the scheduled update interval 0:00:20
Logger: miio.miioprotocol
Source: /usr/local/lib/python3.9/site-packages/miio/miioprotocol.py:240
First occurred: 20:43:49 (120 occurrences)
Last logged: 22:03:50
Got error when receiving: timed out
!Cette erreur provient d'une intégration personnalisée
Logger: custom_components.miio2.vacuum
Source: custom_components/miio2/vacuum.py:390
Integration: miio2 (documentation)
First occurred: 20:43:49 (121 occurrences)
Last logged: 22:03:50
Got exception while fetching the state: No response from the device
Got exception while fetching the state: Unable to discover the device 192.168.1.43
Logger: homeassistant
Source: config_entries.py:716
First occurred: 20:44:33 (20 occurrences)
Last logged: 22:03:20
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 709, in async_create_flow
integration.get_platform("config_flow")
File "/usr/src/homeassistant/homeassistant/loader.py", line 530, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 535, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 9, in <module>
from miio import (
ImportError: cannot import name 'FanZA5' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 74, in _async_process_pending_flows
await gather_with_concurrency(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 170, in gather_with_concurrency
return await gather(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in sem_task
return await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 197, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 215, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 716, in async_create_flow
raise data_entry_flow.UnknownHandler
homeassistant.data_entry_flow.UnknownHandler
Voici ce que j’ai dans /usr/local/lib (via ssh dans Home Assistant)
Une idée ?
Merci d’avance
Bob
Ma configuration
System Health
version | core-2021.11.0 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.9.7 |
os_name | Linux |
os_version | 5.10.17-v8 |
arch | aarch64 |
timezone | Europe/Paris |
Home Assistant Community Store
GitHub API | ok |
---|---|
Github API Calls Remaining | 5000 |
Installed Version | 1.16.0 |
Stage | running |
Available Repositories | 888 |
Installed Repositories | 4 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | pending |
Home Assistant Supervisor
host_os | Home Assistant OS 6.6 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2021.10.8 |
docker_version | 20.10.8 |
disk_total | 457.7 GB |
disk_used | 9.9 GB |
healthy | true |
supported | true |
board | rpi4-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | deCONZ (6.10.0), Let’s Encrypt (4.11.0), File editor (5.3.3), Samba share (9.5.1), Network UPS Tools (0.8.0), Spotify Connect (0.9.1), Terminal & SSH (9.2.1), Portainer (2.0.0), InfluxDB (4.2.1), Grafana (7.2.0), Node-RED (10.0.1), Visual Studio Code (3.6.2) |
Lovelace
dashboards | 1 |
---|---|
resources | 4 |
views | 6 |
mode | storage |