OK I updated to 43.0, restarted my pi and again with just mqtt: in the config.yaml I get:
â mosquitto.service - LSB: mosquitto MQTT v3.1 message broker
Loaded: loaded (/etc/init.d/mosquitto)
Active: active (running) since Sun 2017-04-23 05:18:17 UTC; 1min 41s ago
Process: 495 ExecStart=/etc/init.d/mosquitto start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/mosquitto.service
ââ522 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Apr 23 05:18:17 hassbian systemd[1]: Starting LSB: mosquitto MQTT v3.1 message broker...
Apr 23 05:18:17 hassbian mosquitto[495]: Starting network daemon:: mosquitto.
Apr 23 05:18:17 hassbian systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.
All good, however in the front end I get an error and in the log I get:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/server.py", line 48, in async_start
yield from broker.start()
File "/home/homeassistant/.homeassistant/deps/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 already in use
17-04-23 05:18:30 ERROR (MainThread) [homeassistant.components.mqtt] Unable to start MQTT broker.
17-04-23 05:18:30 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Component failed to initialize.
17-04-23 05:18:31 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt
17-04-23 05:18:31 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies.
17-04-23 05:18:31 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt
17-04-23 05:18:31 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies.
Setting log level to DEBUG I get:
17-04-23 05:25:56 DEBUG (MainThread) [hbmqtt.broker.plugins] Loading plugins for namespace hbmqtt.broker.plugins
17-04-23 05:25:56 DEBUG (MainThread) [hbmqtt.broker] Broker starting
17-04-23 05:25:56 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
17-04-23 05:25:56 ERROR (MainThread) [homeassistant.components.mqtt.server] Error initializing MQTT server
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/base_events.py", line 757, 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/homeassistant/.homeassistant/deps/hbmqtt/broker.py", line 270, in start
loop=self._loop)
File "/usr/lib/python3.4/asyncio/streams.py", line 101, in start_server
return (yield from loop.create_server(factory, host, port, **kwds))
File "/usr/lib/python3.4/asyncio/base_events.py", line 761, 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:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/server.py", line 48, in async_start
yield from broker.start()
File "/home/homeassistant/.homeassistant/deps/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 already in use
17-04-23 05:25:56 ERROR (MainThread) [homeassistant.components.mqtt] Unable to start MQTT broker.
17-04-23 05:25:56 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: Component failed to initialize.
17-04-23 05:25:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=1980352304-1, service=create, domain=persistent_notification, service_data=title=Invalid config, message=The following components and platforms could not be set up:
* [mqtt](https://home-assistant.io/components/mqtt/)
Please check your config, notification_id=invalid_config>
17-04-23 05:25:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
* [mqtt](https://home-assistant.io/components/mqtt/)
Please check your config; title=Invalid config @ 2017-04-23T06:25:56.669959+01:00>, entity_id=persistent_notification.invalid_config>
As per Tutorial: IOT / Installing and Testing Mosquitto MQTT on the Raspberry Pi for Buster - SwitchDoc Labs Blog when I attempt to subscribe to a topic on the running mqtt server I get:
pi@hassbian:~ $ mosquitto_sub -d -u homeassistant -P My_Pass -t hello/world
Client mosqsub/1506-hassbian sending CONNECT
Client mosqsub/1506-hassbian received CONNACK
Connection Refused: not authorised.