Hey,
I have read over issues:
Embedded MQTT Broker failing on 0.48.0 #8315
MQTT Client initialized incorrectly with paho-mqtt to 1.3.0
and I’m not quite sure how to fix these issues.
With no mqtt in my config it works happily, I can connect to the broker with a 3rd part app and all works fine.
With this is my config it breaks the whole broker and nothing will connect to the broker
mqtt:
broker: 192.168.X.XXX
port: 1883
client_id: HomeAssistant
keepalive: 60
username: X
password: X
And get the errors
2017-07-06 10:45:33 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 187, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 381, in async_setup
success = yield from hass.data[DATA_MQTT].async_connect()
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 491, in async_connect
self._mqttc.connect, self.broker, self.port, self.keepalive)
I change my config to
mqtt:
broker: 192.168.X.XX
port: 1883
client_id: HomeAssistant
keepalive: 60
username: X
password: X
protocol: 3.1
tls_insecure: True
tls_version: auto
and get the errors
2017-07-06 11:07:48 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 187, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 368, in async_setup
will_message, birth_message, tls_version)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 460, in __init__
self._mqttc.tls_insecure_set(tls_insecure)
File "/home/homeassistant/.homeassistant/deps/paho/mqtt/client.py", line 727, in tls_insecure_set
raise ValueError('Must configure SSL context before using tls_insecure_set.')
ValueError: Must configure SSL context before using tls_insecure_set.
This issue killed my mqtt about to weeks ago and has made Home Assistant useless to me as everything I control is via MQTT
Can anyone offer any sort of help?