Embedded MQTT server won't start

I’m trying to explore using the embedded mqtt platform; however, when starting hass, I see error messages as follows"

INFO:homeassistant.loader:Loaded mqtt from homeassistant.components.mqtt
INFO:homeassistant.loader:Loaded mqtt.server from homeassistant.components.mqtt.server
INFO:hbmqtt.broker:Listener 'default' bind to 0.0.0.0:1883 (max_connecionts=-1)
INFO:hbmqtt.broker:Listener 'ws-1' bind to 0.0.0.0:8080 (max_connecionts=-1)
ERROR:homeassistant.bootstrap:Error during setup of component mqtt
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 158, in _setup_component
    if not component.setup(hass, config):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mqtt/__init__.py", line 220, in setup
    password, certificate, protocol)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mqtt/__init__.py", line 300, in __init__
    self._mqttc.connect(broker, port, keepalive)
  File "/home/pi/.homeassistant/lib/paho/mqtt/client.py", line 611, in connect
    self.connect_async(host, port, keepalive, bind_address)
  File "/home/pi/.homeassistant/lib/paho/mqtt/client.py", line 669, in connect_async
    if keepalive < 0:
TypeError: unorderable types: NoneType() < int()
ERROR:homeassistant.bootstrap:Unable to prepare setup for platform sensor.mqtt because dependency mqtt could not be initialized

Am I missing some configuration.yaml entries to make use of the embedded mqtt service?

Thanks// Chris

After much experimentation I was able to spark up hass and connect to it via mqtt via the following configuration.yaml entries:

mqtt:
username: homeassistant
password: [REDACTED]
keepalive: 60

I should also mention I’m using V0.17.2 software.

1 Like

@cbfreeborn Thanks - just ran into this issue and it seem to work for me too.
HA 0.28.1