Hello,
I have just switched from haasbian with 0.49.1 to hassio with 0.52.1 and mqtt is not working with same configuration. (I have 2 boxes, rpi zero with 0.49.1 working, rpi3 with 0.52.1 not working.)
This is the error I have on boot :
2017-08-29 23:08:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 191, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 387, in async_setup
success = yield from hass.data[DATA_MQTT].async_connect()
File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 497, in async_connect
self._mqttc.connect, self.broker, self.port, self.keepalive)
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 760, in connect
return self.reconnect()
File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 887, in reconnect
sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
File "/usr/lib/python3.6/socket.py", line 704, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.6/socket.py", line 743, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
2017-08-29 23:08:48 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of device_tracker.owntracks. Setup failed for dependencies: mqtt
2017-08-29 23:08:48 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.owntracks: Could not setup all dependencies.
This is my config, same on both installations :
mqtt:
broker: m20.cloudmqtt.com
port: 24410
username: !secret mqtt_username
password: !secret mqtt_password
device_tracker:
- platform: owntracks
max_gps_accuracy: 200
and my know_devices.yaml is OK.
Any idea ?
Thanks for your help.