@Terabyte wrote:
Hi there,
I am trying to set up my Xiaomi Vacuum in Home Assistant. I am running the following configuration:
# Configure a default setup of Home Assistant (frontend, api, etc) default_config: homeassistant: customize: !include customize.yaml # Uncomment this if you are using SSL/TLS, running in Docker container, etc. http: base_url: notmydomain.nl # Text to speech tts: - platform: google_translate group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml device_tracker: - platform: asuswrt interval_seconds: 10 consider_home: 5 yeelight: devices: 192.168.1.51: name: Aanrecht 192.168.1.95: name: Bank 192.168.1.126: name: Hal 192.168.1.163: name: Slaapkamer 192.168.1.161: name: Eettafel google_assistant: project_id: notmyproject service_account: !include homeassistant.json report_state: true exposed_domains: - light asuswrt: host: 192.168.1.1 username: notmylogin password: notmypassword protocol: telnet port: 23
Adding the following seems to break the configuration.
vacuum: - platform: xiaomi_miio host: 192.168.1.50 token: notmytoken
When I check the config using the config checker it spits out the following error in the log:
2020-02-09 21:03:05 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/core.py", line 29, in post errors = await async_check_ha_config_file(request.app["hass"]) File "/usr/src/homeassistant/homeassistant/config.py", line 805, in async_check_ha_config_file res = await check_config.async_check_ha_config_file(hass) File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 162, in async_check_ha_config_file hass, p_name File "/usr/src/homeassistant/homeassistant/requirements.py", line 55, in async_get_integration_with_requirements hass, integration.domain, integration.requirements File "/usr/src/homeassistant/homeassistant/requirements.py", line 99, in async_process_requirements if pkg_util.is_installed(req): File "/usr/src/homeassistant/homeassistant/util/package.py", line 44, in is_installed return version(req.project_name) in req File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3138, in __contains__ return self.specifier.contains(item, prereleases=True) File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 703, in contains item = parse(item) File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 31, in parse return Version(version) File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 200, in __init__ match = self._regex.search(version) TypeError: expected string or bytes-like object
In fact, the server refuses to boot at all when I add this to the config. It then seems to be causing a lot of cascading errors (which I assume are irrelevant)
Does anybody have a clue what to do?
Posts: 1
Participants: 1