How to use MQTT without auth

My issue was that I wanted MQTT witout auth as I have so many devices in my protected environment, that it simply makes no sense to go through all devices and enable auth.

So my question was, how to enable all clients to join without authentification.
=> As I found the answer I put this here for reporting purposes for others… see the response below

There are 2 possibilities to solve this:

  1. use EMQX add-on and under configuration


    a) Edit the file and remove below line either by commenting it out or deleting it
    %% {deny, all, subscribe, [“$SYS/#”, {eq, “#”}, {eq, “+/#”}]}.
    b) OR add
    listeners.{type}.{name}.enable_authn = false
    as described here: Authentication / Authorization Incompatibility Between EMQX 4.4 and EMQX 5.1 | EMQX Docs
    c) restart EMQX and it works

  2. use “anonymous mosquitto broker”
    GitHub - antst/hass_addons: Home Assistant Add-Ons
    {E10E1D0C-3C8A-4F9C-B526-ABD6F8F6F1D1}

!!! this is not the right thing to do… you should auth, but sometimes you need to choose your poison