I have tried to sift through the myriad of different configurations from various youtube channels, forum posts and docs and have not been able to get any of my devices to be seen by HA. I have followed the instructions on the Mosquitto Broker Add-on page most recently a still cannot see any devices in the MQTT Integration page.
The steps I have completed are as follows:
-
Added a user to HA called mqtt with the mqtt as password.
-
Installed the Mosquitto Broker Add-on with the following config
{ "logins": [], "anonymous": false, "quiet_logs": true, "customize": { "active": true, "folder": "mosquitto" }, "certfile": "fullchain.pem", "keyfile": "privkey.pem" }
-
Created a share/mosquitto directory with 2 files. accesscontrollist and acl.conf with the following contents:
acl.conf
acl_file /share/mosquitto/accesscontrollist
accesscontrollist
user mqtt topic readwrite # user homeassistant topic readwrite #
-
Clicked on Configure next to MQTT in the lower list on Configuarion > Integrations
And added the following to the configuration:
Broker: localhost Port: 1883 Username: mqtt Password: mqtt Enable discovery left unchecked.
-
Added the following to a the configuration.yaml for a test device:
switch:
platform: mqtt
name: “Front Eve Light”
command_topic: “home/outside/frontevelight/cmnd/POWER”
state_topic: “home/outside/frontevelight/stat/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true` -
Configured a Shelly1 Device with the following info:
Host: 10.8.7.7 (Static IP of my HASSIO Pi) Port: 1883 Client: frontevelight User: mqtt Password: mqtt Topic: frontevelight Full Topic: home/outside/%topic%/%prefix%
-
Restart HASSIO and start the Mosquitto Broker Add-On and get the following output in the Log section of the Mosquitto Broker Add-On window:
[INFO] Setup mosquitto configuration [INFO] No local user available [INFO] Initialize Hass.io Add-on services [INFO] Initialize Home Assistant discovery [INFO] Start Mosquitto daemon 1556489485: mosquitto version 1.5.6 starting 1556489485: Config loaded from /etc/mosquitto.conf. 1556489485: |-- *** auth-plug: startup 1556489485: Opening ipv4 listen socket on port 1883. 1556489485: Opening ipv6 listen socket on port 1883. 1556489485: Opening websockets listen socket on port 1884. 1556489485: Opening ipv4 listen socket on port 8883. 1556489485: Opening ipv6 listen socket on port 8883. 1556489485: Opening websockets listen socket on port 8884. 1556489486: Warning: Mosquitto should not be run as root/administrator. 1556489486: New connection from 172.30.32.1 on port 1883. [INFO] found mqtt on Home Assistant 1556489488: New client connected from 172.30.32.1 as 6542ae3e-9cee-4865-82b6-ded602736f9b (c1, k60, u'mqtt'). 1556489489: New connection from 10.8.7.70 on port 1883. [INFO] found mqtt on Home Assistant 1556489491: New client connected from 10.8.7.70 as frontevelight (c1, k10, u'mqtt'). 1556489829: New connection from 172.30.32.1 on port 1883. [INFO] found mqtt on Home Assistant 1556489831: New client connected from 172.30.32.1 as 6m1QDpAZtFsWBCERmjTEub (c1, k60, u'mqtt'). 1556489831: Client 6m1QDpAZtFsWBCERmjTEub disconnected. 1556489831: New connection from 172.30.32.1 on port 1883. [INFO] found mqtt on Home Assistant 1556489832: New client connected from 172.30.32.1 as 4c780139-f89e-445f-9a4a-9d8ba3773c4c (c1, k60, u'mqtt'). 1556489937: Client frontevelight disconnected. 1556489946: New connection from 10.8.7.70 on port 1883. [INFO] found mqtt on Home Assistant 1556489948: New client connected from 10.8.7.70 as frontevelight (c1, k10, u'mqtt').
Both HASSIO and the device (10.8.7.70) are connecting to the broker but it is not listed under the MQTT integrations.
Any help would be greatly appreciated. I have been pulling my hair out for 2 days trying to get this to work.