It was the first log error appeared after starting HA. I restarted many times and that was always the first error.
I had the same issue and by reading around on this forum I solved it by adding this config to the homeassistant section
auth_providers:
- type: homeassistant
- type: legacy_api_password
api_password: !secret http_password
Can you give me the link of the forum where you read this? BTW I’ll try it and let you know…
Thanks.
hum not really. It was on this forum but can’t remember which one exactly
sorry
Did you have errors about mqtt, xiaomi hub and many others?
I use Tasmota on my sonoff stuff and lost connection to all of them. In the logs it said that the authentication was failing.
I didn’t really look into the details of the log of HomeAssistant.
First of all sorry for the long message.
This is the log i get when trying to upgrade to 0.101.3 from 0.100.3
2019-11-09 12:49:46 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: unknown error
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 138, in _async_setup_component
component = integration.get_component()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 223, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/__init__.py", line 50, in <module>
from . import config_flow, discovery, server # noqa pylint: disable=unused-import
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/server.py", line 7, in <module>
from hbmqtt.broker import Broker, BrokerException
File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 6, in <module>
import websockets
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/__init__.py", line 3, in <module>
from .client import *
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/client.py", line 12, in <module>
from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/protocol.py", line 17, in <module>
from .compatibility import asyncio_ensure_future
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/compatibility.py", line 9
asyncio_ensure_future = asyncio.async # Python < 3.5
^
SyntaxError: invalid syntax
2019-11-09 12:52:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component tts
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
hass, processed_config
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/tts/__init__.py", line 179, in async_setup
await asyncio.wait(setup_tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 363, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 456, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-11-09 12:52:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component media_player
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 146, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 91, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 372, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 147, in _async_setup_component
hass, config, integration
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py", line 755, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/__init__.py", line 50, in <module>
from . import config_flow, discovery, server # noqa pylint: disable=unused-import
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/server.py", line 7, in <module>
from hbmqtt.broker import Broker, BrokerException
File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 6, in <module>
import websockets
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/__init__.py", line 3, in <module>
from .client import *
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/client.py", line 12, in <module>
from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/protocol.py", line 17, in <module>
from .compatibility import asyncio_ensure_future
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/compatibility.py", line 9
asyncio_ensure_future = asyncio.async # Python < 3.5
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
hass, processed_config
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/media_player/__init__.py", line 223, in async_setup
await component.async_setup(config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py", line 121, in async_setup
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 363, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 456, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-11-09 12:52:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component browser_mod
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 146, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 91, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/bootstrap.py", line 372, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 147, in _async_setup_component
hass, config, integration
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py", line 755, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/__init__.py", line 50, in <module>
from . import config_flow, discovery, server # noqa pylint: disable=unused-import
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/server.py", line 7, in <module>
from hbmqtt.broker import Broker, BrokerException
File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 6, in <module>
import websockets
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/__init__.py", line 3, in <module>
from .client import *
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/client.py", line 12, in <module>
from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/protocol.py", line 17, in <module>
from .compatibility import asyncio_ensure_future
File "/srv/homeassistant/lib/python3.7/site-packages/websockets/compatibility.py", line 9
asyncio_ensure_future = asyncio.async # Python < 3.5
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
hass, processed_config
File "/home/homeassistant/.homeassistant/custom_components/browser_mod/__init__.py", line 29, in async_setup
await hass.helpers.discovery.async_load_platform("sensor", DOMAIN, {}, config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/discovery.py", line 151, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
concurrent.futures._base.CancelledError
2019-11-09 12:52:43 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0001ddac9e', 'short_id': 64952, 'data': '{"no_motion":"600"}'}
2019-11-09 12:52:54 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0002006e75', 'short_id': 37238, 'data': '{"lux":"4"}'}
2019-11-09 12:52:54 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0002006e75', 'short_id': 37238, 'data': '{"status":"motion"}'}
2019-11-09 12:52:56 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'motion', 'sid': '158d0001a98a62', 'short_id': 47288, 'data': '{"status":"motion"}'}
2019-11-09 12:53:02 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'gateway', 'sid': '7811dcb25b7c', 'short_id': 0, 'data': '{"rgb":0,"illumination":978}'}
2019-11-09 12:53:50 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'motion', 'sid': '158d0001a92ca1', 'short_id': 60237, 'data': '{"no_motion":"120"}'}
2019-11-09 12:54:10 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0002006e75', 'short_id': 37238, 'data': '{"lux":"6"}'}
2019-11-09 12:54:10 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'report', 'model': 'sensor_motion.aq2', 'sid': '158d0002006e75', 'short_id': 37238, 'data': '{"status":"motion"}'}
2019-11-09 12:54:22 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'heartbeat', 'model': 'plug', 'sid': '158d0001f55131', 'short_id': 48107, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"14755","load_power":"0.00"}'}
2019-11-09 12:54:26 ERROR (Thread-2) [xiaomi_gateway] Cannot process multicast message: {'cmd': 'heartbeat', 'model': 'magnet', 'sid': '158d0002c7e0d8', 'short_id': 6043, 'data': '{"voltage":3015,"status":"close"}'}
As you can see i get tons of these errors.
What i changed in configuration.yaml is only this:
homeassistant:
auth_providers:
- type: homeassistant
- type: legacy_api_password
api_password: !secret http_api_password
Can you help me to find where are the errors?
You should update python.
I actually have 3.7 and i think it’s good for this release…
Eventually how to upgrade to 3.8 ? All inside venv? And which are the commands?
And also the errors regarding xiaomi hub are due to python?
There are a number of places that say:
Python < 3.5
That’s very strange as if i check the version of python inside venv i get always 3.7.2
(homeassistant) homeassistant@hassbian:/home/pi $ python3 -V
Python 3.7.2
And also HA says this:
FYI that’s only a band aide at this point… legacy password will get deprecated, it’s even mentioned in the docs.
EDIT: I personally used this transition to move to a normal authentication instead of the legacy password.
So you think all is due to that option?
I tried already to disable legacy password but i got same errors…
All i need is this:
homeassistant:
auth_providers:
- type: homeassistant
??
You gotta take each error and fix them individually until everything works.
But it seems all errors are related to python3, or not?
what’s the first error?
About mqtt it seems
Can you just post it. Restart the system and post the whole error log
The whole log after installing 0.101.3 is the one i posted above…
Sorry to be so poor about it, but my english is not so good, just like my knowledge about python abd so on…
and if you comment out your whole mqtt section?