Closed gbrayut closed 5 years ago
:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.
If it works everywhere else, then the issue is with how Home Assistant connect to it.
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Problem/Motivation
I tried setting up MQTT on hassio today using tls (Lets Encrypt certificate via another plugin), but I was not able to get it to work. The homeassistant logs don't give much detail:
but it is not getting any messages. The broker works fine using http://workswithweb.com/mqttbox.html and the Hivemq web ui, so this might be an issue with home assistant or hassio, or possibly the tls certificate validation (although I also tried disabling that).
Expected behavior
Home assistant should be able to publish messages from the https://hassio:8123/dev-mqtt
Actual behavior
I can connect via mqttbox but publishing via dev-mqtt doesn't work, and any sensor created via mqtt also don't work. The following errors are displayed in the mqtt addon logs:
Steps to reproduce
Install hassio 0.83.3 and use the following settings
Instead of 127.0.0.1 I also tried the FQDN for the domain, and confirmed that the certificate was valid in the container:
Workaround
It works if you switch "enable_mqtt": false to true in the plugin config, and then use the following mqtt config in home assistant: