MQTT Embedded broker and websocket

Hi,

I have setup MQTT and using the embedded broker:

mqtt:
  protocol: 3.1

Reading the default values for the embedded MQTT it is using port 8080 for websocket and this colliding with another software I run on the computer.

So I tried to change the setting according to the documentation but MQTT wont start with this setting:

mqtt:
  protocol: 3.1
  embedded:
     my-ws-1:
        bind: 0.0.0.0:8181
        type: ws

The logfile says following:

http://pastebin.com/yHWpnRut

I\m running Home Assistant 0.35.3 on Windows 10.

Any suggestions_

So I have tried this:

mqtt:
  protocol: 3.1
  embedded:
     listeners:
        default:
           bind: 0.0.0.0:1883
           type: tcp
        ws-1:
           bind: 0.0.0.0:8181
           type: ws

And log says this:

17-02-01 12:12:20 ERROR (Thread-12) [homeassistant.components.mqtt] Unable to start MQTT broker. (Broker configuration required.)
17-02-01 12:12:20 ERROR (MainThread) [homeassistant.bootstrap] component mqtt failed to initialize

Confirmed the following is working for me in the latest release. 192.168.1.5 is my server address but Im guessing 0.0.0.0 might work as well. The broker and port options outside of ‘embedded’ appear to be mandatory.

# MQTT
mqtt:
  embedded:
    listeners:
      default:
        max-connections: 5000
        bind: 192.168.1.5:1883
        type: tcp
      ws-1:
          bind: 192.168.1.5:8888
          type: ws
    auth:
      plugins: ['auth.anonymous']
      allow-anonymous: true
  broker: 192.168.1.5
  port: 1883
1 Like