MQTT sensors

Hi

Im trying to add my mqtt sensors too hassio.
But when i do that i get this error

[Errno 98] error while attempting to bind on address ('0.0.0.0', 1883): address in use

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/server.py”, line 48, in async_start
yield from broker.start()
File “/usr/lib/python3.6/site-packages/hbmqtt/broker.py”, line 291, in start
raise BrokerException(“Broker instance can’t be started: %s” % e)
hbmqtt.broker.BrokerException: Broker instance can’t be started: [Errno 98] error while attempting to bind on address (‘0.0.0.0’, 1883): address in use
2017-08-01 18:45:43 ERROR (MainThread) [homeassistant.components.mqtt] Unable to start MQTT broker.
2017-08-01 18:45:43 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Component failed to initialize.
2017-08-01 18:45:43 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt
2017-08-01 18:45:43 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies.
2017-08-01 18:45:43 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt
2017-08-01 18:45:43 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies.

How do I install the dependencies?
I have installed the MQTT Brooker.

{

“plain”: true,
“ssl”: false,
“anonymous”: false,
“logins”: [
{
“username”: “xxxxxx”,
“password”: “xxxxxx”
}
],
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

Thats my config

and this is the log from MQTT brooker

starting version 3.2.2

1501605249: mosquitto version 1.4.12 (build date 2017-06-01 13:03:48+0000) starting
1501605249: Config loaded from /etc/mosquitto.conf.
1501605249: Opening ipv4 listen socket on port 1883.
1501605249: Opening ipv6 listen socket on port 1883.
1501605249: Warning: Mosquitto should not be run as root/administrator.
1501605252: New connection from 192.168.1.119 on port 1883.
1501605252: New client connected from 192.168.1.119 as sensornode1 (c1, k15, u’xxxxxx’).
1501605254: New connection from 192.168.1.118 on port 1883.
1501605254: New client connected from 192.168.1.118 as sensornode2 (c1, k15, u’xxxxx’).

Look in your homeassistant log file and grep for dependencies

grep -i dependencies home-assistant.log

Normally the word dependencies is on the line where it tries to load the dependency and fails. That would give you and idea what you need to load manually…

Yes, i did reboot the hassio and voilà

so did you have to download another dependency or did it just need a reboot?

It just needed a reboot, probably it dident read the mqtt: config in my yaml file 100%.