I have a weird situation. After updating Mosquitto add-on, my D1Mini not connecting. After hours of research, I got to know that since version 4.1 of the addon, an explicit ACL definition is now required. SO, I created acl list and updated my users in accesscontrollist.
user mqtt
topic readwrite #
Later, receiving many errors. So, I re-installed the addon, but getting same errors,
[12:27:58] INFO: Setup mosquitto configuration
[12:28:00] INFO: Found local users inside config
[12:28:06] INFO: Initialize Hass.io Add-on services
[12:28:06] INFO: Initialize Home Assistant discovery
[12:28:06] INFO: Start Mosquitto daemon
1567580286: Loading config file /share/mosquitto/acl.conf
1567580286: mosquitto version 1.6.3 starting
1567580286: Config loaded from /etc/mosquitto.conf.
1567580286: Loading plugin: /usr/share/mosquitto/auth-plug.so
1567580286: ├── Username/password checking enabled.
1567580286: ├── TLS-PSK checking enabled.
1567580286: └── Extended authentication not enabled.
1567580286: Opening ipv4 listen socket on port 1883.
1567580286: Opening ipv6 listen socket on port 1883.
1567580286: |-- *** auth-plug: startup
1567580286: Opening websockets listen socket on port 1884.
1567580287: Opening ipv4 listen socket on port 8883.
1567580287: Opening ipv6 listen socket on port 8883.
1567580287: Opening websockets listen socket on port 8884.
1567580288: Warning: Mosquitto should not be run as root/administrator.
1567580289: New connection from 192.168.1.52 on port 1883.
[INFO] found mqtt on local database
1567580297: New client connected from 192.168.1.52 as Bedroom_control_panel (p2, c1, k10, u'mqtt').
1567580311: New connection from 172.30.32.1 on port 1883.
1567580312: Socket error on client <unknown>, disconnecting.
1567580312: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1567580320: New client connected from 172.30.32.1 as auto-548FF2EF-84E5-471E-335D-C96E0AB0F072 (p2, c1, k60, u'homeassistant').
1567581533: New connection from 192.168.1.52 on port 1883.
[INFO] found mqtt on local database
1567581541: Client Bedroom_control_panel already connected, closing old connection.
1567581541: New client connected from 192.168.1.52 as Bedroom_control_panel (p2, c1, k10, u'mqtt').
1567582088: Saving in-memory database to /data/mosquitto.db.
the above IP 192.168.1.52
is belongs to my d1mini which have Tasmota firmware controlling my bedroom relays.
When I checked on tasmota console, it’s connected to MQTT and sending
MQT: d1mini01/tele/STATE
MQT: d1mini01/tele/SENSOR
d1mini01/tele/HASS_STATE
to MQTT broker. But in my hass, the switches are not connected. MQTT: Mosquitto broker integration is empty (no devices registered). I have no idea to whom that IP 172.30.32.1
belongs to. It just randomly appeared the device auto-548FF2EF-84E5-471E-335D-C96E0AB0F072.
I’ve observed this issue started when I updated the add-on. Did I miss anything? I’ve tried many things and couldn’t fix this issue.