Hi,
Is it possible to talk to Amazon AWS IoT MQTT broker from Home Assistant?
I have modified the config file to include (the certificate files are created using AWS) :
mqtt:
broker: xxxxxxxxxxxx-west-2.amazonaws.com
port: 8883
client_id: test
certificate: /home/homeassistant/credentials/client-certificate.crt
client_key: /home/homeassistant/credentials/client-private-key.key
client_cert: /home/homeassistant/credentials/ca-certificate.pem
protocol: 3.1.1
but I got this error below:
17-04-20 17:00:03 ERROR (MainThread) [homeassistant.setup] Error during setup of
component mqtt
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeas
sistant/setup.py", line 189, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeas
sistant/components/mqtt/__init__.py", line 363, in async_setup
success = yield from hass.data[DATA_MQTT].async_connect()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/mqtt/__init__.py", line 473, in async_connect
None, self._mqttc.connect, self.broker, self.port, self.keepalive)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/deps/paho/mqtt/client.py", line 704, in connect
return self.reconnect()
I’ve checked python and ssl version, seems to be compatible with AWS requirements. What am I doing wrong?
Any help would be appreciated.