Sorry for the delay in responding, I’m clearly missing something. I’ve been through a number of posts on here and adjusted a number of bits but I’m still struggling.
This is my config within the Mosquitto broker:
{
"logins": [],
"anonymous": false,
"customize": {
"active": true,
"folder": "mosquitto"
},
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"require_certificate": false
}
Created the necessary files for the ACL files
I’ve created the user ‘Mqtt’ in Home Assistant.
Reconfigured the multiple Sonoff switches and I can see them successfully connecting in the Log for the Mosquito broker:
[21:58:44] INFO: Setup mosquitto configuration
[21:58:44] WARNING: SSL not enabled - No valid certs found!
[21:58:44] INFO: No local user available
[21:58:45] INFO: Initialize Hass.io Add-on services
[21:58:45] INFO: Initialize Home Assistant discovery
[21:58:45] INFO: Start Mosquitto daemon
1576706326: Loading config file /share/mosquitto/acl.conf
1576706326: mosquitto version 1.6.3 starting
1576706326: Config loaded from /etc/mosquitto.conf.
1576706326: Loading plugin: /usr/share/mosquitto/auth-plug.so
1576706326: |-- *** auth-plug: startup
1576706326: ├── Username/password checking enabled.
1576706326: ├── TLS-PSK checking enabled.
1576706326: └── Extended authentication not enabled.
1576706326: Opening ipv4 listen socket on port 1883.
1576706326: Opening ipv6 listen socket on port 1883.
1576706326: Opening websockets listen socket on port 1884.
1576706326: Warning: Mosquitto should not be run as root/administrator.
1576706333: New connection from 192.168.1.245 on port 1883.
[INFO] found Mqtt on Home Assistant
1576706333: New client connected from 192.168.1.245 as KitchenLightSwitch (p2, c1, k30, u'Mqtt').
1576706333: New connection from 192.168.1.190 on port 1883.
1576706333: New client connected from 192.168.1.190 as BackDoor (p2, c1, k30, u'Mqtt').
1576706334: New connection from 192.168.1.246 on port 1883.
1576706334: New client connected from 192.168.1.246 as DiningRoom3 (p2, c1, k30, u'Mqtt').
1576706334: New connection from 192.168.1.244 on port 1883.
1576706334: New client connected from 192.168.1.244 as DiningRoom2 (p2, c1, k30, u'Mqtt').
1576706334: New connection from 192.168.1.79 on port 1883.
1576706334: New client connected from 192.168.1.79 as LivingRoom_Rear (p2, c1, k30, u'Mqtt').
1576706337: New connection from 192.168.1.101 on port 1883.
1576706337: New client connected from 192.168.1.101 as LivingRoomFront (p2, c1, k10, u'Mqtt').
1576706348: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1576706348: New client connected from 172.30.32.1 as auto-777A3999-1399-0F96-028E-79F7C8A6D429 (p2, c1, k60, u'homeassistant').
Am I right in thinking that the last line is homeassistant successfully connection? As that is working successfully I’m assuming that the credentials are correct and thus the ACL file etc is configured correctly?
If so why do I still see nothing in my ‘MQTT: Mosquitto broker’ integration.
I’ve tried SetOption19 on one of my Sonoff’s but nothing.
Any help would be much appreciated.