Hey all, I am struggling somewhat with connecting my HA with Niko NHC2 MQTT broker. With MQTT Explorer I can connect to NHC2 broker with the option TLS enabled and validate certificate disabled. Now in my configuration.yaml I have entered the following config:
mqtt:
broker: 10.10.11.93
port: 8884
username: 'hobby'
password: api_password
certificate: /config/ca-chain.crt
tls_insecure: true
But in the logs I can see that HA can’t connect to the MQTT broker, am I missing something?
The full error log entry is
2020-11-09 16:44:05 ERROR (Thread-6) [paho.mqtt.client] failed to receive on socket: [Errno 104] Connection reset by peer
2020-11-09 16:44:05 WARNING (Thread-6) [homeassistant.components.mqtt] Disconnected from MQTT server 10.10.11.93:8884 (1)
2020-11-09 16:44:29 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2877573152] Error talking to MQTT: The client is not currently connected.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1448, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1483, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 583, in async_publish_service
await hass.data[DATA_MQTT].async_publish(msg_topic, payload, qos, retain)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 793, in async_publish
_raise_on_error(msg_info.rc)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 1062, in _raise_on_error
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Error talking to MQTT: The client is not currently connected.