So I have the default MQTT broker running and am upgraded to 6.12. I had a few devices that did not use a username and password. They have been updated, I have created a default user for MQTT and have what appears to be all of my devices now reporting.
But, my broker logs are full of the following message:
error: received null username, clientid or topic, or access is equal or less than 0 for acl check
What do I have wrong?
Here is my system information:
System Health
version: core-2022.5.3
installation_type: Home Assistant Supervised
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.9
os_name: Linux
os_version: 5.10.0-13-amd64
arch: x86_64
timezone: America/Chicago
GitHub API: ok
GitHub Content: ok
GitHub Web: ok
GitHub API Calls Remaining: 5000
Installed Version: 1.24.5
Stage: running
Available Repositories: 1051
Downloaded Repositories: 16
host_os: Debian GNU/Linux 11 (bullseye)
update_channel: stable
supervisor_version: supervisor-2022.05.1
docker_version: 20.10.12
disk_total: 218.1 GB
disk_used: 38.8 GB
healthy: true
supported: true
supervisor_api: ok
version_api: ok
installed_addons: Backup Hassio to Google Drive (1.7.2), Dropbox Sync (1.3.0), Duck DNS (1.14.0), File editor (5.3.3), Log Viewer (0.13.0), RPC Shutdown (2.2), WireGuard (0.6.0), Mosquitto broker (6.1.2), SSH & Web Terminal (10.1.3), Samba share (9.6.1), TasmoAdmin (0.17.0), Glances (0.15.0), Check Home Assistant configuration (3.10.0), DHCP server (1.3.0), Network UPS Tools (0.10.0), Samba Backup (5.0.0), Node-RED (11.1.2), Portainer (2.0.0), Home Assistant Google Drive Backup (0.107.2), SDR to Home Assistant (0.1.13b)
dashboards: 1
resources: 7
views: 15
mode: storage
version: 3.0.4 (8a202d5)
cloud_online: 0 / 0
local_online: 0 / 0
and get this in the log of the mosquitto-broker (all versions):
1652334001: New connection from 192.168.178.7 on port 1883.
1652334001: New client connected from 192.168.178.7 as heatronic (p1, c0, k10).
1652334001: Client heatronic disconnected.
I had this problem.
Just updated mosquitto addon to 6.1.2 and HA core from 2022.4.something to 2022.5.3.
After these upgrades no messages to/from HA and zigbee2mqtt.
In the mosquitto log I can see that my z2m user is connecting fine, but in the HA log I can see auth failures for mqtt.
I needed to re-run mqtt configuration and re-enter the password for the mosquitto user I created for HA.
I tested that HA could sub and pub to mqtt then restarted HA and all OK now.
I also needed to restart z2m to get it to (re)publish all sensor values back into HA.