Don’t use a leading forward slash
It is allowed to use a leading forward slash in MQTT, for example /myhome/groundfloor/livingroom. But that introduces a unnecessary topic level with a zero character at the front. That should be avoided, because it doesn’t provide any benefit and often leads to confusion.
Don’t use spaces in a topic
A space is the natural enemy of each programmer, they often make it much harder to read and debug topics, when things are not going the way, they should be. So similar to the first one, only because something is allowed doesn’t mean it should be used. UTF-8 knows many different white space types, it’s pretty obvious that such uncommon characters should be avoided.
2018-03-16 22:44:36 ERROR (MainThread) [hbmqtt.broker] Broker startup failed: [Errno 98] error while attempting to bind on address (‘0.0.0.0’, 1883): address already in use
2018-03-16 22:44:37 ERROR (MainThread) [homeassistant.components.mqtt.server] Error initializing MQTT server
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/base_events.py”, line 958, in create_server
sock.bind(sa)
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/ha/homeassistant/lib/python3.5/site-packages/hbmqtt/broker.py”, line 275, in start
loop=self._loop)
File “/usr/lib/python3.5/asyncio/streams.py”, line 113, in start_server
return (yield from loop.create_server(factory, host, port, **kwds))
File “/usr/lib/python3.5/asyncio/base_events.py”, line 962, in create_server
% (sa, err.strerror.lower()))
OSError: [Errno 98] error while attempting to bind on address (‘0.0.0.0’, 1883): address already in use
During handling of the above exception, another exception occurred:
This means that something else is already using the port for mqtt. Most likely you have already started another mqtt broker.
And please format your yaml using the instructions in the link in the big blue box at the top of the page. Without that, many errors are impossible to spot.
2018-03-20 18:57:43 ERROR (MainThread) [hbmqtt.broker] Broker startup failed: [Errno 98] error while attempting to bind on address (‘0.0.0.0’, 1883): address already in use
There may be an error in your indentation we can’t see until you format your yaml using the instructions in the link in the big blue box at the top of the page.