Can someone that is a MQTT Subject Matter Expert, put together, a step by step, list of instruction, on HOW to setup MQTT 4.1???
In layman’s terms…
Can someone that is a MQTT Subject Matter Expert, put together, a step by step, list of instruction, on HOW to setup MQTT 4.1???
In layman’s terms…
Hassio or otherwise?
Hassio, please.
I did say for "DUMMIES"
No need to shout, perhaps you’d get further if you told us what trouble you are having?
I followed those instructions to the “T”, and it dosen’t work. I have been trying, now for 2 weeks.
I get the following in the MQTT log;
[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
1556340049: mosquitto version 1.5.6 starting
1556340049: Config loaded from /etc/mosquitto.conf.
1556340049: |-- *** auth-plug: startup
1556340049: Opening ipv4 listen socket on port 1883.
1556340049: Opening ipv6 listen socket on port 1883.
1556340049: Opening websockets listen socket on port 1884.
1556340049: Opening ipv4 listen socket on port 8883.
1556340049: Opening ipv6 listen socket on port 8883.
1556340049: Opening websockets listen socket on port 8884.
1556340051: Warning: Mosquitto should not be run as root/administrator.
It looks as though it is starting correctly. What problem are you experiencing?
ALL my mqtt entities are “Yellowed” out
So no local user means it’s using a HA user. Did you define a MQTT user in your devices and is that user a HA user?
You have not shown your ACL or accesscontrol list info.
In the “accesscontrollist” file I have;
user 1233mqtt
topic #
the “1233mqtt” is the User that each device uses th login to the MQTT server…
Try
user 1233mqtt
topic readwrite #
user homeassistant
topic readwrite #
Do I need to reboot HA??? after this edit.
No but you need to restart the addon.
You put the 2 files in the /share folder too right?
You are using the user you created (a Home Assistant user) for the MQTT settings in your devices as well right?
and that username is a Home Assistant User?
yes, accesscontrollist & acl.conf
still not working.
I just added to the list, the username I use to login to HA.
still not connecting…
Start some testing.
There are good guides on the net about testing using mosquitto_pub and mosquitto_sub. As a start:
mosquitto_sub -h ipaddress.of.hassio -u 1233mqtt -P 123mqtt's password -t #