Mosquitto not working

Hi. I’m running version 0.103.4 and having trouble with Mosquitto broker. I’ve installed Mosquitto addon (5.1), created a user (Mqttuser) and password.
Configuration:

{
  "logins": [
    {
      "username": "MqttUser",
      "password": "######"
    }
  ],
  "anonymous": false,
  "customize": {
    "active": true,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "require_certificate": false
}

I’ve created ACL according to description on the add-on page.
Contents of acl.conf:
acl_file /share/mosquitto/accesscontrollist

Contents of accesscontrollist:

user Mqttuser
topic #
user homeassistant
topic #

When I try to test the MQTT on this page:

I get this error:

Somehow it disconnects from MQTT and (naturally) the test fails. Anybody got any idea what I’ve done wrong?

If you try mqtt.publish, use either payload or payload_template, not both. And for testing, always use retain : false, or your test will stay in the mosquitto db forever.

Thanks, no errors when I remove the payload_template :slight_smile: